Web Service - CSharp

This is a discussion on Web Service - CSharp ; 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/ I have entered the code but when I build it, ...

+ Reply to Thread
Results 1 to 3 of 3

Web Service

  1. Default 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:
    http://support.microsoft.com/kb/308359/

    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\wwwroot\MathsService\MathsService\Global.asax: ASP.NET runtime
    error: There is no build provider registered for the extension '.asax'. You
    can register one in the <compilation><buildProviders> section in
    machine.config or web.config. Make sure is has a
    BuildProviderAppliesToAttribute 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





  2. Default Re: Web Service

    On Sep 11, 11:32 am, Helen Trim <HelenT...@discussions.microsoft.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


  3. Default 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...@discussions.microsoft.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
    >
    >


+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: 05-21-2007, 04:40 AM
  2. Visual Web Service Client - SOAP Web Service test utility
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-10-2007, 01:59 AM
  3. Replies: 4
    Last Post: 04-07-2006, 12:41 AM
  4. retrieve service starttype and current user account of service
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-09-2005, 08:30 AM
  5. The World Wide Web Publishing Service service hung on starting
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 11-14-2003, 10:33 AM