473,378 Members | 1,564 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

CheckSuspiciousPhysicalPath issue in ASP.Net Framework 1.1 SP1 fix

Hello all,

I have come across an issue with the fix KB886903 -
http://www.microsoft.com/technet/sec.../MS05-004.mspx which is to
do with the ASP.Net path validation vulnerability. This fix is included
automatically in SP1 for Windows Server 2003 also, and I have been unable to
remove it until we can find out how to fix this problem.

The error message is below,

The path contains illegal characters.
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.ArgumentException: The path contains illegal
characters.

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:

[ArgumentException: The path contains illegal characters.]
System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars,
Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator,
Char volumeSeparator, Boolean fullCheck, String& newPath) +0
System.IO.Path.GetFullPathInternal(String path) +165
System.IO.Path.GetFullPath(String path) +19
System.Web.HttpApplication.CheckSuspiciousPhysical Path(String
physicalPath) +19
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +175
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486

The issue lies with the request we send within a frame. The requested url is
in the form http://.../page.aspx/foldera/folderb/|/pic0001

The pipe "|" character is causing us grief. If we put in %7c we still get
the same error. If you install the KB886903 patch on WinXP or Server2003 this
error occurs and IIS throws a HTTP500 error. If you uninstall it, it works
perfectly.

There is little on the internet about this error, and why we are getting it,
especially since we are not doing anything nasty with the path. Is it because
the "|" char is in System.Path.IO.InvalidPathChars array? Does this mean that
any character in this array that is in a request will throw this exception?

Any help would be fantastic, ideas ect - I'm lost as to how to deal with
this, considering we don't even get to our page before this is throw by
System.Web.dll. Can we get around it at all? Or will we be forced to change
the url itself (and how, especially since '|' is fundamental to our webapp)

Thank you - Leon
Nov 19 '05 #1
2 2786
Anyone able to help at all?

"Leon" wrote:
Hello all,

I have come across an issue with the fix KB886903 -
http://www.microsoft.com/technet/sec.../MS05-004.mspx which is to
do with the ASP.Net path validation vulnerability. This fix is included
automatically in SP1 for Windows Server 2003 also, and I have been unable to
remove it until we can find out how to fix this problem.

The error message is below,

The path contains illegal characters.
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.ArgumentException: The path contains illegal
characters.

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:

[ArgumentException: The path contains illegal characters.]
System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars,
Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator,
Char volumeSeparator, Boolean fullCheck, String& newPath) +0
System.IO.Path.GetFullPathInternal(String path) +165
System.IO.Path.GetFullPath(String path) +19
System.Web.HttpApplication.CheckSuspiciousPhysical Path(String
physicalPath) +19
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +175
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486

The issue lies with the request we send within a frame. The requested url is
in the form http://.../page.aspx/foldera/folderb/|/pic0001

The pipe "|" character is causing us grief. If we put in %7c we still get
the same error. If you install the KB886903 patch on WinXP or Server2003 this
error occurs and IIS throws a HTTP500 error. If you uninstall it, it works
perfectly.

There is little on the internet about this error, and why we are getting it,
especially since we are not doing anything nasty with the path. Is it because
the "|" char is in System.Path.IO.InvalidPathChars array? Does this mean that
any character in this array that is in a request will throw this exception?

Any help would be fantastic, ideas ect - I'm lost as to how to deal with
this, considering we don't even get to our page before this is throw by
System.Web.dll. Can we get around it at all? Or will we be forced to change
the url itself (and how, especially since '|' is fundamental to our webapp)

Thank you - Leon

Nov 19 '05 #2
Leon,

where are you located ?

If you are in the US or Canada you can receive technical support
from Microsoft Product Support Services at 1-866-PCSAFETY.

There is no charge for support calls that are associated with security updates.

International clients can receive support from their local Microsoft subsidiaries.
Again, there is no charge for support that is associated with security updates.

For more information about how to contact Microsoft for support issues,
if you are located anywhere but in the US or Canada, visit :

http://support.microsoft.com/common/international.aspx

Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
=============================

"Leon" <Le**@discussions.microsoft.com> wrote in message
news:9F**********************************@microsof t.com...
Anyone able to help at all?

"Leon" wrote:
Hello all,

I have come across an issue with the fix KB886903 -
http://www.microsoft.com/technet/sec.../MS05-004.mspx which is to
do with the ASP.Net path validation vulnerability. This fix is included
automatically in SP1 for Windows Server 2003 also, and I have been unable to
remove it until we can find out how to fix this problem.

The error message is below,

The path contains illegal characters.
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.ArgumentException: The path contains illegal
characters.

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:

[ArgumentException: The path contains illegal characters.]
System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars,
Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator,
Char volumeSeparator, Boolean fullCheck, String& newPath) +0
System.IO.Path.GetFullPathInternal(String path) +165
System.IO.Path.GetFullPath(String path) +19
System.Web.HttpApplication.CheckSuspiciousPhysical Path(String
physicalPath) +19
System.Web.Configuration.HttpConfigurationSystem.C omposeConfig(String
reqPath, IHttpMapPath configmap) +175
System.Web.HttpContext.GetCompleteConfigRecord(Str ing reqpath,
IHttpMapPath configmap) +434
System.Web.HttpContext.GetCompleteConfig() +49
System.Web.HttpContext.GetConfig(String name) +195
System.Web.CustomErrors.GetSettings(HttpContext context, Boolean
canThrow) +20
System.Web.HttpResponse.ReportRuntimeError(Excepti on e, Boolean canThrow)
+39
System.Web.HttpRuntime.FinishRequest(HttpWorkerReq uest wr, HttpContext
context, Exception e) +486

The issue lies with the request we send within a frame. The requested url is
in the form http://.../page.aspx/foldera/folderb/|/pic0001

The pipe "|" character is causing us grief. If we put in %7c we still get
the same error. If you install the KB886903 patch on WinXP or Server2003 this
error occurs and IIS throws a HTTP500 error. If you uninstall it, it works
perfectly.

There is little on the internet about this error, and why we are getting it,
especially since we are not doing anything nasty with the path. Is it because
the "|" char is in System.Path.IO.InvalidPathChars array? Does this mean that
any character in this array that is in a request will throw this exception?

Any help would be fantastic, ideas ect - I'm lost as to how to deal with
this, considering we don't even get to our page before this is throw by
System.Web.dll. Can we get around it at all? Or will we be forced to change
the url itself (and how, especially since '|' is fundamental to our webapp)

Thank you - Leon

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
2
by: George Durzi | last post by:
I have a dll that I use in several projects, that I placed in the Global Assembly Cache. This dll is references in each of my projects. This Dll is referenced by a type= declaration in my...
1
by: microsoft.news | last post by:
Has anyone seen this? We are porting a web application from .NET 1.1 to 2.0 beta, and receiving errors "The type <dataset> already contains a definition for <event handler>" Looks like the error...
2
by: Christian Perthen | last post by:
Hi, I just replaced .NET framework 2.0 over .NET framework 2.0 beta and suddenly my VS 2005 beta doesn't work anymore. Anyone else experienced the same issue. Thanks Christian
0
by: ikhan | last post by:
Hello, I am using an activex control on my website. It was running fine with framework 1.1, when I try to run it on framework 2.0 it's not showing up. It's not showing any error message, just a...
3
by: Jean-Marie | last post by:
Hi, I have an issue with IIS installation in Server 2003 : I can't change ASP.NET version from V1.1.4322 to V2.0.0727 in Service web extension tab of IIS to make it match with my site. The web...
7
by: therod | last post by:
I am running Windows Server 2003 SP1 and .Net Framework 1.1 I want to upgrade to .Net 2.0 and I'm pretty sure I should uninstall 1.1 first. Problem is that .NET 1.1 doesn't show up in Control...
13
by: dancer | last post by:
I have made a new post because when I try to respond to another, I get the error, "Article Rejected -- Ill-formed message id" This is in response to the advice of Juan Libre to install Net...
3
by: Steve Cross | last post by:
I need a procedure for a manual .Net 2.0 Framework uninstall. dotnetfx /C doesn't work Manaully running the .msi from the %systemroot%\installer directory doesn't work. It appears to be...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.