Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - Deploying a web service (VS 2005)

 
Thread Tools Search this Thread
Old 07-13-2005, 06:56 PM   #1
Default Deploying a web service (VS 2005)


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
  Reply With Quote
Old 07-13-2005, 07:26 PM   #2
Juan T. Llibre
 
Posts: n/a
Default Re: Deploying a web service (VS 2005)

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?
>



  Reply With Quote
Old 10-11-2005, 04:22 PM   #3
=?Utf-8?B?cm11bnNvbjg=?=
 
Posts: n/a
Default Re: Deploying a web service (VS 2005)

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?
> >

>
>
>

  Reply With Quote
Old 02-04-2009, 06:34 AM   #4
narendar
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default 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
narendar is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump