Deploying a web service (VS 2005)

T

timsohn

I am trying to deploy the most basic web service (Hello World) example
to my website, but am having significant trouble doing so. Here is what
I am doing:

1) Create a New Web Service in VS 2005
2) Build the website
3) Verify that it works by clicking "View in Browser"
4) Click Copy Website to copy to my webserver
5) Navigate to the website where I just deployed the service

Here's the error I get:

----------------------
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="C#"
CodeBehind="~/App_Code/Service.cs" Class="Service" %>


Source File: \\slfiles01\seattle\people\tsohn\test\Service.asmx
Line: 1
Version Information: Microsoft .NET Framework Version:1.1.4322.2032;
ASP.NET Version:1.1.4322.2032
----------------------

Any suggestions on what to do? I tried the idea of copying over the
..dll files from the Temporary ASP.Net folder to a bin\ directory on the
webserver, but no luck.

Does the server need ASP 2.0? What if there is no way to upgrade it to
2.0?
 
J

Juan T. Llibre

You're trying to run a web service compiled for
ASP.NET 2.0, in a web server which is running ASP.NET 1.1.

There's no way that server running ASP.NET 1.1 will ever understand
CodeBehind="~/App_Code/Service.cs"

Make sure your server can run ASP.NET 2.0 apps,
or limit your deployment to ASP.NET 1.1 apps.
 
G

Guest

I am getting this same error for my project, but have verified that my web
service is using ASP.Net 2.0.50215.315.

Mine is also working when I "View in Browser" via VS, but not when I open
the page deployed to IIS.

Is there anything else that would cause this error?

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 'POWorkflow'.

Source Error:

Line 1: <%@ WebService Language="C#" CodeBehind="~/App_Code/POWorkflow.cs"
Class="POWorkflow" %>

Source File: /POWorkflow/POWorkflow.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50215.315; ASP.NET
Version:2.0.50215.315

Thanks,
Ryan
 
Joined
Feb 4, 2009
Messages
1
Reaction score
0
Facing the same problem

Ya me too getting the same problem.

I have created the webservice which is working very fine in my local machine.
And I have uploaded it in the directory specified.

But it is giving the error:

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: /webservices/myservice/service.asmx Line: 1

Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434

Is ur problem get solved ?? If so please share here..

Thanks ,
nArEn
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top