![]() |
|
|
|||||||
![]() |
ASP Net - Deploying a web service (VS 2005) |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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? timsohn@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
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. Juan T. Llibre ASP.NET MVP http://asp.net.do/foros/ Foros de ASP.NET en Español Ven, y hablemos de ASP.NET... ====================== <> wrote in message news: oups.com... >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? > |
|
|
|
#3 |
|
Posts: n/a
|
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 "Juan T. Llibre" wrote: > 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. > > > > Juan T. Llibre > ASP.NET MVP > http://asp.net.do/foros/ > Foros de ASP.NET en Español > Ven, y hablemos de ASP.NET... > ====================== > > <> wrote in message > news: oups.com... > >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? > > > > > |
|
|
|
#4 |
|
Junior Member
Join Date: Feb 2009
Posts: 1
|
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 |
|
|
|