469,270 Members | 1,006 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Server.MapPath - Parent Paths Disabled - Windows 2003 IIS 6 - WorkAround

Dear Friends
Hope you doing great.

I have recently shifted to a webhost which is Using Windows 2003 and IIS
6. Now my application was working fine earlier but now I am facing this
problem

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters
/backend/_add_two.asp, line 103
The '..' characters are not allowed in the Path parameter for the
MapPath method.

Now I found out that this error is because of default setting of Enable
Parent Paths is disabled by default in IIS 6.0.
More info can be found at support.microsoft.com/?id=332117.

Now what if my service provider cant change that setting. What is the
work around, how to access the directory movving up down. Any help will
be appreciated.

Love
Lovely

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
24 7145
I don't see any reason for their not being able to enable it as my host
upgraded to WS2003 w/IIS6 when it was released and I've had no problems with
paths so far. Might want to get onto them about the reasons for it being
disabled ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Lovely Angel" <lo******************@yahoo.com> wrote in message
news:#j*************@TK2MSFTNGP12.phx.gbl...
Dear Friends
Hope you doing great.

I have recently shifted to a webhost which is Using Windows 2003 and IIS
6. Now my application was working fine earlier but now I am facing this
problem

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters
/backend/_add_two.asp, line 103
The '..' characters are not allowed in the Path parameter for the
MapPath method.

Now I found out that this error is because of default setting of Enable
Parent Paths is disabled by default in IIS 6.0.
More info can be found at support.microsoft.com/?id=332117.

Now what if my service provider cant change that setting. What is the
work around, how to access the directory movving up down. Any help will
be appreciated.

Love
Lovely

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
That is exactly not the answer to either of his questions.
Why not just answer the questions or step aside?

"Steven Burn" <pv*@noyb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I don't see any reason for their not being able to enable it as my host
upgraded to WS2003 w/IIS6 when it was released and I've had no problems with paths so far. Might want to get onto them about the reasons for it being
disabled ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Lovely Angel" <lo******************@yahoo.com> wrote in message
news:#j*************@TK2MSFTNGP12.phx.gbl...
Dear Friends
Hope you doing great.

I have recently shifted to a webhost which is Using Windows 2003 and IIS
6. Now my application was working fine earlier but now I am facing this
problem

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters
/backend/_add_two.asp, line 103
The '..' characters are not allowed in the Path parameter for the
MapPath method.

Now I found out that this error is because of default setting of Enable
Parent Paths is disabled by default in IIS 6.0.
More info can be found at support.microsoft.com/?id=332117.

Now what if my service provider cant change that setting. What is the
work around, how to access the directory movving up down. Any help will
be appreciated.

Love
Lovely

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 19 '05 #3
Microsoft seems to think that it should be disabled on IIS 4 & IIS 5 as
well.

Check out the following article over at http://support.microsoft.com

184717 AspEnableParentPaths MetaBase Property Should Be Set To False

From what it says it sounds like they thing it should be disabled.

Since you didn't post the code that creates this error I can't think of
any workarounds.

If you post the code we can help you better.

Lovely Angel wrote:
Dear Friends
Hope you doing great.

I have recently shifted to a webhost which is Using Windows 2003 and IIS
6. Now my application was working fine earlier but now I am facing this
problem

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters
/backend/_add_two.asp, line 103
The '..' characters are not allowed in the Path parameter for the
MapPath method.

Now I found out that this error is because of default setting of Enable
Parent Paths is disabled by default in IIS 6.0.
More info can be found at support.microsoft.com/?id=332117.

Now what if my service provider cant change that setting. What is the
work around, how to access the directory movving up down. Any help will
be appreciated.

Love
Lovely

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 19 '05 #4
On Wed, 25 Aug 2004 18:51:40 -0700, Lovely Angel
<lo******************@yahoo.com> wrote:
Dear Friends
Hope you doing great.

I have recently shifted to a webhost which is Using Windows 2003 and IIS
6. Now my application was working fine earlier but now I am facing this
problem

Server.MapPath() error 'ASP 0175 : 80004005'
Disallowed Path Characters
/backend/_add_two.asp, line 103
The '..' characters are not allowed in the Path parameter for the
MapPath method.

Now I found out that this error is because of default setting of Enable
Parent Paths is disabled by default in IIS 6.0.
More info can be found at support.microsoft.com/?id=332117.

Now what if my service provider cant change that setting. What is the
work around, how to access the directory movving up down. Any help will
be appreciated.


The service provider *can* change it, the problem is whether they will
or not. The solution is not to use parent paths if they're
disallowed. Either put the database file in a folder that doesn't
require parent paths to reach it, use a physical file path instead of
Server.MapPath, or use a different provider. There are no "work
arounds" only changes to match the server's configuration.

Jeff
Jul 19 '05 #5
On Wed, 25 Aug 2004 23:26:09 -0600, "Carol Carrot"
<Ca*********@sofsof.net> wrote:
That is exactly not the answer to either of his questions.
Why not just answer the questions or step aside?
Now I'm sorry I gave you an answer...

Jeff

"Steven Burn" <pv*@noyb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I don't see any reason for their not being able to enable it as my host
upgraded to WS2003 w/IIS6 when it was released and I've had no problems

with
paths so far. Might want to get onto them about the reasons for it being
disabled ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Lovely Angel" <lo******************@yahoo.com> wrote in message
news:#j*************@TK2MSFTNGP12.phx.gbl...
> Dear Friends
> Hope you doing great.
>
> I have recently shifted to a webhost which is Using Windows 2003 and IIS
> 6. Now my application was working fine earlier but now I am facing this
> problem
>
> Server.MapPath() error 'ASP 0175 : 80004005'
> Disallowed Path Characters
> /backend/_add_two.asp, line 103
> The '..' characters are not allowed in the Path parameter for the
> MapPath method.
>
> Now I found out that this error is because of default setting of Enable
> Parent Paths is disabled by default in IIS 6.0.
> More info can be found at support.microsoft.com/?id=332117.
>
> Now what if my service provider cant change that setting. What is the
> work around, how to access the directory movving up down. Any help will
> be appreciated.
>
> Love
> Lovely
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



Jul 19 '05 #6
Carol, as many have mentioned to you before in your previous responses like
this, there are times that instead of giving an answer to a question, you
give a solution to the underlying problem. That will often go much further
than just a flat-out answer to a question, and I think you'll find most
people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
That is exactly not the answer to either of his questions.
Why not just answer the questions or step aside?

"Steven Burn" <pv*@noyb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I don't see any reason for their not being able to enable it as my host
upgraded to WS2003 w/IIS6 when it was released and I've had no problems

with
paths so far. Might want to get onto them about the reasons for it being
disabled ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

Jul 19 '05 #7
>there are times that instead of giving an answer to a question, you give a
solution to the underlying problem That will often go much >further than
just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the underliying
issue.
He even said that he doesn't want to hear about the ISP enabling the parent
paths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uZ**************@TK2MSFTNGP15.phx.gbl...
Carol, as many have mentioned to you before in your previous responses like this, there are times that instead of giving an answer to a question, you
give a solution to the underlying problem. That will often go much further than just a flat-out answer to a question, and I think you'll find most
people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
That is exactly not the answer to either of his questions.
Why not just answer the questions or step aside?

"Steven Burn" <pv*@noyb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
I don't see any reason for their not being able to enable it as my host
upgraded to WS2003 w/IIS6 when it was released and I've had no problems

with
paths so far. Might want to get onto them about the reasons for it being disabled ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!


Jul 19 '05 #8
I'm looking, but I can't find that your response has provided an
answer to the OP's underlying question. Or even a suggestion about
possible other avenues. Am I missing something?

Jeff

On Thu, 26 Aug 2004 22:39:49 -0600, "Carol Carrot"
<Ca*********@sofsof.net> wrote:
there are times that instead of giving an answer to a question, you give a

solution to the underlying problem That will often go much >further than
just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the underliying
issue.
He even said that he doesn't want to hear about the ISP enabling the parent
paths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uZ**************@TK2MSFTNGP15.phx.gbl...
Carol, as many have mentioned to you before in your previous responses

like
this, there are times that instead of giving an answer to a question, you
give a solution to the underlying problem. That will often go much

further
than just a flat-out answer to a question, and I think you'll find most
people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
> That is exactly not the answer to either of his questions.
> Why not just answer the questions or step aside?
>
>
>
> "Steven Burn" <pv*@noyb.com> wrote in message
> news:u5**************@TK2MSFTNGP09.phx.gbl...
>> I don't see any reason for their not being able to enable it as my host
>> upgraded to WS2003 w/IIS6 when it was released and I've had no problems
> with
>> paths so far. Might want to get onto them about the reasons for itbeing >> disabled ;o)
>>
>> --
>>
>> Regards
>>
>> Steven Burn
>> Ur I.T. Mate Group
>> www.it-mate.co.uk
>>
>> Keeping it FREE!



Jul 19 '05 #9
Carol has a habit of doing this. Bitching about how other people are not
solving the problem. Yet she can't be bothered to do any better...

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Jeff Cochran" <je*********@zina.com> wrote in message
news:41****************@msnews.microsoft.com...
I'm looking, but I can't find that your response has provided an
answer to the OP's underlying question. Or even a suggestion about
possible other avenues. Am I missing something?

Jeff

On Thu, 26 Aug 2004 22:39:49 -0600, "Carol Carrot"
<Ca*********@sofsof.net> wrote:
there are times that instead of giving an answer to a question, you give a
solution to the underlying problem That will often go much >further than
just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the underliying
issue.
He even said that he doesn't want to hear about the ISP enabling the parentpaths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uZ**************@TK2MSFTNGP15.phx.gbl...
Carol, as many have mentioned to you before in your previous responses

like
this, there are times that instead of giving an answer to a question,

you give a solution to the underlying problem. That will often go much

further
than just a flat-out answer to a question, and I think you'll find most
people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
> That is exactly not the answer to either of his questions.
> Why not just answer the questions or step aside?
>
>
>
> "Steven Burn" <pv*@noyb.com> wrote in message
> news:u5**************@TK2MSFTNGP09.phx.gbl...
>> I don't see any reason for their not being able to enable it as my host >> upgraded to WS2003 w/IIS6 when it was released and I've had no problems > with
>> paths so far. Might want to get onto them about the reasons for it

being
>> disabled ;o)
>>
>> --
>>
>> Regards
>>
>> Steven Burn
>> Ur I.T. Mate Group
>> www.it-mate.co.uk
>>
>> Keeping it FREE!

Jul 19 '05 #10
> He even said that he doesn't want to hear about the ISP enabling the
parent
paths.
He did......?.... can you point that bit out to me please as I've been
through his post numerous times and can't find any part that mentions his
not wanting to hear about the ISP enabling it for him.....

As for my reply, as has already been pointed out by Jeff Cochran, there is
no "work-around" other than to either re-code whatever the OP is doing to
match the servers config, or ask the ISP to enable parent paths.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:fY********************@comcast.com...
there are times that instead of giving an answer to a question, you give a solution to the underlying problem That will often go much >further than
just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the underliying
issue.
He even said that he doesn't want to hear about the ISP enabling the parent paths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uZ**************@TK2MSFTNGP15.phx.gbl...
Carol, as many have mentioned to you before in your previous responses

like
this, there are times that instead of giving an answer to a question, you give a solution to the underlying problem. That will often go much

further
than just a flat-out answer to a question, and I think you'll find most
people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
That is exactly not the answer to either of his questions.
Why not just answer the questions or step aside?

"Steven Burn" <pv*@noyb.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
> I don't see any reason for their not being able to enable it as my host> upgraded to WS2003 w/IIS6 when it was released and I've had no problems with
> paths so far. Might want to get onto them about the reasons for it

being> disabled ;o)
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!



Jul 19 '05 #11
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting. What
is the
work around?"

The answer is not "I don't know why your provider can't change the setting".

"Steven Burn" <pv*@noyb.com> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
He even said that he doesn't want to hear about the ISP enabling the parent
paths.


He did......?.... can you point that bit out to me please as I've been
through his post numerous times and can't find any part that mentions his
not wanting to hear about the ISP enabling it for him.....

As for my reply, as has already been pointed out by Jeff Cochran, there is
no "work-around" other than to either re-code whatever the OP is doing to
match the servers config, or ask the ISP to enable parent paths.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:fY********************@comcast.com...
there are times that instead of giving an answer to a question, you give a
solution to the underlying problem That will often go much >further than
just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the underliying
issue.
He even said that he doesn't want to hear about the ISP enabling the

parent
paths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:uZ**************@TK2MSFTNGP15.phx.gbl...
Carol, as many have mentioned to you before in your previous responses

like
this, there are times that instead of giving an answer to a question,

you give a solution to the underlying problem. That will often go much

further
than just a flat-out answer to a question, and I think you'll find
most people appreciate solutions even if not at first.

Ray at work
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:2M********************@comcast.com...
> That is exactly not the answer to either of his questions.
> Why not just answer the questions or step aside?
>
>
>
> "Steven Burn" <pv*@noyb.com> wrote in message
> news:u5**************@TK2MSFTNGP09.phx.gbl...
>> I don't see any reason for their not being able to enable it as my

host >> upgraded to WS2003 w/IIS6 when it was released and I've had no problems > with
>> paths so far. Might want to get onto them about the reasons for it

being
>> disabled ;o)
>>
>> --
>>
>> Regards
>>
>> Steven Burn
>> Ur I.T. Mate Group
>> www.it-mate.co.uk
>>
>> Keeping it FREE!



Jul 19 '05 #12
You've heard the "think outside the box" saying before, right? That's what
responses such as Steve's are about. And, well, as far as I'm concerned and
hopefully the majority of the world, that's the right way to think.

Imagine you're in a newgroups whose topic is Fords and you read this post:
"I have one of those Fords that is prone to burst into flames because of the
poorly desinged ignition system, so I'm trying to mount a fire extinguisher
in my console. I can't figure out how to put holes in the console for the
fire extinguisher brackets though."

Which response would you think is more appropriate?

A) Use a drill.

B) Don't mount a fire extinguisher. Take your car to a Ford dealership and
have the ignition replaced. They'll do that for free by order of recall.

Ray at work

"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets
what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting.
What
is the
work around?"

The answer is not "I don't know why your provider can't change the
setting".


Jul 19 '05 #13
> You do not need to show him that know better than he does about his
underlying "issues".
I never said I knew better than he did.....
The answer is not "I don't know why your provider can't change the setting".

It is if they've not given sufficient answers as to why they "can't change
the setting".....

Wise man once told me..... "if you don't know something, ask!"

As has already been mentioned, there is no work around, thus, the OP
_should_ really ask his/her ISP _why_ they "can't enable it" or if they
"will enable it"

If you know the answer to his question however, please, feel free to provide
it (instead of simply criticizing the replies that have already been given).

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com... You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets what they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting. What is the
work around?"

The answer is not "I don't know why your provider can't change the setting".


"Steven Burn" <pv*@noyb.com> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
He even said that he doesn't want to hear about the ISP enabling the

parent
paths.


He did......?.... can you point that bit out to me please as I've been
through his post numerous times and can't find any part that mentions his
not wanting to hear about the ISP enabling it for him.....

As for my reply, as has already been pointed out by Jeff Cochran, there is no "work-around" other than to either re-code whatever the OP is doing to match the servers config, or ask the ISP to enable parent paths.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:fY********************@comcast.com...
>there are times that instead of giving an answer to a question, you give
a
solution to the underlying problem That will often go much >further than just a flat-out answer to a question

Not this time, though does it?
Why not just try giving the answer, isnstead of doing the other guy's
thinking?

The guy was thoughtful enough to demonstrate that he knew the

underliying issue.
He even said that he doesn't want to hear about the ISP enabling the

parent
paths.
"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:uZ**************@TK2MSFTNGP15.phx.gbl...
> Carol, as many have mentioned to you before in your previous responses like
> this, there are times that instead of giving an answer to a question, you
> give a solution to the underlying problem. That will often go much
further
> than just a flat-out answer to a question, and I think you'll find most > people appreciate solutions even if not at first.
>
> Ray at work
>
>
> "Carol Carrot" <Ca*********@sofsof.net> wrote in message
> news:2M********************@comcast.com...
> > That is exactly not the answer to either of his questions.
> > Why not just answer the questions or step aside?
> >
> >
> >
> > "Steven Burn" <pv*@noyb.com> wrote in message
> > news:u5**************@TK2MSFTNGP09.phx.gbl...
> >> I don't see any reason for their not being able to enable it as
my host
> >> upgraded to WS2003 w/IIS6 when it was released and I've had no

problems
> > with
> >> paths so far. Might want to get onto them about the reasons for

it being
> >> disabled ;o)
> >>
> >> --
> >>
> >> Regards
> >>
> >> Steven Burn
> >> Ur I.T. Mate Group
> >> www.it-mate.co.uk
> >>
> >> Keeping it FREE!
>
>



Jul 19 '05 #14
Which of the answers was the right one?
#1 ?
2
3
4
5
?

how many do we have to wad thru before we get the answer to his specific
question?

"Steven Burn" <pv*@noyb.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
You do not need to show him that know better than he does about his
underlying "issues".
I never said I knew better than he did.....
The answer is not "I don't know why your provider can't change the

setting".

It is if they've not given sufficient answers as to why they "can't change
the setting".....

Wise man once told me..... "if you don't know something, ask!"

As has already been mentioned, there is no work around, thus, the OP
_should_ really ask his/her ISP _why_ they "can't enable it" or if they
"will enable it"

If you know the answer to his question however, please, feel free to

provide it (instead of simply criticizing the replies that have already been given).
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting.

What
is the
work around?"

The answer is not "I don't know why your provider can't change the

setting".



"Steven Burn" <pv*@noyb.com> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
> He even said that he doesn't want to hear about the ISP enabling the
parent
> paths.

He did......?.... can you point that bit out to me please as I've been
through his post numerous times and can't find any part that mentions his not wanting to hear about the ISP enabling it for him.....

As for my reply, as has already been pointed out by Jeff Cochran, there is
no "work-around" other than to either re-code whatever the OP is doing to match the servers config, or ask the ISP to enable parent paths.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:fY********************@comcast.com...
> >there are times that instead of giving an answer to a question, you

give
a
> solution to the underlying problem That will often go much >further than > just a flat-out answer to a question
>
> Not this time, though does it?
> Why not just try giving the answer, isnstead of doing the other
guy's > thinking?
>
> The guy was thoughtful enough to demonstrate that he knew the

underliying
> issue.
> He even said that he doesn't want to hear about the ISP enabling the
parent
> paths.
>
>
> "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote

in > message news:uZ**************@TK2MSFTNGP15.phx.gbl...
> > Carol, as many have mentioned to you before in your previous responses > like
> > this, there are times that instead of giving an answer to a question, you
> > give a solution to the underlying problem. That will often go much > further
> > than just a flat-out answer to a question, and I think you'll find

most
> > people appreciate solutions even if not at first.
> >
> > Ray at work
> >
> >
> > "Carol Carrot" <Ca*********@sofsof.net> wrote in message
> > news:2M********************@comcast.com...
> > > That is exactly not the answer to either of his questions.
> > > Why not just answer the questions or step aside?
> > >
> > >
> > >
> > > "Steven Burn" <pv*@noyb.com> wrote in message
> > > news:u5**************@TK2MSFTNGP09.phx.gbl...
> > >> I don't see any reason for their not being able to enable it as my host
> > >> upgraded to WS2003 w/IIS6 when it was released and I've had no
problems
> > > with
> > >> paths so far. Might want to get onto them about the reasons for it > being
> > >> disabled ;o)
> > >>
> > >> --
> > >>
> > >> Regards
> > >>
> > >> Steven Burn
> > >> Ur I.T. Mate Group
> > >> www.it-mate.co.uk
> > >>
> > >> Keeping it FREE!
> >
> >
>
>



Jul 19 '05 #15

Yes, Ray. Bad archery is called thinking outside the box.

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:et**************@TK2MSFTNGP15.phx.gbl...
You've heard the "think outside the box" saying before, right? That's what responses such as Steve's are about. And, well, as far as I'm concerned and hopefully the majority of the world, that's the right way to think.

Imagine you're in a newgroups whose topic is Fords and you read this post:
"I have one of those Fords that is prone to burst into flames because of the poorly desinged ignition system, so I'm trying to mount a fire extinguisher in my console. I can't figure out how to put holes in the console for the
fire extinguisher brackets though."

Which response would you think is more appropriate?

A) Use a drill.

B) Don't mount a fire extinguisher. Take your car to a Ford dealership and have the ignition replaced. They'll do that for free by order of recall.

Ray at work

"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets
what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting.
What
is the
work around?"

The answer is not "I don't know why your provider can't change the
setting".

Jul 19 '05 #16
..... and here's me thinking "bad archery" was caused by not enough
practice....... silly me.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:kM********************@comcast.com...

Yes, Ray. Bad archery is called thinking outside the box.

"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:et**************@TK2MSFTNGP15.phx.gbl...
You've heard the "think outside the box" saying before, right? That's

what
responses such as Steve's are about. And, well, as far as I'm concerned

and
hopefully the majority of the world, that's the right way to think.

Imagine you're in a newgroups whose topic is Fords and you read this post: "I have one of those Fords that is prone to burst into flames because of

the
poorly desinged ignition system, so I'm trying to mount a fire

extinguisher
in my console. I can't figure out how to put holes in the console for the fire extinguisher brackets though."

Which response would you think is more appropriate?

A) Use a drill.

B) Don't mount a fire extinguisher. Take your car to a Ford dealership

and
have the ignition replaced. They'll do that for free by order of recall.
Ray at work

"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets
what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting. What
is the
work around?"

The answer is not "I don't know why your provider can't change the
setting".


Jul 19 '05 #17
If you are sure we're not being helpful, why don't _YOU_ try helping him?

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:qe********************@comcast.com...
Which of the answers was the right one?
#1 ?
2
3
4
5
?

how many do we have to wad thru before we get the answer to his specific
question?

"Steven Burn" <pv*@noyb.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
You do not need to show him that know better than he does about his
underlying "issues".


I never said I knew better than he did.....
The answer is not "I don't know why your provider can't change the

setting".

It is if they've not given sufficient answers as to why they "can't change
the setting".....

Wise man once told me..... "if you don't know something, ask!"

As has already been mentioned, there is no work around, thus, the OP
_should_ really ask his/her ISP _why_ they "can't enable it" or if they
"will enable it"

If you know the answer to his question however, please, feel free to

provide
it (instead of simply criticizing the replies that have already been

given).

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets

what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting.
What
is the
work around?"

The answer is not "I don't know why your provider can't change the

setting".



"Steven Burn" <pv*@noyb.com> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...
> > He even said that he doesn't want to hear about the ISP enabling
the > parent
> > paths.
>
> He did......?.... can you point that bit out to me please as I've been > through his post numerous times and can't find any part that mentions his
> not wanting to hear about the ISP enabling it for him.....
>
> As for my reply, as has already been pointed out by Jeff Cochran, there
is
> no "work-around" other than to either re-code whatever the OP is

doing to
> match the servers config, or ask the ISP to enable parent paths.
>
> --
>
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
>
> "Carol Carrot" <Ca*********@sofsof.net> wrote in message
> news:fY********************@comcast.com...
> > >there are times that instead of giving an answer to a question,
you give
> a
> > solution to the underlying problem That will often go much

further
than
> > just a flat-out answer to a question
> >
> > Not this time, though does it?
> > Why not just try giving the answer, isnstead of doing the other

guy's > > thinking?
> >
> > The guy was thoughtful enough to demonstrate that he knew the
underliying
> > issue.
> > He even said that he doesn't want to hear about the ISP enabling the > parent
> > paths.
> >
> >
> > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
> > message news:uZ**************@TK2MSFTNGP15.phx.gbl...
> > > Carol, as many have mentioned to you before in your previous

responses
> > like
> > > this, there are times that instead of giving an answer to a

question,
> you
> > > give a solution to the underlying problem. That will often go much > > further
> > > than just a flat-out answer to a question, and I think you'll
find most
> > > people appreciate solutions even if not at first.
> > >
> > > Ray at work
> > >
> > >
> > > "Carol Carrot" <Ca*********@sofsof.net> wrote in message
> > > news:2M********************@comcast.com...
> > > > That is exactly not the answer to either of his questions.
> > > > Why not just answer the questions or step aside?
> > > >
> > > >
> > > >
> > > > "Steven Burn" <pv*@noyb.com> wrote in message
> > > > news:u5**************@TK2MSFTNGP09.phx.gbl...
> > > >> I don't see any reason for their not being able to enable it as my
> host
> > > >> upgraded to WS2003 w/IIS6 when it was released and I've had
no > problems
> > > > with
> > > >> paths so far. Might want to get onto them about the reasons

for it
> > being
> > > >> disabled ;o)
> > > >>
> > > >> --
> > > >>
> > > >> Regards
> > > >>
> > > >> Steven Burn
> > > >> Ur I.T. Mate Group
> > > >> www.it-mate.co.uk
> > > >>
> > > >> Keeping it FREE!
> > >
> > >
> >
> >
>
>



Jul 19 '05 #18
> how many do we have to wad thru before we get the answer to his specific
question?


Nothing that you have posted, that is for certain.
Jul 19 '05 #19
Yes basically unless "Lovely Angel" actually posts some code there is
nothing else that can be done. At least that is my understanding.

Also you & Carol Carrot seem to make a habit of complaining when a
person doesn't post enough information for us to help that user, but you
are whining that we didn't give a solution. I say to both of you (Carol
Carrot & Pauline Parrot) need to grow up, this isn't kindergarten after all.

Pauline Parrot wrote:
Which of the answers was the right one?
#1 ?
2
3
4
5
?

how many do we have to wad thru before we get the answer to his specific
question?

"Steven Burn" <pv*@noyb.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
You do not need to show him that know better than he does about his
underlying "issues".


I never said I knew better than he did.....

The answer is not "I don't know why your provider can't change the


setting".

It is if they've not given sufficient answers as to why they "can't change
the setting".....

Wise man once told me..... "if you don't know something, ask!"

As has already been mentioned, there is no work around, thus, the OP
_should_ really ask his/her ISP _why_ they "can't enable it" or if they
"will enable it"

If you know the answer to his question however, please, feel free to


provide
it (instead of simply criticizing the replies that have already been


given).
--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Pauline Parrot" <Pa***********@PaulineParrot.com> wrote in message
news:9d********************@comcast.com...
You do not need to show him that know better than he does about his
underlying "issues".

If you do that with an ASP application, everyone loses. A company gets


what
they didn't ask for, because you are being all helpful and clever.

Just find out what the requriements are, and deliver that.

the question was "what if my service provider cant change that setting.


What
is the
work around?"

The answer is not "I don't know why your provider can't change the


setting".


"Steven Burn" <pv*@noyb.com> wrote in message
news:e6**************@TK2MSFTNGP15.phx.gbl...

>He even said that he doesn't want to hear about the ISP enabling the

parent

>paths.

He did......?.... can you point that bit out to me please as I've been
through his post numerous times and can't find any part that mentions


his
not wanting to hear about the ISP enabling it for him.....

As for my reply, as has already been pointed out by Jeff Cochran,
there
is
no "work-around" other than to either re-code whatever the OP is doing


to
match the servers config, or ask the ISP to enable parent paths.

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Carol Carrot" <Ca*********@sofsof.net> wrote in message
news:fY********************@comcast.com...

>>there are times that instead of giving an answer to a question, you

give

a

>solution to the underlying problem That will often go much >further


than
>just a flat-out answer to a question
>
>Not this time, though does it?
>Why not just try giving the answer, isnstead of doing the other


guy's
thinking?
>
>The guy was thoughtful enough to demonstrate that he knew the

underliying

>issue.
>He even said that he doesn't want to hear about the ISP enabling the

parent

>paths.
>
>
>"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote


in
>message news:uZ**************@TK2MSFTNGP15.phx.gbl...
>
>>Carol, as many have mentioned to you before in your previous


responses
>like
>
>>this, there are times that instead of giving an answer to a


question,
you

>>give a solution to the underlying problem. That will often go
much
further
>
>>than just a flat-out answer to a question, and I think you'll find

most

>>people appreciate solutions even if not at first.
>>
>>Ray at work
>>
>>
>>"Carol Carrot" <Ca*********@sofsof.net> wrote in message
>>news:2M********************@comcast.com...
>>
>>>That is exactly not the answer to either of his questions.
>>>Why not just answer the questions or step aside?
>>>
>>>
>>>
>>>"Steven Burn" <pv*@noyb.com> wrote in message
>>>news:u5**************@TK2MSFTNGP09.phx.gbl. ..
>>>
>>>>I don't see any reason for their not being able to enable it as


my
host

>>>>upgraded to WS2003 w/IIS6 when it was released and I've had no

problems

>>>with
>>>
>>>>paths so far. Might want to get onto them about the reasons for


it
>being
>
>>>>disabled ;o)
>>>>
>>>>--
>>>>
>>>>Regards
>>>>
>>>>Steven Burn
>>>>Ur I.T. Mate Group
>>>>www.it-mate.co.uk
>>>>
>>>>Keeping it FREE!
>>
>>
>



Jul 19 '05 #20
Hi To All!

First of all sorry that I didnt post any code and even didnt reply to
any post.

The code is here:

<%
Dim rdset
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("../data/data.mdb")
%>

This is the structure of my files
www - rootfolder, where all main files go
www/back - where all admin files go
www/data - where mdb file is stored
www/images - where image files are stored

Now this code is for file in www/back folder.

There were two options, to get all things right.

1. Use Absolute Path : that would have solved my problem for databse,
but then there was scripts in back folder which were putting the text
data in the database(www/data) and from the forms submitted picked up
the image files to be stored in (www/images).
Now if there would have been one or two scripts it was ok, I had many
scripts for different modules.
(Bad programming on my side. Learnt something from this that I should
have another string common to all scripts which tells them where to
upload the image files)

2. Ask My Service Provider : Now there was this catch, I didnt have the
direct access with service provider. As I was just asked to build the
application and upload to the server. So I took this option out fr my
initial post.
Though the good news is, after few emails up the hierarchy of people, I
got the service provider to Enable The Parent Path.
And the comment I get from him is: "I still think you should not use
relative paths, but the absolute paths"
I dont know why he said that. Any comments on that.

Thanks to all who replied.

Love
Lovely

__________________________________


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #21
I think they may be getting that information from one of the Microsoft
KB articles. Here is one on that subject.

184717 AspEnableParentPaths MetaBase Property Should Be Set To False

In that article Microsoft says "The AspEnableParentPaths property in the
MetaBase specifies whether an ASP can allow paths relative to the
current directory (using the ..\ notation). This may be a security risk.

In a security-enhanced environment, the AspEnableParentPaths property
should be set to False, but the default installation of Internet
Information Server version 4.0 sets it to True.

NOTE: Disabling ASP Parent Paths will only affect the execution of
dynamic content on .asp pages. This does not affect the server's ability
to reference static content using HTML code (whether it is called from
..htm, .html or .asp files). The following line in a default.asp would
properly display the image without returning an ASP 0131 error, even
after AspEnableParentPaths = False:
<img src="../images/logo.jpg">
"

I always us a server side include that has all the variables and the
connection string all in one include so that I can make the change only
once instead of several hundred times. If you need to connect to
several databases just make one include for each database connection
that you need.

Lovely Angel wrote:
Hi To All!

First of all sorry that I didnt post any code and even didnt reply to
any post.

The code is here:

<%
Dim rdset
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("../data/data.mdb")
%>

This is the structure of my files
www - rootfolder, where all main files go
www/back - where all admin files go
www/data - where mdb file is stored
www/images - where image files are stored

Now this code is for file in www/back folder.

There were two options, to get all things right.

1. Use Absolute Path : that would have solved my problem for databse,
but then there was scripts in back folder which were putting the text
data in the database(www/data) and from the forms submitted picked up
the image files to be stored in (www/images).
Now if there would have been one or two scripts it was ok, I had many
scripts for different modules.
(Bad programming on my side. Learnt something from this that I should
have another string common to all scripts which tells them where to
upload the image files)

2. Ask My Service Provider : Now there was this catch, I didnt have the
direct access with service provider. As I was just asked to build the
application and upload to the server. So I took this option out fr my
initial post.
Though the good news is, after few emails up the hierarchy of people, I
got the service provider to Enable The Parent Path.
And the comment I get from him is: "I still think you should not use
relative paths, but the absolute paths"
I dont know why he said that. Any comments on that.

Thanks to all who replied.

Love
Lovely

__________________________________


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 19 '05 #22
I forgot in my other post check out the following pages as it gives you
directions on how to deal with your database connection & the second one
give you reasons why it should be disabled along with how to deal with
it for server side includes, so that you don't need to use the enable
parent path.

http://www.aspfaq.com/show.asp?id=2126
http://www.aspfaq.com/show.asp?id=2412

Lovely Angel wrote:
Hi To All!

First of all sorry that I didnt post any code and even didnt reply to
any post.

The code is here:

<%
Dim rdset
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
Server.MapPath("../data/data.mdb")
%>

This is the structure of my files
www - rootfolder, where all main files go
www/back - where all admin files go
www/data - where mdb file is stored
www/images - where image files are stored

Now this code is for file in www/back folder.

There were two options, to get all things right.

1. Use Absolute Path : that would have solved my problem for databse,
but then there was scripts in back folder which were putting the text
data in the database(www/data) and from the forms submitted picked up
the image files to be stored in (www/images).
Now if there would have been one or two scripts it was ok, I had many
scripts for different modules.
(Bad programming on my side. Learnt something from this that I should
have another string common to all scripts which tells them where to
upload the image files)

2. Ask My Service Provider : Now there was this catch, I didnt have the
direct access with service provider. As I was just asked to build the
application and upload to the server. So I took this option out fr my
initial post.
Though the good news is, after few emails up the hierarchy of people, I
got the service provider to Enable The Parent Path.
And the comment I get from him is: "I still think you should not use
relative paths, but the absolute paths"
I dont know why he said that. Any comments on that.

Thanks to all who replied.

Love
Lovely

__________________________________


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Jul 19 '05 #23
"Lovely Angel" wrote in message
news:u5**************@tk2msftngp13.phx.gbl...
: First of all sorry that I didnt post any code and even didnt reply to
: any post.
:
: The code is here:
:
: <%
: Dim rdset
: Dim objConn
: Set objConn = Server.CreateObject("ADODB.Connection")
: objConn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
: Server.MapPath("../data/data.mdb")
: %>
:
: This is the structure of my files
: www - rootfolder, where all main files go
: www/back - where all admin files go
: www/data - where mdb file is stored
: www/images - where image files are stored

IMHO, your database should be below the web root. Someone could then grab
your database file if the path is even known and being in a folder called
data is probably not that difficult to guess.

www
data

instead of...
www
www/data

The former does not allow anyone to reach your database virtually.

: Now this code is for file in www/back folder.
:
: There were two options, to get all things right.
:
: 1. Use Absolute Path : that would have solved my problem for databse,
: but then there was scripts in back folder which were putting the text
: data in the database(www/data) and from the forms submitted picked up
: the image files to be stored in (www/images).
: Now if there would have been one or two scripts it was ok, I had many
: scripts for different modules.
: (Bad programming on my side. Learnt something from this that I should
: have another string common to all scripts which tells them where to
: upload the image files)

Your www as you state is your web root or http://mydomain.com/. This
implies www/data is http://mydomain.com/data/.
So, you can reference your files via virtual root paths or /data.
mydomain.com will be used by default is no domain reference is given so you
do not need to reference them as http://mydomain.com/data.

: 2. Ask My Service Provider : Now there was this catch, I didnt have the
: direct access with service provider. As I was just asked to build the
: application and upload to the server. So I took this option out fr my
: initial post.
: Though the good news is, after few emails up the hierarchy of people, I
: got the service provider to Enable The Parent Path.
: And the comment I get from him is: "I still think you should not use
: relative paths, but the absolute paths"
: I dont know why he said that. Any comments on that.

I cannot speak for your host but perhaps it is because using parent paths
can get confusing. They are based upon the current context.

If you are at www or http://mydomain.com/ then using ../data/data.mdb would
in reality be:

www
data/data.mdb

and not
www/data/data.mdb

However this presents a problem because virtually you cannot point outside
the web root, but physically you can. I don't ever use parent paths so I do
not know what the actual result would be. If this is my setup:

/ = web root
/images
/asp
/js

Then I reference my files as:
/images/myimage.jpg
/asp/myaspfile.asp
/js/myscript.js

This makes my code easier to read and specifically tells the server where to
find my files. And, if I have this:
/folder1/secondlevel/thirdlevel/fourthlevel/fifthlevel/my5thlevelfile.asp

....then that is not very practical. I would then add a variable for my
paths:

dim second, third, fourth, fifth
secondPath = "/folder1/secondlevel"
thirdPath = secondPath & "/thirdlevel"
fourthPath = thirdPath & "/fourthlevel"
fifthPath = fourthPath & "/fifthlevel"

So:

fifth & "/my5thlevelfile.asp" =
/folder1/secondlevel/thirdlevel/fourthlevel/fifthlevel/my5thlevelfile.asp

This is a ridiculous example since I usually do not go very deep in my
heirarchy. It is just to give you some alternative ideas to what you're
currently using. If I did use them it would generally be in a loop where
many files were being referenced.

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #24

Hi Yall,

This is my first post here so i hope it can help you.

I had the very same problem as you and it is a pain in the butt whe
you test on IIS5 then upload to IIS6 and it dont work. I found tha
instead of using:

Server.MapPath("../data/data.mdb")

to navigate to the parent directory use

Server.MapPath("/PARENTDIRECTORY/data/data.mdb")

Be sure to use "/" at the beginning and then your paretn directory
This is a little easier than an absolute path, but not as easy as th
previous.

This sorted all my problems.

Take it easy yal
-
DiNo_
-----------------------------------------------------------------------
Posted via http://www.codecomments.co
-----------------------------------------------------------------------

Jul 19 '05 #25

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.