Using web services with AJAX

  • Thread starter Thread starter Alex. O. Koranteng
  • Start date Start date
A

Alex. O. Koranteng

I have a web form which is calling a web service on
pageload event which uses javascript function. I am getting the following
error:
Any suggestions.

Server Error in '/Atlas - WebServices111' Application.
--------------------------------------------------------------------------------

Compilation Error
Description: An error occurred during the compilation of a resource required
to service this request. Please review the following specific error details
and modify your source code appropriately.

Compiler Error Message: CS0234: The type or namespace name 'Web' does not
exist in the namespace 'Microsoft' (are you missing an assembly reference?).
Any suggestions.

Source Error:



Line 5: using System.Web.Services;
Line 6: using System.Web.Services.Protocols;
Line 7: using Microsoft.Web.Script.Services;
Line 8:
Line 9:


Source File: c:\MSDN\Weblogs\WMcclure\Atlas -
WebServices111\App_Code\DataTypes.cs Line: 7
 
Hello Alex,

This error means Microsoft.Web.Script.Services is an incorrect reference.
Please use System.Web.Script.Services instead of
Microsoft.Web.Script.Services.
If you want to know about more about Ajax WebService, please check the
following reference:
http://www.asp.net/AJAX/Documentation/Live/tutorials/ASPNETAJAXWebServicesTu
torials.aspx




Sincerely,

Vince Xu

Microsoft Online Support


==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

MSDN Managed Newsgroup support offering is for non-urgent issues where an
initial response from the community or a Microsoft Support Engineer within
2 business day is acceptable. Please note that each follow up response may
take approximately 2 business days as the support professional working with
you may need further investigation to reach the most efficient resolution.
The offering is not appropriate for situations that require urgent,
real-time or phone-based interactions. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
==================================================
 
Vince,

Thanks for the update and link references. I will follow through and let you
know of my progress by Friday
 
Back
Top