Web Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SGVsZW4gVHJpbQ==?=

    #1

    Web Service

    I am learning about Web Services, so I am following the instructions in HOW
    TO: Write a Simple Web Service by Using Visual C# .NET on the MSDN site:


    I have entered the code but when I build it, I get an error about a file
    that Visual Studio added called 'global.asax. This is the error:
    c:\Inetpub\wwwr oot\MathsServic e\MathsService\ Global.asax: ASP.NET runtime
    error: There is no build provider registered for the extension '.asax'. You
    can register one in the <compilation><b uildProvidersse ction in
    machine.config or web.config. Make sure is has a
    BuildProviderAp pliesToAttribut e attribute which includes the value 'Web' or
    'All'.

    The Help on buildProviders isn't clear and everything I have tried fails to
    sort out the problem.

    What do I do to get rid of the error message?
    Why does Visual Studio include the file but not the instructions to run it?

    Thanks for your help,
    Helen




  • Jon Skeet [C# MVP]

    #2
    Re: Web Service

    On Sep 11, 11:32 am, Helen Trim <HelenT...@disc ussions.microso ft.com>
    wrote:
    I am learning about Web Services, so I am following the instructions in HOW
    TO: Write a Simple Web Service by Using Visual C# .NET on the MSDN
    site:http://support.microsoft.com/kb/308359/
    Which version of Visual Studio are you using - 2003 or 2005?

    Jon

    Comment

    • =?Utf-8?B?SGVsZW4gVHJpbQ==?=

      #3
      Re: Web Service

      Thanks. I have found out what the problem was. I need to be running .NET
      2.0 on the Default Web Site.

      It seems to work now.

      Helen

      "Jon Skeet [C# MVP]" wrote:
      On Sep 11, 11:32 am, Helen Trim <HelenT...@disc ussions.microso ft.com>
      wrote:
      I am learning about Web Services, so I am following the instructions in HOW
      TO: Write a Simple Web Service by Using Visual C# .NET on the MSDN
      site:http://support.microsoft.com/kb/308359/
      >
      Which version of Visual Studio are you using - 2003 or 2005?
      >
      Jon
      >
      >

      Comment

      Working...