Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Puzzling Virtual Directory Behavior

Reply
Thread Tools

Puzzling Virtual Directory Behavior

 
 
Jav
Guest
Posts: n/a
 
      06-10-2006
V2005, Windows xp Prof, asp.net newbie

I am having a devil of a time starting an asp.net app. Here's what I'm doing.

1. Create a Folder (TestSite) in Visual Studio 2005\Projects\WebSites
2. Start iis. Create Virtual Directory, Alias TestSite, Location: as above
3. Select TestSite Virtual Dir in iis - Properties - on ASP.Net tab select
version 2.0.50727
4. On Directory Security tab, set User to ASPNET, allow anonymous access
5. Fire up VS2005. New WebSite Select TestSite
6. Solution is created. Open Default.aspx. Type "Hello"
7. Press Control F5
8 Receive following error:

Failed to execute the request because the ASP.NET process identity does not
have read permissions to the global assembly cache. Error: 0x80070005 Access
is denied.

If I now allow Sharing on WebSite or TestSite folder, I can open the page
BUT, when I set up my Membership database (ASPNETDB), I get an error
complaining that my database is on a UNC Share and cannot be opened. (I am
not interested in a set up where DB is on a separate Shared computer)

This looks like a catch 22. Would appreciate any help. Thanks.
Jav
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      06-11-2006

"Jav" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> V2005, Windows xp Prof, asp.net newbie
>
> I am having a devil of a time starting an asp.net app. Here's what I'm

doing.
>
> 1. Create a Folder (TestSite) in Visual Studio 2005\Projects\WebSites
> 2. Start iis. Create Virtual Directory, Alias TestSite, Location: as

above
> 3. Select TestSite Virtual Dir in iis - Properties - on ASP.Net tab select
> version 2.0.50727
> 4. On Directory Security tab, set User to ASPNET, allow anonymous access
> 5. Fire up VS2005. New WebSite Select TestSite
> 6. Solution is created. Open Default.aspx. Type "Hello"
> 7. Press Control F5
> 8 Receive following error:
>
> Failed to execute the request because the ASP.NET process identity does

not
> have read permissions to the global assembly cache. Error: 0x80070005

Access
> is denied.
>
> If I now allow Sharing on WebSite or TestSite folder, I can open the page
> BUT, when I set up my Membership database (ASPNETDB), I get an error
> complaining that my database is on a UNC Share and cannot be opened. (I am
> not interested in a set up where DB is on a separate Shared computer)
>
> This looks like a catch 22. Would appreciate any help. Thanks.
> Jav


This is group is for classic ASP for ASP.NET help try:-

microsoft.public.dotnet.framework.aspnet



 
Reply With Quote
 
 
 
 
Jav
Guest
Posts: n/a
 
      06-11-2006
I suppose you don't know the answer either.


"Anthony Jones" wrote:

>
> "Jav" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > V2005, Windows xp Prof, asp.net newbie
> >
> > I am having a devil of a time starting an asp.net app. Here's what I'm

> doing.
> >
> > 1. Create a Folder (TestSite) in Visual Studio 2005\Projects\WebSites
> > 2. Start iis. Create Virtual Directory, Alias TestSite, Location: as

> above
> > 3. Select TestSite Virtual Dir in iis - Properties - on ASP.Net tab select
> > version 2.0.50727
> > 4. On Directory Security tab, set User to ASPNET, allow anonymous access
> > 5. Fire up VS2005. New WebSite Select TestSite
> > 6. Solution is created. Open Default.aspx. Type "Hello"
> > 7. Press Control F5
> > 8 Receive following error:
> >
> > Failed to execute the request because the ASP.NET process identity does

> not
> > have read permissions to the global assembly cache. Error: 0x80070005

> Access
> > is denied.
> >
> > If I now allow Sharing on WebSite or TestSite folder, I can open the page
> > BUT, when I set up my Membership database (ASPNETDB), I get an error
> > complaining that my database is on a UNC Share and cannot be opened. (I am
> > not interested in a set up where DB is on a separate Shared computer)
> >
> > This looks like a catch 22. Would appreciate any help. Thanks.
> > Jav

>
> This is group is for classic ASP for ASP.NET help try:-
>
> microsoft.public.dotnet.framework.aspnet
>
>
>
>

 
Reply With Quote
 
Jav
Guest
Posts: n/a
 
      06-11-2006
I did find the answer through some trial and error, and posted an elaborate
message to help others but everything disappeared when I clicked Post. So
here is the short answer.

In order to use both http and ASPNETDB for membership, the asp project
directory must be in c:Inetpub/wwwroot. To use a virtual directory anywhere
else one will have to use a File System type project.

Jav

"Anthony Jones" wrote:

>
> "Jav" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > V2005, Windows xp Prof, asp.net newbie
> >
> > I am having a devil of a time starting an asp.net app. Here's what I'm

> doing.
> >
> > 1. Create a Folder (TestSite) in Visual Studio 2005\Projects\WebSites
> > 2. Start iis. Create Virtual Directory, Alias TestSite, Location: as

> above
> > 3. Select TestSite Virtual Dir in iis - Properties - on ASP.Net tab select
> > version 2.0.50727
> > 4. On Directory Security tab, set User to ASPNET, allow anonymous access
> > 5. Fire up VS2005. New WebSite Select TestSite
> > 6. Solution is created. Open Default.aspx. Type "Hello"
> > 7. Press Control F5
> > 8 Receive following error:
> >
> > Failed to execute the request because the ASP.NET process identity does

> not
> > have read permissions to the global assembly cache. Error: 0x80070005

> Access
> > is denied.
> >
> > If I now allow Sharing on WebSite or TestSite folder, I can open the page
> > BUT, when I set up my Membership database (ASPNETDB), I get an error
> > complaining that my database is on a UNC Share and cannot be opened. (I am
> > not interested in a set up where DB is on a separate Shared computer)
> >
> > This looks like a catch 22. Would appreciate any help. Thanks.
> > Jav

>
> This is group is for classic ASP for ASP.NET help try:-
>
> microsoft.public.dotnet.framework.aspnet
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a puzzling document.write behavior VK Javascript 4 03-30-2008 09:35 AM
Puzzling javadoc behavior rodrigobraz.removethis@gmail.com Java 0 10-18-2007 05:41 AM
More puzzling behavior while subclassing datetime insyte@gmail.com Python 3 11-16-2006 10:52 AM
puzzling behavior in simple variable comparison aclarke@austin.rr.com Perl Misc 5 09-27-2005 02:33 AM
Puzzling Browser Refresh and session attribute behavior GIMME Java 1 04-14-2004 11:27 PM



Advertisments