473,661 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting up a Web Application on IIS 5.1

CES
All,

Could someone please point me to a step by step resource on setting up a
..net Web Application on IIS.

I'm having a problem setting up IIS to except a new Web Application. I'm
deploying the default Asp.net Web Application as is setup by VStudio with no
code changed, other then adding "Hello World to the <title> tag. I've been
able to narrow down the problem to IIS by compiling the Application and
deploying it to my production site, that is maintained by my ISP,(everything
works fine, with no errors).

The IIS Service\Default Web Site\Applicatio n Settings under the Home
Directory Tab
Has these default values:

Application Name : Default Application
Starting point: <Default Web Site>
Execute Permissions: Scripts Only
Application Protection: Medium (Pooled)

I'm running IIS Version: 5.1 under Windows XP Pro build
2600.xpsp2.0304 22-1633(SP1).

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microso ft.NET\Framewor k\v1.1.4322 and
WINDOWS\Microso ft.NET\Framewor k\v1.0.3705 directories.

From an earlier post it was suggested that I try running
aspnet_regiis.e xe -c, which created a aspnet_client directory in my root
folder but I'm still having the same Error: Parser Error Message: Could not
load type 'WebApplication 1.Global'.

Below is my original post to the vb.net newsgroup when I thought the error
was in the code.

Any help would be appreciated.

CES
I've created a base ASP.net web application and used the default name
WebApplication1 . Without doing !!anything!! to the WebForm1.aspx I build the
project by going to File Menu Build\Build Solution (Ctr+Shift+B) :

In the Output window I get:

------ Build started: Project: WebApplication1 , Configuration: Debug
..NET ------
Preparing resources...
Updating references...
Performing main compilation...
Building satellite assemblies...
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
I then when I hit F5 to run the project, and IE displays this Parser Error
message:

Parser Error Message: Could not load type 'WebApplication 1.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

Source File: \\server\\_temp \WebApplication 1\global.asax Line: 1

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microso ft.NET\Framewor k\v1.1.4322 and
WINDOWS\Microso ft.NET\Framewor k\v1.0.3705 directories.

The only way I can get the page WebForm1.aspx to load and not throw an error
is by removing both of the Inherits properties from these files:

WebForm1.aspx:
<%@ Page Language="vb" AutoEventWireup ="false"
Inherits="WebAp plication1.WebF orm1"%>

Global.asax:
<%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebAp plication1.WebF orm1 and
Inherits="WebAp plication1.Glob al" setup by default???

Is it me or am I doing something wrong???
Nov 17 '05 #1
1 2573
CES
All,

I still haven't solved this problem but I've narrowed it down a little
further. Not sure why I didn't try this earlier but I moved the Web
Application to my Fat32 drive and the problem went away. so it is a security
problem!!!

I've added permissions for both the "aspnet_wp account" and "Internet Guest
Account" (granting full access to both accounts to the following
directories:

D:\Inetpub\wwwr oot

D:\Inetpub\wwwr oot\WebApplicat ion1

D:\WINDOWS\Micr osoft.NET\Frame work\v1.0.3705

D:\WINDOWS\Micr osoft.NET\Frame work\v1.1.4322

Can anyone think of another place where permissions needs to be
changed/added???

"CES"
<NO**@NOEMAIL.c om> wrote in message
news:e4******** *****@TK2MSFTNG P10.phx.gbl...
All,

Could someone please point me to a step by step resource on setting up a
.net Web Application on IIS.

I'm having a problem setting up IIS to except a new Web Application. I'm
deploying the default Asp.net Web Application as is setup by VStudio with no code changed, other then adding "Hello World to the <title> tag. I've been
able to narrow down the problem to IIS by compiling the Application and
deploying it to my production site, that is maintained by my ISP,(everything works fine, with no errors).

The IIS Service\Default Web Site\Applicatio n Settings under the Home
Directory Tab
Has these default values:

Application Name : Default Application
Starting point: <Default Web Site>
Execute Permissions: Scripts Only
Application Protection: Medium (Pooled)

I'm running IIS Version: 5.1 under Windows XP Pro build
2600.xpsp2.0304 22-1633(SP1).

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microso ft.NET\Framewor k\v1.1.4322 and
WINDOWS\Microso ft.NET\Framewor k\v1.0.3705 directories.

From an earlier post it was suggested that I try running
aspnet_regiis.e xe -c, which created a aspnet_client directory in my root
folder but I'm still having the same Error: Parser Error Message: Could not load type 'WebApplication 1.Global'.

Below is my original post to the vb.net newsgroup when I thought the error
was in the code.

Any help would be appreciated.

CES
I've created a base ASP.net web application and used the default name
WebApplication1 . Without doing !!anything!! to the WebForm1.aspx I build the project by going to File Menu Build\Build Solution (Ctr+Shift+B) :

In the Output window I get:

------ Build started: Project: WebApplication1 , Configuration: Debug
.NET ------
Preparing resources...
Updating references...
Performing main compilation...
Building satellite assemblies...
---------------------- Done ----------------------
Build: 1 succeeded, 0 failed, 0 skipped
I then when I hit F5 to run the project, and IE displays this Parser Error
message:

Parser Error Message: Could not load type 'WebApplication 1.Global'.

Source Error:

Line 1: <%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

Source File: \\server\\_temp \WebApplication 1\global.asax Line: 1

I've checked the security privileges on the WebApplication1 and the
"aspnet_wp account" and the "Internet Guest Account" have "Full Control"
access. Additionally the "aspnet_wp account" has full privileges on
Windows\Microso ft.NET\Framewor k\v1.1.4322 and
WINDOWS\Microso ft.NET\Framewor k\v1.0.3705 directories.

The only way I can get the page WebForm1.aspx to load and not throw an error is by removing both of the Inherits properties from these files:

WebForm1.aspx:
<%@ Page Language="vb" AutoEventWireup ="false"
Inherits="WebAp plication1.WebF orm1"%>

Global.asax:
<%@ Application Codebehind="Glo bal.asax.vb"
Inherits="WebAp plication1.Glob al" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebAp plication1.WebF orm1 and
Inherits="WebAp plication1.Glob al" setup by default???

Is it me or am I doing something wrong???

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3277
by: CES | last post by:
All, Could someone please point me to a step by step resource on setting up a ..net Web Application on IIS. I'm having a problem setting up IIS to except a new Web Application. I'm deploying the default Asp.net Web Application as is setup by VStudio with no code changed, other then adding "Hello World to the <title> tag. I've been able to narrow down the problem to IIS by compiling the Application and deploying it to my production...
2
4763
by: kmercer46 | last post by:
I'm building a application but it only work well on display setting 1024x768. I want to change display setting of monitor when form load from 800x600 (if display setting monitor of user is 800x600) to 1024x768 by using vb.net. Can you help me?
0
1784
by: r | last post by:
Hello All, I am working on a desktop application using C#. The application connects to a remote webservice to update and retrieve data from a database. I also have a settings Tab in the application UI that allows the user to enter the proxy server information if needed. When the user selects the "Use Proxy" Checkbox in the settings tab, I ask them to provide the server address and port number and also the login information is...
7
6181
by: Academic | last post by:
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor object with a new one while the second only replaces the Current object of C1.Cursor, but I can't
6
4274
by: John H Clark | last post by:
I am designing a site that requires AnonymousID. I set my web.config to allow this using <anonymousIdentification enable="true".../as recommended in the documentation. To verify the settings I use the following code in global.asax and stop the execution using debug to inspect the settings. Configuration configuration = WebConfigurationManager.OpenWebConfiguration("/SessionManager");
12
5004
by: info | last post by:
Hi All, I am trying to set the hourglass cursor inside a class that has nothing to do with MainForm class and I don't want to pass a reference to MainForm. How can I set the current cursor to Hourglass and then back to arrow? Thanks a lot,
8
16091
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list which modifies Application setting section but how to add new item to userSettings ? Andrus.
7
1732
by: PetterL | last post by:
I have a setting called My.settings.firstrun set to True, set in the setting manager. When i read this in the first form form_Load in a IF sentence it always come out as false. I have tried to change the setting from string to Boolean but no help.
5
9882
by: =?Utf-8?B?bWFzaXg=?= | last post by:
We have an issue with load time in several installations of our application. We've located the information regarding KB 936707 and ensured that the application config file contains the runtime setting of <generatePublisherEvidence enabled="false"/> but the application still takes over 2 minutes to load. When we disconnect the PC from the network (internet) then the application loads in about 5 seconds. We've ensured the .net 2.0...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8341
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
8754
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...
1
8542
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7362
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...
1
6181
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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
2
1984
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.