Can't run Web Services

  • Thread starter Thread starter cp chan
  • Start date Start date
C

cp chan

Dear all,

I am using Visual Studio 2005 Professional Edition and have the following
working environment :

C:\MathService\MathService.asmx
C:\MathService\web.config
C:\MathService\App_Code\MathService.vb
C:\MathService\App_Data\

I could run this Web Service inside Visual Studio :

http://localhost:2683/MathService/MathService.asmx

But, outside Visual Studio, both of the following 2 statements failed :

http://localhost:2683/MathService/MathService.asmx error message : "The page
cannot be displayed"
http://localhost/MathService/MathService.asmx error message : "Server Error
in '/' Application", "The resource cannot be found"

Did I do any mistake during the development ?
 
cp chan said:
I am using Visual Studio 2005 Professional Edition and have the
following working environment :

C:\MathService\MathService.asmx
C:\MathService\web.config
C:\MathService\App_Code\MathService.vb
C:\MathService\App_Data\

I could run this Web Service inside Visual Studio :

http://localhost:2683/MathService/MathService.asmx

But, outside Visual Studio, both of the following 2 statements failed
:

http://localhost:2683/MathService/MathService.asmx error message :
"The page cannot be displayed"
http://localhost/MathService/MathService.asmx error message : "Server
Error in '/' Application", "The resource cannot be found"

Did I do any mistake during the development ?

1. Check your file permissions, did you the ASPNET account access to the
directory?

2. In IIS, did you set the MathService directory as an application
directory?

3. Did you map the directory as a virtual dir in IIS?

4. Do you have .NET 1.1 and .NET 2.0 loaded on the machine? If you do,
IIS defaults to .NET 1.1, you'll need to manually switch the directory
over to .NET 2.0. You can do this via the IIS management console.7
 
Back
Top