Click to See Complete Forum and Search --> : ASP.net page not running Via IIS
junaidsherief
July 20th, 2008, 05:00 AM
Hi
My OS:XP sp2, using Visual Web Developer 2005 edition (frame work 2)
I created a site direcly under Inetpu\wwwroot - it working by pressing F5
I configured IIS to run this aspx page, by setting default page property
i am getting the following error
A name was started with an invalid character. Error processing resource 'http://localhost/'. Line 1, Position 2
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
help me, contact me directly: junaidsherief@yahoo.co.in
Ahmish
July 23rd, 2008, 06:06 AM
Hi
My OS:XP sp2, using Visual Web Developer 2005 edition (frame work 2)
I created a site direcly under Inetpu\wwwroot - it working by pressing F5
I configured IIS to run this aspx page, by setting default page property
i am getting the following error
A name was started with an invalid character. Error processing resource 'http://localhost/'. Line 1, Position 2
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
help me, contact me directly: junaidsherief@yahoo.co.in
You can go through these solutions...
1-
You can go to iis and right click on default web sites, take the properties, press the asp.net tab and select the asp.net version
after that press edit configuration and press the application tab and select c# in page language default.
2-
http://forums.asp.net/t/1241959.aspx
junaidsherief
July 28th, 2008, 08:29 AM
see my problem mentioned above-
http://localhost:1152/WebSite1/Default.aspx
OR
http://localhost:1152/WebSite1
working from browser also, but port chaged to 80 AS BELOW
http://localhost/WebSite1 - THE FOLLOWING ERROR MESSAGE OCCURS
Server Error in '/WebSite1' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1618
System.Web.Security.WindowsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +593
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.