DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 14 Aug 2007 12:50:31 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    jonny
          2    Alexey Smirnov
          3    jonny
          4    Alexey Smirnov
          5    Juan T. Llibre
          6    jonny
                 7    Juan T. Llibre


Create a virtual directory and open ASP pages in web browser   
I followed the instruction below to create a virtual directory. I am
able to open htm pages, but I cannot open ASP pages. Here is the error
I am getting "Object reference not set to an instance of an object.".
Do I have to have Windows Server 2003 to open ASP pages in web
browser?

How can I overcome this problem?



Create a virtual directory

1. Open IIS Manager by going to Control Panel -> Administrative Tools -

> Internet Information Services.

In IIS Manager, expand the local computer, expand the Web Sites
folder, right-click the site or folder within which you want to create
the virtual directory, point to New, and then click Virtual
Directory . The Virtual Directory Creation Wizard appears.
2.
 Click Next.

3.
 In the Alias box, type a name for the virtual directory. (Choose a
short name that is easy to type because the user types this name.)

4.
 Click Next.

5. In the Path box, type or browse to the physical directory where
your application resides, and then click Next. For example, if your
application is located in C:\Documents and Settings\johnnelson
\MyWebSites\ReportingSite, you would browse to this directory.
6.
  Choose the defaults on the next two pages.

7.
  Click Finish.
Date:Tue, 14 Aug 2007 12:50:31 -0700   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
On Aug 14, 9:50 pm, jonny  wrote:

> I followed the instruction below to create a virtual directory. I am
> able to open htm pages, but I cannot open ASP pages. Here is the error
> I am getting "Object reference not set to an instance of an object.".


This is the problem in ASP and not in a server configuration. You
should check the code of the page to find the error.
Date:Tue, 14 Aug 2007 13:56:43 -0700   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
On Aug 14, 3:56 pm, Alexey Smirnov  wrote:

> On Aug 14, 9:50 pm, jonny  wrote:
>
> > I followed the instruction below to create a virtual directory. I am
> > able to open htm pages, but I cannot open ASP pages. Here is the error
> > I am getting "Object reference not set to an instance of an object.".
>
> This is the problem in ASP and not in a server configuration. You
> should check the code of the page to find the error.


It is working ok in Visual Web Developer.
Date:Tue, 14 Aug 2007 14:08:28 -0700   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
On Aug 14, 11:08 pm, jonny  wrote:

> On Aug 14, 3:56 pm, Alexey Smirnov  wrote:
>
> > On Aug 14, 9:50 pm, jonny  wrote:
>
> > > I followed the instruction below to create a virtual directory. I am
> > > able to open htm pages, but I cannot open ASP pages. Here is the error
> > > I am getting "Object reference not set to an instance of an object.".
>
> > This is the problem in ASP and not in a server configuration. You
> > should check the code of the page to find the error.
>
> It is working ok in Visual Web Developer.


You might need to reinstall ASP.NET because it seems that IIS has been
installed after .NET. Use ASP.NET IIS Registration Tool to do it (from
command prompt call aspnet_regiis.exe -i)

More info: http://msdn2.microsoft.com/en-us/library/k6h9cz8h(VS.80).aspx

But the error message "Object reference not set to an instance of an
object." usually means that ASP.NET is running and found an exception,
which is usually because of using an object variable that is null. You
can try to call any other aspx page to see if you have any result
Date:Tue, 14 Aug 2007 14:28:42 -0700   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
re:
!> In IIS Manager, expand the local computer, expand the Web Sites folder,
!> right-click the site or folder within which you want to create the virtual directory

Substitute "Web Sites folder" with "Default Web Site" folder and everything will work fine.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"jonny"  wrote in message news:1187121031.138695.251120@x35g2000prf.googlegroups.com...

>I followed the instruction below to create a virtual directory. I am
> able to open htm pages, but I cannot open ASP pages. Here is the error
> I am getting "Object reference not set to an instance of an object.".
> Do I have to have Windows Server 2003 to open ASP pages in web
> browser?
>
> How can I overcome this problem?
>
>
>
> Create a virtual directory
>
> 1. Open IIS Manager by going to Control Panel -> Administrative Tools -
>> Internet Information Services.
> In IIS Manager, expand the local computer, expand the Web Sites
> folder, right-click the site or folder within which you want to create
> the virtual directory, point to New, and then click Virtual
> Directory . The Virtual Directory Creation Wizard appears.
> 2.
> Click Next.
>
> 3.
> In the Alias box, type a name for the virtual directory. (Choose a
> short name that is easy to type because the user types this name.)
>
> 4.
> Click Next.
>
> 5. In the Path box, type or browse to the physical directory where
> your application resides, and then click Next. For example, if your
> application is located in C:\Documents and Settings\johnnelson
> \MyWebSites\ReportingSite, you would browse to this directory.
> 6.
>  Choose the defaults on the next two pages.
>
> 7.
>  Click Finish.
> 
Date:Tue, 14 Aug 2007 17:41:00 -0400   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
On Aug 14, 4:41 pm, "Juan T. Llibre" 
wrote:

> re:
> !> In IIS Manager, expand the local computer, expand the Web Sites folder,
> !> right-click the site or folder within which you want to create the virtual directory
>
> Substitute "Web Sites folder" with "Default Web Site" folder and everything will work fine.
>
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espaƱol :http://asp.net.do/foros/
> ======================================
>
>
>
> "jonny"  wrote in messagenews:1187121031.138695.251120@x35g2000prf.googlegroups.com...
> >I followed the instruction below to create a virtual directory. I am
> > able to open htm pages, but I cannot open ASP pages. Here is the error
> > I am getting "Object reference not set to an instance of an object.".
> > Do I have to have Windows Server 2003 to open ASP pages in web
> > browser?
>
> > How can I overcome this problem?
>
> > Create a virtual directory
>
> > 1. Open IIS Manager by going to Control Panel -> Administrative Tools -
> >> Internet Information Services.
> > In IIS Manager, expand the local computer, expand the Web Sites
> > folder, right-click the site or folder within which you want to create
> > the virtual directory, point to New, and then click Virtual
> > Directory . The Virtual Directory Creation Wizard appears.
> > 2.
> > Click Next.
>
> > 3.
> > In the Alias box, type a name for the virtual directory. (Choose a
> > short name that is easy to type because the user types this name.)
>
> > 4.
> > Click Next.
>
> > 5. In the Path box, type or browse to the physical directory where
> > your application resides, and then click Next. For example, if your
> > application is located in C:\Documents and Settings\johnnelson
> > \MyWebSites\ReportingSite, you would browse to this directory.
> > 6.
> >  Choose the defaults on the next two pages.
>
> > 7.
> >  Click Finish.- Hide quoted text -
>
> - Show quoted text -


I dont understand. I followed your instructions but do not see how to
Substitute "Web Sites folder" with "Default Web Site" folder?
Date:Tue, 14 Aug 2007 17:33:46 -0700   Author:  

Re: Create a virtual directory and open ASP pages in web browser   
re:
!>> Substitute "Web Sites folder" with "Default Web Site" folder and everything will work fine.

!> I dont understand. I followed your instructions but do not see how to
!> substitute "Web Sites folder" with "Default Web Site" folder?

Just right-click "Default Web Site" instead of the "Web Sites" folder.





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================
"jonny"  wrote in message news:1187138026.357885.39060@q3g2000prf.googlegroups.com...
On Aug 14, 4:41 pm, "Juan T. Llibre" 
wrote:

> re:
> !> In IIS Manager, expand the local computer, expand the Web Sites folder,
> !> right-click the site or folder within which you want to create the virtual directory
>
> Substitute "Web Sites folder" with "Default Web Site" folder and everything will work fine.
>
> Juan T. Llibre, asp.net MVP
> asp.net faq :http://asp.net.do/faq/
> foros de asp.net, en espaol :http://asp.net.do/foros/
> ======================================
>
>
>
> "jonny"  wrote in messagenews:1187121031.138695.251120@x35g2000prf.googlegroups.com...
> >I followed the instruction below to create a virtual directory. I am
> > able to open htm pages, but I cannot open ASP pages. Here is the error
> > I am getting "Object reference not set to an instance of an object.".
> > Do I have to have Windows Server 2003 to open ASP pages in web
> > browser?
>
> > How can I overcome this problem?
>
> > Create a virtual directory
>
> > 1. Open IIS Manager by going to Control Panel -> Administrative Tools -
> >> Internet Information Services.
> > In IIS Manager, expand the local computer, expand the Web Sites
> > folder, right-click the site or folder within which you want to create
> > the virtual directory, point to New, and then click Virtual
> > Directory . The Virtual Directory Creation Wizard appears.
> > 2.
> > Click Next.
>
> > 3.
> > In the Alias box, type a name for the virtual directory. (Choose a
> > short name that is easy to type because the user types this name.)
>
> > 4.
> > Click Next.
>
> > 5. In the Path box, type or browse to the physical directory where
> > your application resides, and then click Next. For example, if your
> > application is located in C:\Documents and Settings\johnnelson
> > \MyWebSites\ReportingSite, you would browse to this directory.
> > 6.
> >  Choose the defaults on the next two pages.
>
> > 7.
> >  Click Finish.- Hide quoted text -
>
> - Show quoted text -


I dont understand. I followed your instructions but do not see how to
Substitute "Web Sites folder" with "Default Web Site" folder?
Date:Tue, 14 Aug 2007 21:07:04 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us