By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,225 Members | 2,170 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,225 IT Pros & Developers. It's quick & easy.

error running my first web appication

P: n/a
I just created a simple web application and tried to run it. Getting
following...any idea what I'm missing

Thanks in advance
----------------------------------------------------------------------------
----

Server Error in '/test2' 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 'test2.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="test2.Global"
%>

Source File: c:\inetpub\wwwroot\test2\global.asax Line: 1

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573

----------------------------------------------------------------------------
-----------------
Line 1 of Global.asax.vb contains following file
Imports System.Web
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
joe
Sounds like you may not have build your solution. Are you using a server on
your local machine or are you using another server over the web?

"Pa Ji" <PA JI> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I just created a simple web application and tried to run it. Getting
following...any idea what I'm missing

Thanks in advance
-------------------------------------------------------------------------- -- ----

Server Error in '/test2' 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 'test2.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="test2.Global" %>

Source File: c:\inetpub\wwwroot\test2\global.asax Line: 1

-------------------------------------------------------------------------- -- ----

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

-------------------------------------------------------------------------- -- -----------------
Line 1 of Global.asax.vb contains following file
Imports System.Web

Nov 17 '05 #2

P: n/a
Hi,

It seems to be a common error.Usually "Could not load
type" exceptions result from the DDL not being found,
incorrect file permissions on the DLL, or version mismatch
between the assembly that needs to be loaded and the one
that was discovered. First ensure your dll is there
inside the bin fodler. Else please buld your application
and create teh dll. Then check the permsion of the dll.
ASPNet user need the access persion to the dll. Usually
that will be one webfoleder. Then check the dll version.

Please refer the folowing link for more help.
http://msdn.microsoft.com/library/default.asp?
url=/library/en-
us/cpguide/html/cpconhowruntimelocatesassemblies.asp

Let me know if you need further queries.
Regards
Sreejumon[MVP]
-----Original Message-----
I just created a simple web application and tried to run it. Gettingfollowing...any idea what I'm missing

Thanks in advance
---------------------------------------------------------- ----------------------

Server Error in '/test2' Application.
---------------------------------------------------------- ----------------------

Parser Error
Description: An error occurred during the parsing of a resource required toservice this request. Please review the following specific parse errordetails and modify your source file appropriately.

Parser Error Message: Could not load type 'test2.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb" Inherits="test2.Global"%>

Source File: c:\inetpub\wwwroot\test2\global.asax Line: 1
---------------------------------------------------------- ----------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NETVersion:1.1.4322.573

---------------------------------------------------------- -----------------------------------
Line 1 of Global.asax.vb contains following file
Imports System.Web
.

Nov 17 '05 #3

P: n/a
---Thanks for U're help it worked, being Classic ASP developer I never
thought about it.

Pa Ji

"James J. Foster" <ja***@dotnetcoders.com> wrote in message
news:e3**************@TK2MSFTNGP10.phx.gbl...
Are you developing your solution with Visual Studio.NET? If you, you have to compile the project before running it. If you have simply copied files to a web directory without using VS.NET and compiling, remove this from the
global.asax file:

Codebehind="Global.asax.vb" Inherits="test2.Global"

If many of the other files contain Codebehind...etc as well, then likely
there is legitimate code in those files, and you will need to compile the
application for it to execute properly.
James J. Foster, DotNetCoders
http://www.dotnetcoders.com

"Pa Ji" <PA JI> wrote in message
news:#Z**************@tk2msftngp13.phx.gbl...
I just created a simple web application and tried to run it. Getting
following...any idea what I'm missing

Thanks in advance


--------------------------------------------------------------------------
--
----

Server Error in '/test2' 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 'test2.Global'.

Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"

Inherits="test2.Global"
%>

Source File: c:\inetpub\wwwroot\test2\global.asax Line: 1


--------------------------------------------------------------------------
--
----

Version Information: Microsoft .NET Framework Version:1.1.4322.573;

ASP.NET
Version:1.1.4322.573


--------------------------------------------------------------------------
--
-----------------
Line 1 of Global.asax.vb contains following file
Imports System.Web


Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.