ianinspain
asked on
500pts: Creating a brand new webservice gives error on Global.asax.cs - seems to be missing?
Hi there,
Can anyone help...
I created a new webservice in Vs2003 and when i try running it i get the following error...
Its very strange....
My global.asax has this line in it...
<%@ Application Codebehind="Global.asax.cs " Inherits="MyWebService.Glo bal" %>
although i must admit i can't seem to find the Global.asax.cs .... I have tried to create simple webservice using the templates (File, New) and i get the same results.. I have also tried to Build the project under build menu and remove the DLL...
Thanks in advance for any help
Ian
Server Error in '/MyWebService' 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 'MyWebService.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs " Inherits="MyWebService.Glo bal" %>
Source File: c:\inetpub\wwwroot\MyWebSe rvice\glob al.asax Line: 1
-------------------------- ---------- ---------- ---------- ---------- ---------- ----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Can anyone help...
I created a new webservice in Vs2003 and when i try running it i get the following error...
Its very strange....
My global.asax has this line in it...
<%@ Application Codebehind="Global.asax.cs
although i must admit i can't seem to find the Global.asax.cs .... I have tried to create simple webservice using the templates (File, New) and i get the same results.. I have also tried to Build the project under build menu and remove the DLL...
Thanks in advance for any help
Ian
Server Error in '/MyWebService' 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 'MyWebService.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.cs
Source File: c:\inetpub\wwwroot\MyWebSe
--------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
check if your webservice namespace and class name are the same. if they are change one of them and try again
ASKER
No my webservice namespace is using the temp tempuri or whatever it is..
But my namespace for Vs 2003 is MyWebService
and my class that is one of my webservices is currently service1
If i do remove global.aspx then the error disappears...
Very straannnngeee..
Ian
But my namespace for Vs 2003 is MyWebService
and my class that is one of my webservices is currently service1
If i do remove global.aspx then the error disappears...
Very straannnngeee..
Ian
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes i did try that.. and followed alot of what was in the message but it appears the only thing that works for me is to remove the global
It is like the global.asx.cs is missing....
It is like the global.asx.cs is missing....
ASKER
Anybody have anymore suggestions on this??