473,383 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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?

Nov 19 '05 #1
2 1842
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...
======================

<ti*****@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr 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?

Nov 19 '05 #2
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...
======================

<ti*****@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr 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?


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bryan Dickerson | last post by:
I fairly have my Web Service working the way that I want, so my next step will be to deploy it on a server. Do I just add a deployment/install project, build it and install it on the server? ...
7
by: Mantorok | last post by:
Hi all I have a web-service that references another project (the component) that actually carries out the work, the web-service is simply acting as the public interface. The web-service on...
0
by: refv8 | last post by:
Hi im working on aplications with Form authentication where the users is from a Active Directory in one server inside the Domain, i want to see using the ReportViewer to see the report hosted in...
0
by: refv8 | last post by:
Hi i want to do a list of all Report that i have in a specific folder in the Report server (this is en different server where is the DB) and i want to show this list of report in a page. for...
6
by: rcoco | last post by:
Hi, I've been working on local host to create a webform in asp.net. now I'supposed to deploy it on another server how could I do this? Thank you
6
by: Ryan | last post by:
Is there any way to save a VB 2005 created application as an .MSI install file? The only method I see is to publish as a .EXE. Curious because I want to push out an application with Group Policy....
3
by: cpasmwalolo | last post by:
Hello thezre, I recently installed the SP1 of visual studio, just before releasing a new version of my application. And I never though that this SP1 could change something fondamental in the...
0
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi All, Problem in deploying my WebService developed using Asp.net WebServices 2005. I have designed simple WebService using Asp.net Webservices 2.0 , The webservice look this , using System;...
2
by: jack | last post by:
Hi Our team is developing reports using sql reporting service 2005. We all are new in this area. I would be glad if any one suggest me the integration of asp.net and sql reporting service. ...
0
by: =?Utf-8?B?UmljaGFyZCBDb2xsZXR0ZQ==?= | last post by:
I have a web application which references a service tier class library/assembly. The service tier assembly takes a domain object, serializes it to xml and then performs a translation to generate...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.