473,378 Members | 1,457 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,378 software developers and data experts.

working with web services in asp.net 2.0

Hi,

I am working with webservices in asp.net framework 2.0. when i run the
webservice it didnot give any errors and it was working well but when I add
it to one of my projects as add web reference its giving the following 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="C#" CodeBehind="Service.cs"
Class="Service" %>

Source File: /WebSite1/Service.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
--
++++++++++++++++++++++++++++++++++++++++++++++++++ ++

I dont understand what exactly is the problem with my webservice as i
already told you when I test my webservice individually it was working well
but it gave me problem only when i made it as a web reference to one of my
projects.

I was suggested by one of my friends that " vs2005 doestnot have any
codebehind for the webservices" Is it ture?

If so how could i solve my problem. please help me out.


------------------


failures are the stepping stones to success
Sep 14 '06 #1
2 1561
I don't see a reply to this, but I am having a similar problem. I'm a newbie
at Web Services via ASP.NET. I created an ASP.NET WebService in Visual Studio
2005, publishing to an internal IIS server. When I try to add a Web Reference
to it, I get the same error message: "Parser Error Message: Could not create
type Service". I get the same result if I just try to browse to the
Service.asmx from the browser.

Any help would be appreciated.

"prad" wrote:
Hi,

I am working with webservices in asp.net framework 2.0. when i run the
webservice it didnot give any errors and it was working well but when I add
it to one of my projects as add web reference its giving the following 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="C#" CodeBehind="Service.cs"
Class="Service" %>

Source File: /WebSite1/Service.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
--
++++++++++++++++++++++++++++++++++++++++++++++++++ ++

I dont understand what exactly is the problem with my webservice as i
already told you when I test my webservice individually it was working well
but it gave me problem only when i made it as a web reference to one of my
projects.

I was suggested by one of my friends that " vs2005 doestnot have any
codebehind for the webservices" Is it ture?

If so how could i solve my problem. please help me out.


------------------


failures are the stepping stones to success
Sep 20 '06 #2
hi there..
i got the same error...did u resolve it?

"WesThielke" wrote:
I don't see a reply to this, but I am having a similar problem. I'm a newbie
at Web Services via ASP.NET. I created an ASP.NET WebService in Visual Studio
2005, publishing to an internal IIS server. When I try to add a Web Reference
to it, I get the same error message: "Parser Error Message: Could not create
type Service". I get the same result if I just try to browse to the
Service.asmx from the browser.

Any help would be appreciated.

"prad" wrote:
Hi,

I am working with webservices in asp.net framework 2.0. when i run the
webservice it didnot give any errors and it was working well but when I add
it to one of my projects as add web reference its giving the following 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="C#" CodeBehind="Service.cs"
Class="Service" %>

Source File: /WebSite1/Service.asmx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
--
++++++++++++++++++++++++++++++++++++++++++++++++++ ++

I dont understand what exactly is the problem with my webservice as i
already told you when I test my webservice individually it was working well
but it gave me problem only when i made it as a web reference to one of my
projects.

I was suggested by one of my friends that " vs2005 doestnot have any
codebehind for the webservices" Is it ture?

If so how could i solve my problem. please help me out.


------------------


failures are the stepping stones to success
Oct 4 '06 #3

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

Similar topics

6
by: Alan | last post by:
New to IIS, Why will IIS 5.0 not server up my ASP web pages? I cannot even get to the help because it is an ASP Page. I get an error in IE that states "HTTP 500 Internal server error". I have...
1
by: Notlwonk | last post by:
Not sure where to post this Q I am trying to write a Managed Exchange Server Event Sink (as a class library) in C# I have been following this tutorial step-by-step ...
0
by: Saumendra | last post by:
Hi guys, When I am adding a Web Reference in Visual Studio.net, I provide the url to the .vsdisco file, so that Visual Studio.net can dynamically discover all the available Web Services. Now when...
0
by: Chris | last post by:
Please help. I have written an application in VB.NET that communicates to an XML Web Service (a Web Sphere site). The WSDL client class where created using WSDL command. (wsdl /language:VB...
2
by: Adrian | last post by:
Hi, I am running an ASP.Net application (v1.1.4322) on an NLB cluster of 2 web servers. I have an intermittent problem where sometimes button click events do not get registered upon postback....
6
by: Matt Frame | last post by:
I have a client that has asked us to get a digital signature certificate and start digitally signing all files we pass between each other. I have heard of the subject and know about the certs but...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
9
by: JT | last post by:
Here is the overall structure I will be referring to: End-program ProvideWorkFlow.dll Forms and methods that properly manipulate calls to methods in AccessUtils AccessUtils (a web service)...
3
by: UJ | last post by:
I've got a working web service that we are moving to another machine and now I suddenly get the following error. While transferring the files, got the following message:...
1
by: Mark B | last post by:
This is my first try at using AJAX. I want the calendars to be enabled if the user checks CheckBox1. It works OK for a normal all page refresh but once I introduced the AJAX code it stopped...
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
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.