Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. C# and Web Services

C# and Web Services

Scheduled Pinned Locked Moved C#
csharpwcfbeta-testinghelpcode-review
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Keith Mai
    wrote on last edited by
    #1

    Hi There, I'm very new to all this web services stuff and would like to learn. I tried downloading the C# web services examples and followed the direction on building and running it. I ran into this problem: When trying to access the *.asmx file from the browser, Internet Explorer prompted me to download the file. After downloading it, I asked IE to open it and all I got was the content of the *.asmx file. Something like the following: <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>" Instead of the web page. I managed to compiled the solution just fine, the problem arise when I tried to view the page. Any comment or feedback would be more than appreciated. Thanks in advance.

    J F K 3 Replies Last reply
    0
    • K Keith Mai

      Hi There, I'm very new to all this web services stuff and would like to learn. I tried downloading the C# web services examples and followed the direction on building and running it. I ran into this problem: When trying to access the *.asmx file from the browser, Internet Explorer prompted me to download the file. After downloading it, I asked IE to open it and all I got was the content of the *.asmx file. Something like the following: <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>" Instead of the web page. I managed to compiled the solution just fine, the problem arise when I tried to view the page. Any comment or feedback would be more than appreciated. Thanks in advance.

      J Offline
      J Offline
      James T Johnson
      wrote on last edited by
      #2

      It sounds like the webserver doesn't have ASP.NET installed. James "Java is free - and worth every penny." - Christian Graus

      1 Reply Last reply
      0
      • K Keith Mai

        Hi There, I'm very new to all this web services stuff and would like to learn. I tried downloading the C# web services examples and followed the direction on building and running it. I ran into this problem: When trying to access the *.asmx file from the browser, Internet Explorer prompted me to download the file. After downloading it, I asked IE to open it and all I got was the content of the *.asmx file. Something like the following: <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>" Instead of the web page. I managed to compiled the solution just fine, the problem arise when I tried to view the page. Any comment or feedback would be more than appreciated. Thanks in advance.

        F Offline
        F Offline
        Feng Qin
        wrote on last edited by
        #3

        Use command: aspnet_iisreg -i to install .net framework to your iis server. I'm amumu, and you?

        1 Reply Last reply
        0
        • K Keith Mai

          Hi There, I'm very new to all this web services stuff and would like to learn. I tried downloading the C# web services examples and followed the direction on building and running it. I ran into this problem: When trying to access the *.asmx file from the browser, Internet Explorer prompted me to download the file. After downloading it, I asked IE to open it and all I got was the content of the *.asmx file. Something like the following: <%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>" Instead of the web page. I managed to compiled the solution just fine, the problem arise when I tried to view the page. Any comment or feedback would be more than appreciated. Thanks in advance.

          K Offline
          K Offline
          Keith Mai
          wrote on last edited by
          #4

          Thank you all for your input. It turned out that I did have ASP.NET install or so I thought. I did windows update before and already downloaded and installed the .NET Framework. I then install IIS which does not pick up the .NET Framework. Thanks to you guys, I just reinstall ASP.NET and IIS finally picked it up and it's working great now. Thanks

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups