473,406 Members | 2,620 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,406 software developers and data experts.

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\Application 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.030422-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\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\v1.0.3705 directories.

From an earlier post it was suggested that I try running
aspnet_regiis.exe -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 'WebApplication1.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 'WebApplication1.Global'.

Source Error:

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

Source File: \\server\\_temp\WebApplication1\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\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\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="WebApplication1.WebForm1"%>

Global.asax:
<%@ Application Codebehind="Global.asax.vb"
Inherits="WebApplication1.Global" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebApplication1.WebForm1 and
Inherits="WebApplication1.Global" setup by default???

Is it me or am I doing something wrong???
Nov 17 '05 #1
1 2561
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\wwwroot

D:\Inetpub\wwwroot\WebApplication1

D:\WINDOWS\Microsoft.NET\Framework\v1.0.3705

D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

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

"CES"
<NO**@NOEMAIL.com> wrote in message
news:e4*************@TK2MSFTNGP10.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\Application 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.030422-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\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\v1.0.3705 directories.

From an earlier post it was suggested that I try running
aspnet_regiis.exe -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 'WebApplication1.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 'WebApplication1.Global'.

Source Error:

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

Source File: \\server\\_temp\WebApplication1\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\Microsoft.NET\Framework\v1.1.4322 and
WINDOWS\Microsoft.NET\Framework\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="WebApplication1.WebForm1"%>

Global.asax:
<%@ Application Codebehind="Global.asax.vb"
Inherits="WebApplication1.Global" %>

But that doesn't seem to make any sense, if the page won't work as is why
are the Inherits="WebApplication1.WebForm1 and
Inherits="WebApplication1.Global" 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
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...
2
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)...
0
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...
7
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...
6
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...
12
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...
8
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...
7
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...
5
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...

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.