Hey The Learned One. Thanks for responding.
No, I'm not using the pre-compiled web service. In fact, there isn't even an app_code folder in the project. And it works fine w/o it in the debugger.
Main Topics
Browse All TopicsHello 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
/compan/webservices/classa
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
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/webse
I 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
Source Error:
Line 1: <%@ WebService Language="VB" CodeBehind="LCS_Requisitio
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
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I discovered the problem, after WEEKS on the phone w/Microsoft 'experts'. Yikes. Getting these people to admit something is a bug is nigh on impossible.
For future reference, you cannot place an asmx file more than two levels down from the web.config file.
In other words, the following will work:
website folder (web.config)
--webservices folder
myservice.asmx
The following will NEVER WORK:
website folder (web.config)
--webservices main folder
----web services category 1 folder
----myservice_category1.as
There is a bug in web services in ASP.NET that it cannot find a bin from more than two levels down. Of course, in Java, this is not even an issue--ergo the two weeks I spent helping M$ diagnose their bug is time I would never even had to have spent if using Java.
Ah, If Java had just not completely screwed up their language w/J2EE..because Microsoft is sure doing everything they can to f up asp.net.
There *should* be an app.config for *every* dll, that is somehow referenced by whatever web.config or app.config is controlling the *application*.
I say this, because we have other issues in wrapping our Data Providers and BOs in web services. What about localization? Do you know what you have to do? You have to *COPY* the App_GlobalResources and App_LocalResources to multiple folders in order to implement localization for both web applications and web services (since the only solution to the first problem was to have a www.mysite.com and a webservices.mysite.com/cat
You can delete this question. Or save it for future folks who ask the 'why isn't my web service working?'.
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2007-08-22 at 18:37:14ID: 19750977
Are you working with the pre-compiled web service? If not, then you need to copy the code-behind into the App_Code folder on the web service site.
Bob