[Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

Rate It (1)

Last post 07-02-2009 7:25 AM by JamieKitson. 19 replies.

Sort Posts:

  • [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-29-2007, 12:26 PM
    • Member
      6 point Member
    • NetSpike
    • Member since 11-24-2006, 3:25 PM
    • Posts 21

    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

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-29-2007, 12:38 PM
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    the correct namespace is System.Web.Script.Services.

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    02-03-2007, 4:50 AM
    • Member
      7 point Member
    • waltsully
    • Member since 04-25-2006, 6:19 AM
    • Posts 2

    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 

     

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    02-13-2007, 3:29 AM
    • Member
      5 point Member
    • zhangkun167
    • Member since 02-13-2007, 8:08 AM
    • Posts 3

    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

     

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    02-13-2007, 6:41 AM
    • Contributor
      7,416 point Contributor
    • Garbin
    • Member since 09-17-2004, 12:35 PM
    • Sassari, Italy
    • Posts 1,506
    • ASPInsiders
      TrustedFriends-MVPs

    Hi,

    then, probably, an exception is being raised by the server. Could you report here the content of the response?

    Alessandro Gallo | Blog | My book: ASP.NET AJAX In Action
  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    02-13-2007, 10:47 AM
    • Member
      5 point Member
    • zhangkun167
    • Member since 02-13-2007, 8:08 AM
    • Posts 3

    Hi,

    Now it works fine in my place, i did nothing but restart my computer, really funny he :)

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    03-13-2007, 2:59 PM
    • Member
      6 point Member
    • lsafronova
    • Member since 02-20-2007, 3:00 PM
    • Posts 5

    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

    Filed under:
  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    03-19-2007, 8:23 AM
    • Member
      20 point Member
    • swdev
    • Member since 03-19-2007, 12:10 PM
    • Posts 12

    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 

     

    Filed under:
  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    03-19-2007, 10:18 AM
    • Member
      20 point Member
    • swdev
    • Member since 03-19-2007, 12:10 PM
    • Posts 12

    Try adding the System.Web.Extensions reference.

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    06-05-2007, 2:57 AM
    • Member
      4 point Member
    • prsuman
    • Member since 05-08-2007, 10:40 AM
    • Posts 19

    Hi All Where do i get this System.web.Extensions Reference.. i Need it.. its very urgent...

     Thanks in Advance

    Regards,

    suman

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    06-08-2007, 1:47 AM
    • Member
      48 point Member
    • jamanga
    • Member since 05-21-2007, 1:44 AM
    • Posts 17

     Hi,

    I'm pretty new to web apps but try the following:

    1. Install ASP.NET AJAX Extensions from http://ajax.asp.net/downloads/default.aspx?tabid=47
    2. "Add Reference" within your project, look for the assembly and Add it.

    This should add the reference to your web.config file.

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-09-2008, 4:42 PM
    • Member
      24 point Member
    • kabrown
    • Member since 05-16-2007, 5:20 PM
    • Posts 29

    Thanks so much for your advice -- That's exactly what I needed!

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-14-2008, 8:59 AM
    • Member
      18 point Member
    • imei
    • Member since 01-08-2008, 9:57 PM
    • Posts 17

    Do you have the exact name for the AJAX Extension assembly?  When I did the steps instructed, it added "AJAXExtentionToolkit.dll" and the error message still didn't go away. However, it complains about 'Script', not 'Web' does not exist.

    Any suggestions?

    Thanks!

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-14-2008, 9:49 AM
    • Member
      24 point Member
    • kabrown
    • Member since 05-16-2007, 5:20 PM
    • Posts 29

    I added AJAXControlToolKit.dll

    I am using the latest AJAX download.  I wouldn't think the dll would vary from version to version.  And I didn't get any hits when I searched for AJAXExtension Toolkit.dll.

    Sorry, not much help....

  • Re: [Microsoft.Web.Script.Services.ScriptService()] - The type or namespace name 'Web' does not exist in the namespace 'Microsoft'

    01-14-2008, 10:14 AM
    • Member
      18 point Member
    • imei
    • Member since 01-08-2008, 9:57 PM
    • Posts 17

    Actually you're a great help! It gave confidence that what I did was fine and it turned to be the case.  The only problem was that the assembly didn't come in immediately. Much later after I added the reference, I got a message saying that "web.config was modified outside....do you want to reload..." and I said "yes". There, it is, the assembly showed up in my web.config file. And it works now!

    We need to let people know about the delay of the added reference being effective...for some reason on some cases....

    I do have a second question and would appreciate your help.   Do you have a sample code to invoke the Webservice from a Browser or JS client code? I understand that I can't test the Webmethod as Query String via URL with parameters passed in, although, that's a preferred way for me.

    Many thanks again!

     

Page 1 of 2 (20 items) 1 2 Next >