473,766 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="Glo bal.asax.vb" Inherits="test2 .Global"
%>

Source File: c:\inetpub\wwwr oot\test2\globa l.asax Line: 1

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET
Version:1.1.432 2.573

----------------------------------------------------------------------------
-----------------
Line 1 of Global.asax.vb contains following file
Imports System.Web
Nov 17 '05 #1
3 19869
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******** ********@tk2msf tngp13.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="Glo bal.asax.vb" Inherits="test2 .Global" %>

Source File: c:\inetpub\wwwr oot\test2\globa l.asax Line: 1

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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NET Version:1.1.432 2.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/cpconhowruntime locatesassembli es.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...an y 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="Glo bal.asax.vb" Inherits="test2 .Global"%>

Source File: c:\inetpub\wwwr oot\test2\globa l.asax Line: 1
---------------------------------------------------------- ----------------------

Version Information: Microsoft .NET Framework Version:1.1.432 2.573; ASP.NETVersion:1.1.43 22.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***@dotnetco ders.com> wrote in message
news:e3******** ******@TK2MSFTN GP10.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="Glo bal.asax.vb" Inherits="test2 .Global"

If many of the other files contain Codebehind...et c 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******** ******@tk2msftn gp13.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="Glo bal.asax.vb"

Inherits="test2 .Global"
%>

Source File: c:\inetpub\wwwr oot\test2\globa l.asax Line: 1


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

Version Information: Microsoft .NET Framework Version:1.1.432 2.573;

ASP.NET
Version:1.1.432 2.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
1582
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 directory, I get the 500 error: <html> <body> <% Response.Write("hello")
1
1483
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 would then open each of the selected installation files and run them. I have gotten it compiled in Win32 on a windows 2000 professional server, and have had it run with no problems. However, when I attempt to run it on an XP machine I get part of...
2
1472
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 customErrors mode set to RemoteOnly and the application's web.config has it set to On with a redirect for a 404 error. This works fine. However, when I add a subfolder to the application and place a web.config file in there (from the IDE so I'm not just...
1
4245
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) LoadControl("ViewSmall.ascx");
17
4844
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 administrative rights on this machine in order to run this tool." I have verified that I have administrative rights on the box as my normal login. I have also logged in as the local administrator, tried the same thing and get the same message.
0
2266
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 updating the code-behind dll) accessing any aspx page in the application causes the application to run for the first time. Some of the initialization involves reading and writing some text and xml files using simple streamreader and streamwriter...
1
2985
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; # create new CGI object
9
2256
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 folder I get a ERROR Data source name not found and no default driver specified Data source name not found and no default driver specified]
9
2788
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 into VBA, using ADO I have tried to call the Query, but I get the following error : Invalid SQL statement expected; ‘DELETE’,’INSERT’,'UPDATE' or SELECT". I have no idea why this is occuring. Please help. Option Compare Database Option Explicit...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10168
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10009
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8835
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.