473,378 Members | 1,360 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

error running my first web appication

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
3 19848
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
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
---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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Rocio | last post by:
I do not understand why. I am running perfectly well asp.net on a virtual directory, but if I put a simple asp file such as this, and named it foo.asp, and try to run it from this virtual...
1
by: Aaron B. Fox | last post by:
I have recently created an application with Visual C++ 5.0 that would allow a user to know what several cryptic named files on a CD were and select which ones they wanted to load. The program...
2
by: John Spiegel | last post by:
Hi all, I'm working through examples on configuring ASP.NET (all on local machine). The first exercise deals with the customErrors in the config files. The machine.config file has a...
1
by: Jonas Auken | last post by:
hi, I have a repeater which dynamically loads another usercontrol throught databinding: OnClick: DataBind() rptProduct_ItemDataBound: ViewSmall _viewSmall = (ViewSmall)...
17
by: JStemper | last post by:
On one of my localhost sites I'm getting a message to run aspnet_regiis -c to correct some scripting issues. When I try to run the listed command I get another error: "You must have...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
1
by: poolboi | last post by:
hi, i'm trying to test my cgi script a simple one but i don't seem to be able to run this script from cpan #!/perl/bin/perl use strict; $q = new CGI; #...
9
by: gerryR | last post by:
Hi All I've a simple web app that pulls data from an excel sheet into a small aspx page. When I browse the site through VS2005 everything works fine. When I copy the project to IIS wwwroot...
9
by: iheartvba | last post by:
To put the below code simply, I have created a find duplicates query for a table using the Access query wizard. I have then tried to plug the Sql String (strSqlDupColl) copied from the Query Builder...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.