SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Error Publishing and Running a WebService on the IIS Web Server

rated by 0 users
This post has 2 Replies | 2 Followers

Top 50 Contributor
Posts 81
mythios Posted: 04-14-2008 11:32 AM

I dun know if any1 ever face this same Problem as me when publishing and
running a WebService from the IIS Server

I created a simple VB.NET Web Services
The WebServices run well from the Visual Studio
The WebService can also consumed without error from another VB.Net applications

However, when I deployed and published it to run on the IIS Web Server as follows :-
 C:\Inetpub\wwwroot\ProductWS\ProdService.asmx
and run the WebService on browser from the IIS Server
(http://localhost/ProductWS/ProdService.asmx), it return the following errors:-


---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 The XML page cannot be displayed
 Cannot view XML input using XSL style sheet. Please correct the error and then  click the Refresh button, or try again later.

 

 A name was started with an invalid character. Error processing resource  'http://localhost/ProductWS/ProdService.asmx'. Lin...

 <%@ WebService Language="VB" Class="ProdService" %>
 -^

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Any1 encountered such problem and know the solution? pls advise me.

Thanks.

Top 10 Contributor
Posts 2,258
Is the .NET Framework (v1 or v2 for your case) even installed on the server, and IIS configured to operate ASP.NET?

The melody of logic will always play out the truth. ~ Narumi Ayumu, Spiral

Top 50 Contributor
Posts 81

hi thanks... i just realized for ur hint... I am using the wrong version of ASP.NET in my IIS server..

The Web Service was created with ASP.NET version 2.xxxx, but the IIS Server is still referencing to ASP.NET version 1.xxxx....

 

I fixed it and it works..

Thanks. :> 

Page 1 of 1 (3 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems