Web service convert to VS2005 web service

H

Harry Simpson

I've upgraded a webservice project from VS2003 to VS2005. In my VS2003
solution I created a handy msi install for the webservice that always worked
fine.

In my VS2005 solution I also created this msi install for my VS2005
Webservice app. The web service works fine in the IDE in debug run mode and
compiles just fine into a MSI install but after the install I try to hit the
main asmx page and get the following error:

Server Error in '/tezDataAccess' 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 load type 'tezDataAccess.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="tezDataAccess.Global" %>
Source File: /tezDataAccess/global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET
Version:2.0.50727.832

If I remember when I converted to VS2005 it did not create a Global.asax
file which I use extensively. I added one to the project and like I said
all works fine in the IDE and even hitting the service on my box just from
IE.

Obviously something is not right with the install - also I'm installing this
on a Windows 2003 Server whereas my box is running XP Pro if that'd make any
difference.....

Anyone else run into this?

TIA

Harry
 
J

John Saunders [MVP]

Harry Simpson said:
I've upgraded a webservice project from VS2003 to VS2005. In my VS2003
solution I created a handy msi install for the webservice that always
worked fine.

In my VS2005 solution I also created this msi install for my VS2005
Webservice app. The web service works fine in the IDE in debug run mode
and compiles just fine into a MSI install but after the install I try to
hit the main asmx page and get the following error:

Server Error in '/tezDataAccess' 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 load type 'tezDataAccess.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="tezDataAccess.Global" %>
Source File: /tezDataAccess/global.asax Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.832;
ASP.NET Version:2.0.50727.832

If I remember when I converted to VS2005 it did not create a Global.asax
file which I use extensively. I added one to the project and like I said
all works fine in the IDE and even hitting the service on my box just from
IE.

Obviously something is not right with the install - also I'm installing
this on a Windows 2003 Server whereas my box is running XP Pro if that'd
make any difference.....

Anyone else run into this?

Just everyone who tried to use the new "Web Site" model in VS2005.

You should create a new Web Service Project and fill it with your existing
code. That is the same kind of project as in VS2003, and it's the only one I
suggest that anyone use for serious development work.
 
H

Harry Simpson

COL then LOL .....

Thanks John,

I looked at the installed directory and it failed to place the DLL in the
BIN directory but left it in the root.....copied the DLL into the BIN and
ran it again on the deployed platform and it runs fine.

thanks for the good advice on this

Harry
 
K

Katerina Kostrioukova

I also had the same problem - converted WebServices project from VS2003 to
VS2005 and got Parser Error Message: Could not load type.
After few hours I was able to fix it. The problem is that the WebService dll
is not created in bin folder of the project if the project type is WebSite.
So I have removed the WebService project from the solution and re-added it
back by selecting File - Add - Exiting Project.
After that when doing a build the bin folder is created, WebService dll was
built in that bin folder and no parse error message!
Hope this will help.

Katerina
 
H

Harry Simpson

Thanks Katerina,
That's about what I did to work it out. Appreciate the response.
Harry
 

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

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top