troubleshooting Question

ASMX Web service created with VS 2008 has Parse Error when published with IIS 6

Avatar of bobcann
bobcannFlag for United States of America asked on
Microsoft Development
2 Comments1 Solution492 ViewsLast Modified:
I have an ASMX webservice I created using Visual Studio 2008.
When compiled and published to a box with server 2008 (64 Bit OS) that has IIS 7 it works.
However when published to a Server 2003 (32 Bit OS) with .NET Framework 3.5 sp1 installed that has IIS 6.

The following error comes up when trying to open the published web service’s Service.asmx file in a web browse. Does anyone know a fix for this? Thank you for any help you give.:

Server Error in '/' 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 'Service'.

Source Error:

Line 1:  <%@ WebService Language="vb" CodeBehind="~/App_Code/Service.vb" Class="Service" %>

Source File: /Geocode_Test/Service.asmx    Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

compiled VS 2008 ASMX Webservice
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros