Hello experts.
I have been working w/webservices for a while, and have figured this out before, but my environment in this situation is different, so I need an expert.
Here is the layout of my web application (that pertains to this issue):
192.168.0.152 (this is the IP address of my website in IIS)
/bin/
/company/webservices/class
a/LCS_Requ
isitionDat
a.asmx
/compan/webservices/classa
/bin/
web.config
As you can see, I have a web application in the root (where the web.config file is), but I do not have a web.config file in my webservice root, which is in fact a subdirectory off of my web root.
The name of my webservice file is:
LCS_RequisitionData.asmx
The name of the Class in my above file is:
RequisitionsData
My assembly name is:
WSRequisitions
In my .asmx file, I have the following:
<%@ WebService Language="VB" CodeBehind="LCS_Requisitio
nData.asmx
.vb" Class="WSRequisitions.Requ
isitionsDa
ta" %>
I essentially copy the WSRequisitions.dll file from the webservice bin folder to the web app root /bin folder (I do this w/a build support project, but that's irrelevant, right?)
When I attempt to run my above webservice file as follows:
http://192.168.0.152/webservices/classa/LCS_RequisitionData.asmxI get the following 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 'WSRequisitions.Requisitio
nsData'.
Source Error:
Line 1: <%@ WebService Language="VB" CodeBehind="LCS_Requisitio
nData.asmx
.vb" Class="WSRequisitions.Requ
isitionsDa
ta" %>
The rest of the web app runs fine. I do not have a web.config file in the webservice folder, because of the issues w/multiple web.config files in application subdirectories.
I believe I have to change my web.config file in some way, but I've tried numerous things and none worked.
Can an expert help me get this running? I have looked at *each* of the other 'web parser error' questions here and on google, and none of them answer this question of what to do in a situation like this.
Obviously difficult question, so 500 big ones to the expert who can answer it... :)
--------------------------
----------
----------
----------
----------
----------
----
Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832