"Could Not Load Type" Error Message When You Browse to .aspx Page by Using Visual C# .NET

my application (both WebService and WebApplication) resides in Server, on which .NET Framework 1.1 version installed. on my desktop(where MS Visual Studio.NET 2003 installed) I mapped network drive to the server and open the project and compiled using MS VS.NET. And virtual application properly mapped the WebService folder on the server. And when I tried to access the Web Service, it returns with parser error, stating could not load type namespace.global. I renamed the global.asax file, then it works fine. I just want to know what could be the problem. I have gone through MS KB article(http://support.microsoft.com/default.aspx?scid=kb;en-us;306155&Product=aspnet) and build the solution and all the dlls are fine, but still I am getting the same error. Could anybody be help to me in this regard.

thanks in advance
RK
0
rkrishna
11/19/2003 5:19:47 PM
asp.net.getting-started 91979 articles. 3 followers. Follow

8 Replies
839 Views

Similar Articles

[PageSpeed] 42

global.asax.cs (or .vb) is probably not in your solution. So when the runtime looks for it in your compiled site dll, it doesn't find it and throws. If you rename global.asax, you eliminate the need for the runtime to access this class and the rror goes away.

Does this help?
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
0
bleroy
11/19/2003 7:29:23 PM
You may be right, but Global.asax.cs file is there in my application solution. Anyways thanks.

RK
0
rkrishna
11/19/2003 9:28:09 PM
Did you check that the inherits attribute in global.asax matches the class that is in global.asax.cs?
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
0
bleroy
11/19/2003 10:35:23 PM
yes, inherits attribute in global.asax matches with that of global.asax.cs.

wishes
RK
0
rkrishna
11/20/2003 2:13:52 PM
Did you check you don't have both src and inherits attributes?

Did you explore your web site dll with ILDASM, just to check the class is really there?
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
0
bleroy
11/20/2003 8:33:50 PM
global.asax and global.asax.cs files are created when I created the webservices project solution. I didnt changed it. But when I run ILDASM against webservice.dll, i couldnt see global class(of global.asax) in the output file(output of ILDASM). Should it be there??
0
rkrishna
11/21/2003 8:00:34 PM
Yes, it should be there.
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
0
bleroy
11/21/2003 8:51:09 PM
thank you very much. I am glad and appreciate your help. Actually, somehow I miss the references to global.asax, global.asax.cs and global.asax.resx in my project file. thats why global.asax.cs didnt compiled in the solution. I looked upon only when you told me about this ILDASM.

thanx&regards
RK
0
rkrishna
11/21/2003 10:07:49 PM
Reply:

Similar Artilces:

Retrograding httpHandler from .NET 2.0 to 1.1, get "Parser Error Message: Could not create type" message
Hi there,I have written a httpHandler using VS2005 and .NET 2.0 that builds and works fine.However, I am now having to convert it to .NET 1.1, which I hoped would just be a case of changing the runtime used by the web app (as in running the 1.1 version of aspnet_regiis, with a "-s" switch pointing at my web apps folder). After doing this though (and fixing a few minor differences with web.config), if I then navigate to my handler I get the following error message:Server Error in '/Path/To/MyWebApp' Application.Parser ErrorDescription: An error occurred during the parsing of...

Developed C#.net WebService 1.1 for Client C#.net 1.1. Getting error "Server was unable to process the Request" Pls Help
Hi., I developed Microsoft C#.net Web Services2003 for the Client Application C#.net 2003. When it runs in 5 machines it gives good performance and has no errors. But if i run the same application in about 80 client machines. Getting error "Server was unable to process the request". I use Sql Server 2005 as my database. I get error even when i login at a time for about 25 users. Tried modifying machine.config too. But went unsuccessful. Live Server is 2003 using IIS 6.0 I use very expensive data handling.  Its very urgent pls help. Have to post in Live Server. Thank u., ...

C#.Net "Double" and "double" When/Where to use?
Hi all     Please let me know the difference between "Double" and "double" in c#.Net (I understand that "Double" is structure      and "double" is an instance to that structure) differences if any thing else.     Also the context in which both has been used.(When/Where to use both). thanks all...      hi,my brains says Double is reference type & double is value type.regards,satishKind Attn: If a reply to your post helped you, kindly mark it as Answered.__________...

Error found "Access to the path "C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Viewers" is denied. "
Hi guys! i'm trying to solve the error "Err Msg: "Object reference not set to an instance of an object" in ASP.NET app" but when i followed the instructions in the http://community.crystaldecisions.com/library/kbase/articles/c2011144.asp link, this error appeared ""Access to the path "C:\Program Files\Microsoft Visual Studio .NET\Crystal Reports\Viewers" is denied. " What's going on? i already went to the iis to add new virtual directory (CrystalReportWebFormViewer) but different error appeared when i compile and browse my application. pls help ...

Use Loadcontrol and receive "Could not load type error" Error message
hi,I have a vb.net asp.net web app.suddenly after working for long time, I get this error message in my app:Could not load typewhen trying to show a web form.what can be the error?the iis app is still there.the DLL checked in reflector and have the type inside it declared as public.security to the file is OK (even in filemon I can see that aspnet_wp.exe isaccessing the file)what can be the problem? I just don't know what to do!additional information:the page is an aspx web for without code behind that is inheriting from aPageBase that is declared in my APP.the pageBase type is loaded fine, a...

Trying to transfer a Web Service made in .NET aspx on my "localhost", to online and getting BC30002: Type 'localhost.Convert' is not defined. error
I think I get the general idea of this error.  The webservice works on my computer as Visual Web Developer somehow makes a temporary server out of my computer.  But when I try to FTP my full ASP page I get an error that localhost is not defined.  This makes sense as I am sure the web server for GoDaddy is not called localhost for me.  Now in my App_WebReferences folder in my program I have a local host folder that holds 3 automatically generated files which are somehow "calls" to a webservice that I built.  So I have the original files for the webservi...

Whan can i do? make "string" data type convert to "window" data type, and use a "window" name to get it ancestor "window name", thanks! i use pb5
Rich, With a string window name, you can open a window of that type if you need to. You could, of course, query that window object for any attributes. Another option is to use the LibraryExport function to export the definition of the window which is specified by the string. You can then parse the resulting file to get information on the ancestor object. HTH Sanjiv. "Rich" <windows_ce@netease.com> wrote in message news:2Xsr1WW0AHA.178@forums.sybase.com... > > > ...

I couldn't install Visual Studio.Net 2003, while installing an error message "Internal Error is comming"
[DMW: deleted due to the length of the log, and what follows is what's important][09/29/05,14:28:23] Visual Studio .NET Enterprise Architect 2003 - English: ***ERRORLOG EVENT*** : ACTION FAILURE: Action ended 14:28:23: CADpc.D0DF3458_A845_11D3_8D0A_0050046416B9. Return value 3. See MSI log for details.[09/29/05,14:28:23] Visual Studio .NET Enterprise Architect 2003 - English: ***ERRORLOG EVENT*** : ACTION FAILURE: Action ended 14:28:23: INSTALL. Return value 3. See MSI log for details.[09/29/05,14:28:30] Visual Studio .NET Enterprise Architect 2003 - English: MsiInstallProduct return cod...

Hide "NET USE" C:\Windows\System32\net.exe prompt
--____HXVYWAWXUSKEVXKBAEOI____ Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On our logon script I'm currently mapping NetWare shares using the MAP = command and Windows shares using the NET USE command. Everything is = working fine and well its just that I'd like to completely hide the = windows command prompt box at login. Close as I've come to a recommendation= was to minimize it but not to completely hide it. as a example of what I'm currently doing: @CMD /C START /M NET USE R: = \\servername\sharename "@C...

I'm getting an error using NavigateURL ='<%# Eval("Url") %>', it works when using NavigateURL="intro.aspx"
I'm getting an error using NavigateURL ='<%# Eval("Url") %>', it works when I use NavigateURL="intro.aspx" Server Error in '/orthoassist' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. Requested URL: /orthoassist/intro.aspx <asp:HyperLink runat="server" ID="hl1" Text=...

"option value out of range" error message when using .net
I have an app which reads/writes to a sybase 7.0.4 database. When compiled using visual C++ v6 it works fine. When I compile under .net, any write to the database causes a "option value out of range" exception to be thrown when the recordset is updated. This happens for any write - even if it's to a simple table of 1 column, regardless of data type. I can't find any documentation about this error message. Any idea about what it means, or how to fix it? Running the server adding '-zr SQL' will at least show you what SQL operation and data values are being ...

Getting an "Unknown runtime error" when using Sys.Net.WebRequest
Hi,I'm trying to use Sys.Net.WebRequest to implement incremental page display (as described in this video: http://www.asp.net/learn/ajax-videos/video-120.aspx). Basically, I'm trying to inject the HTML from one aspx page into a div on another aspx page.The page request works just fine, but when I try to set the div's innerHTML to the value returned by get_responseData(), I'm getting an "Unknown runtime error". I found a forum post that suggested that this might be due to adding a second form tag to the page, but this wasn't a problem in the video I linked to abo...

how to get date in "dd/mm/yyyy" using C#.net?
Hi I have  textbox, while page loads, by default this texbox need to be with today's date in "dd/mm/yyyy"  format... Can anyone suggest how to do this using c#.net. Thanks aviThanks and RegardsAvinashavicool08@gmail.com  <body>    <form id="form1" runat="server">    <div>    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>    </div>            </form></body...

Visual Studio "Orcas" Visual Studio.net "2005"
What are Microsoft on weed??? Whidby Orcas Indigo XAML Longhorn What are they trying to do to us developers. The transition to any new tools should be minimal. What we know about WebServices is now old bunk. Why did we bother with .net 1.1???????? Now we need to learn new silly names and new ways of doing things. Yes .net 1.1 is still supported in v2.0. But there are a million and one other needless things that we will have pushed onto us. Only to find in anther two years that they are old hat and there are new radical ways to do what we want.MCAD.Net vb.n...

Web resources about - "Could Not Load Type" Error Message When You Browse to .aspx Page by Using Visual C# .NET - asp.net.getting-started

Resources last updated: 12/3/2015 6:30:14 AM