Web Service Upgrade Problem (v 2002 to 2005)
John Halliday <[email protected]> Wed, 31 Jan 2007 15:49:05 -0600
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <[email protected]> |
I have a web service that ran under .NET 2002 that I ran through the upgrade
wizzard in 2005. There appeared to be no problem with the conversion but
when I went to compile the project I get:
Error 1 Could not create type
'ARTSWS'. C:\Inetpub\wwwroot\ARTS_WS_2\ArtsClaim.asmx 1
When I run to run with errors I get:
Server Error in '/ARTS_WS_2' Application.
------------------------------
*Parser Error* *Description: *An error occurred during the parsing of a
resource required to service this request. Please review the following
specific parse error details and modify your source file appropriately.
*Parser Error Message: *Could not create type 'HHSC_ArtsClaim_WS'.
*Source Error:*
Line 1: <%@ WebService Language="c#"
Codebehind="~/App_Code/ArtsClaim.asmx.cs" Class="HHSC_ArtsClaim_WS" %>
*Source File: */ARTS_WS_2/ArtsClaim.asmx* Line: *1
------------------------------
*Version Information:* Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET Version:2.0.50727.210
I have seen many fixes posted, including:
1) Ensure that the ArtsClaim.asmx Class definition has a matching Public
Class definition of same name.
It does. <%@ WebService Language="c#" Codebehind
="~/App_Code/ArtsClaim.asmx.cs" Class="HHSC_ArtsClaim_WS" %>
*and * public class HHSC_ArtsClaim_WS :
System.Web.Services.WebService{...}
2) Ensure that the ASP.NET version in IIS is set to 2.0.50727.
It is: public class HHSC_ArtsClaim_WS : System.Web.Services.
WebService{...}
3) Wrap the Class 'HHSC_ArtsClaim_WS' inside a namespace in the .c file.
I did: [WebService(Namespace = http://HHSC_ArtsClaim_WS/)]
There were a couple others that did not seem to apply (though I tried
various of them).
I still get the error after trying everything above. Help please!
John Halliday
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com