If like me and you watched Joe Stagners terrific video "How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX" found
at http://www.asp.net/learn/videos/view.aspx?tabid=63&id=79 (as of this posting), and you followed along with his example, he does use the Microsoft namespace.
The trick is to recall Joe was using the BETA release. The System.Web namespace does work as already suggested.
I have changed [Microsoft.Web.Script.Services.ScriptService()] to [System.Web.Script.Services.ScriptService()] in "CarsServices.cs" and [Microsoft.Web.Script.Services.ScriptMethod()] to
[System.Web.Script.Services.ScriptMethod()] in "Default.aspx" , but got an Method error 500 in DropDownList1.
I am attempting to use System.Web.Script namespace but cannot access it. I get the following error: "The namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)"
I'm also getting the same error. I can successfully run the example project : Make Client-Side Network Callbacks with ASP.NET AJAX" found at
http://www.asp.net/learn/videos/view.aspx?tabid=63&id=79 (as mentioned above) but when I try and implement similar functionlity in another application I dont even recieve intellisence on
the Microsoft.Web.Script.Services.ScriptService() call. I have doubled checked web.config files assembly references etc etc. The one thing I can say is that my application that gives the error is a Web Application Project rather than the new Stock project
model. Any help would be greatly appreciated...
NetSpike
Member
9 Points
29 Posts
[Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exi...
Jan 29, 2007 04:26 PM|LINK
Hi
I'm trying to use the [Microsoft.Web.Script.Services.ScriptService()] in my web service, but when I compile I receive the following error message:
Error 1 The type or namespace name 'Web' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
Any suggestions how to fix this problem?
Thanks in advance!
Regards
Edward
Garbin
Contributor
7428 Points
1507 Posts
ASPInsiders
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Jan 29, 2007 04:38 PM|LINK
Hi,
the correct namespace is System.Web.Script.Services.
waltsully
Member
7 Points
2 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Feb 03, 2007 08:50 AM|LINK
If like me and you watched Joe Stagners terrific video "How Do I: Make Client-Side Network Callbacks with ASP.NET AJAX" found at http://www.asp.net/learn/videos/view.aspx?tabid=63&id=79 (as of this posting), and you followed along with his example, he does use the Microsoft namespace.
The trick is to recall Joe was using the BETA release. The System.Web namespace does work as already suggested.
-walt
zhangkun167
Member
5 Points
3 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Feb 13, 2007 07:29 AM|LINK
Hi,
I have changed [Microsoft.Web.Script.Services.ScriptService()] to [System.Web.Script.Services.ScriptService()] in "CarsServices.cs" and [Microsoft.Web.Script.Services.ScriptMethod()] to
[System.Web.Script.Services.ScriptMethod()] in "Default.aspx" , but got an Method error 500 in DropDownList1.
Why and How could deal with it ? Thanks
Garbin
Contributor
7428 Points
1507 Posts
ASPInsiders
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Feb 13, 2007 10:41 AM|LINK
Hi,
then, probably, an exception is being raised by the server. Could you report here the content of the response?
zhangkun167
Member
5 Points
3 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Feb 13, 2007 02:47 PM|LINK
Hi,
Now it works fine in my place, i did nothing but restart my computer, really funny he :)
lsafronova
Member
6 Points
5 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Mar 13, 2007 06:59 PM|LINK
I am attempting to use System.Web.Script namespace but cannot access it. I get the following error: "The namespace name 'Script' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)"
Lilia
System.Web.Script
swdev
Member
20 Points
12 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Mar 19, 2007 12:23 PM|LINK
I'm also getting the same error. I can successfully run the example project : Make Client-Side Network Callbacks with ASP.NET AJAX" found at http://www.asp.net/learn/videos/view.aspx?tabid=63&id=79 (as mentioned above) but when I try and implement similar functionlity in another application I dont even recieve intellisence on the Microsoft.Web.Script.Services.ScriptService() call. I have doubled checked web.config files assembly references etc etc. The one thing I can say is that my application that gives the error is a Web Application Project rather than the new Stock project model. Any help would be greatly appreciated...
sw
ajax
swdev
Member
20 Points
12 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Mar 19, 2007 02:18 PM|LINK
Try adding the System.Web.Extensions reference.
prsuman
Member
4 Points
19 Posts
Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not...
Jun 05, 2007 06:57 AM|LINK
Hi All Where do i get this System.web.Extensions Reference.. i Need it.. its very urgent...
Thanks in Advance
Regards,
suman