Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > File not found error using #include virtual with UNC path

Reply
Thread Tools

File not found error using #include virtual with UNC path

 
 
chris_peoples@redlands.edu
Guest
Posts: n/a
 
      08-08-2008
I have a virtual directory, lets say it exists at www.server-a.com/virtual-dir/
virtual-dir points to another directory on another server using the
unc path: \\server-b\main-dir

I have a file at www.server-a.com/virtual-dir/some_script.asp, using
the following include:
<!--#include file="some_include.asp"--->

Going to www.server-a.com/virtual-dir/some_script.asp works perfectly
fine

HOWEVER

If I have another asp file at www.server-a.com/my_script.asp, which
uses the following include:
<!--#include virtual="/virtual-dir/some_script.asp"--->
it produces this error:

Active Server Pages error 'ASP 0126'

Include file not found

/virtual-dir/some_script.asp, line 2

The include file 'some_include.asp' was not found.

Anybody have any clues as to why it would say file not found, even
though the file clearly exists?
 
Reply With Quote
 
 
 
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-08-2008
wrote:
> I have a virtual directory, lets say it exists at
> www.server-a.com/virtual-dir/ virtual-dir points to another directory
> on another server using the
> unc path: \\server-b\main-dir
>
> I have a file at www.server-a.com/virtual-dir/some_script.asp, using
> the following include:
> <!--#include file="some_include.asp"--->
>
> Going to www.server-a.com/virtual-dir/some_script.asp works perfectly
> fine
>
> HOWEVER
>
> If I have another asp file at www.server-a.com/my_script.asp, which
> uses the following include:
> <!--#include virtual="/virtual-dir/some_script.asp"--->
> it produces this error:
>
> Active Server Pages error 'ASP 0126'
>
> Include file not found
>
> /virtual-dir/some_script.asp, line 2
>
> The include file 'some_include.asp' was not found.
>
> Anybody have any clues as to why it would say file not found, even
> though the file clearly exists?


Have you enabled "parent paths" using IIS Manager?
http://classicasp.aspfaq.com/general...31-errors.html

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
 
 
 
chris_peoples@redlands.edu
Guest
Posts: n/a
 
      08-08-2008
On Aug 8, 12:24*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
> chris_peop...@redlands.edu wrote:
> > I have a virtual directory, lets say it exists at
> >www.server-a.com/virtual-dir/virtual-dir points to another directory
> > on another server using the
> > unc path: \\server-b\main-dir

>
> > I have a file atwww.server-a.com/virtual-dir/some_script.asp, using
> > the following include:
> > <!--#include file="some_include.asp"--->

>
> > Going towww.server-a.com/virtual-dir/some_script.aspworks perfectly
> > fine

>
> > HOWEVER

>
> > If I have another asp file atwww.server-a.com/my_script.asp, which
> > uses the following include:
> > <!--#include virtual="/virtual-dir/some_script.asp"--->
> > it produces this error:

>
> > Active Server Pages error 'ASP 0126'

>
> > Include file not found

>
> > /virtual-dir/some_script.asp, line 2

>
> > The include file 'some_include.asp' was not found.

>
> > Anybody have any clues as to why it would say file not found, even
> > though the file clearly exists?

>
> Have you enabled "parent paths" using IIS Manager?http://classicasp.aspfaq.com/general...130/asp-0131-e...
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"- Hide quoted text -
>
> - Show quoted text -


Yes I have that enabled on both servers, and am still getting the
error message.

I thought it might be a permissions thing but the error still occurs
after adding full control to 'Everyone'.
 
Reply With Quote
 
Bob Barrows [MVP]
Guest
Posts: n/a
 
      08-08-2008
wrote:
> On Aug 8, 12:24 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> wrote:
>> chris_peop...@redlands.edu wrote:
>>> I have a virtual directory, lets say it exists at
>>> www.server-a.com/virtual-dir/virtual-dir points to another directory
>>> on another server using the
>>> unc path: \\server-b\main-dir

>>
>>> I have a file atwww.server-a.com/virtual-dir/some_script.asp, using
>>> the following include:
>>> <!--#include file="some_include.asp"--->

>>
>>> Going towww.server-a.com/virtual-dir/some_script.aspworks perfectly
>>> fine

>>
>>> HOWEVER

>>
>>> If I have another asp file atwww.server-a.com/my_script.asp, which
>>> uses the following include:
>>> <!--#include virtual="/virtual-dir/some_script.asp"--->
>>> it produces this error:

>
> Yes I have that enabled on both servers, and am still getting the
> error message.
>
> I thought it might be a permissions thing but the error still occurs
> after adding full control to 'Everyone'.


Oh wait, I didn't read closely enough ... there's two servers involved?
This is likely to be a permissions issue. Your asp code is running under the
context of a local account on server A. That local account is not a member
of the Everyone group on server B.
http://www.aspfaq.com/show.asp?id=2168

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


 
Reply With Quote
 
chris_peoples@redlands.edu
Guest
Posts: n/a
 
      08-08-2008
On Aug 8, 1:35*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
> chris_peop...@redlands.edu wrote:
> > On Aug 8, 12:24 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> > wrote:
> >> chris_peop...@redlands.edu wrote:
> >>> I have a virtual directory, lets say it exists at
> >>>www.server-a.com/virtual-dir/virtual-dirpoints to another directory
> >>> on another server using the
> >>> unc path: \\server-b\main-dir

>
> >>> I have a file atwww.server-a.com/virtual-dir/some_script.asp, using
> >>> the following include:
> >>> <!--#include file="some_include.asp"--->

>
> >>> Going towww.server-a.com/virtual-dir/some_script.aspworksperfectly
> >>> fine

>
> >>> HOWEVER

>
> >>> If I have another asp file atwww.server-a.com/my_script.asp, which
> >>> uses the following include:
> >>> <!--#include virtual="/virtual-dir/some_script.asp"--->
> >>> it produces this error:

>
> > Yes I have that enabled on both servers, and am still getting the
> > error message.

>
> > I thought it might be a permissions thing but the error still occurs
> > after adding full control to 'Everyone'.

>
> Oh wait, I didn't read closely enough ... there's two servers involved?
> This is likely to be a permissions issue. Your asp code is running under the
> context of a local account on server A. That local account is not a member
> of the Everyone group on server B.http://www.aspfaq.com/show.asp?id=2168
>
> --
> Microsoft MVP - ASP/ASP.NET
> Please reply to the newsgroup. This email account is my spam trap so I
> don't check it very often. If you must reply off-line, then remove the
> "NO SPAM"- Hide quoted text -
>
> - Show quoted text -


Whoops, now I'm getting a 401. I changed the password of the
IUSR_machine account as instructed, but I didn't realize until
afterwards that those are instructions for Win2000, and I'm on
Win2003. Seems like it would be the same principal though, unless I
missed something.
 
Reply With Quote
 
chris_peoples@redlands.edu
Guest
Posts: n/a
 
      08-08-2008
On Aug 8, 2:24*pm, chris_peop...@redlands.edu wrote:
> On Aug 8, 1:35*pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> wrote:
>
>
>
>
>
> > chris_peop...@redlands.edu wrote:
> > > On Aug 8, 12:24 pm, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
> > > wrote:
> > >> chris_peop...@redlands.edu wrote:
> > >>> I have a virtual directory, lets say it exists at
> > >>>www.server-a.com/virtual-dir/virtual-dirpointsto another directory
> > >>> on another server using the
> > >>> unc path: \\server-b\main-dir

>
> > >>> I have a file atwww.server-a.com/virtual-dir/some_script.asp, using
> > >>> the following include:
> > >>> <!--#include file="some_include.asp"--->

>
> > >>> Going towww.server-a.com/virtual-dir/some_script.aspworksperfectly
> > >>> fine

>
> > >>> HOWEVER

>
> > >>> If I have another asp file atwww.server-a.com/my_script.asp, which
> > >>> uses the following include:
> > >>> <!--#include virtual="/virtual-dir/some_script.asp"--->
> > >>> it produces this error:

>
> > > Yes I have that enabled on both servers, and am still getting the
> > > error message.

>
> > > I thought it might be a permissions thing but the error still occurs
> > > after adding full control to 'Everyone'.

>
> > Oh wait, I didn't read closely enough ... there's two servers involved?
> > This is likely to be a permissions issue. Your asp code is running under the
> > context of a local account on server A. That local account is not a member
> > of the Everyone group on server B.http://www.aspfaq.com/show.asp?id=2168

>
> > --
> > Microsoft MVP - ASP/ASP.NET
> > Please reply to the newsgroup. This email account is my spam trap so I
> > don't check it very often. If you must reply off-line, then remove the
> > "NO SPAM"- Hide quoted text -

>
> > - Show quoted text -

>
> Whoops, now I'm getting a 401. *I changed the password of the
> IUSR_machine account as instructed, but I didn't realize until
> afterwards that those are instructions for Win2000, and I'm on
> Win2003. *Seems like it would be the same principal though, unless I
> missed something.- Hide quoted text -
>
> - Show quoted text -


Got it solved. Had to change the password in IIS and Computer
Management. Thanks for your help on this.
 
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
physical path to virtual path under virtual directory =?Utf-8?B?SmVmZiBCZWVt?= ASP .Net 4 08-01-2007 02:59 PM
asp.net Accessing UNC path - File Not Found PP ASP .Net 2 03-12-2007 01:05 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 10 01-11-2007 07:38 AM
ASP Error 0126 include file not found, when using ".." in include file path Eric ASP General 0 01-09-2007 06:54 PM
virtual directory name? or unc directory path? Steve Singer ASP .Net 0 02-15-2005 10:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57