I am using Webhandler to upload images to the server. I want to send the folder name so on that folder the images will save. I am using this URI format and got the below error.
Also I added the following line in the web.config but still having the issue.
<httpRuntime requestValidationMode="2.0" />
A potentially dangerous Request.Path value was detected from the client (?).
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.Web.HttpException: A potentially dangerous Request.Path
value was detected from the client (?).
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:
[HttpException (0x80004005): A potentially dangerous Request.Path value was detected from the client (?).]
System.Web.HttpRequest.ValidateInputIfRequiredByConfig() +8884233
System.Web.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +35
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +184
Version
Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
pbarunkumar
Member
37 Points
56 Posts
A potentially dangerous Request.Path value was detected from the client (?).
May 24, 2010 11:19 AM|LINK
I am using Webhandler to upload images to the server. I want to send the folder name so on that folder the images will save. I am using this URI format and got the below error.
builder.Path = builder.Path.TrimEnd('/') + "/Services/FileReceiver.ashx?foldername=" + folder;
this.Uri = builder.Uri;
Also I added the following line in the web.config but still having the issue.
<httpRuntime requestValidationMode="2.0" />
A potentially dangerous Request.Path value was detected from the client (?).
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.Web.HttpException: A potentially dangerous Request.Path value was detected from the client (?).
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Arun
hemamalinigr
Participant
1310 Points
345 Posts
Re: A potentially dangerous Request.Path value was detected from the client (?).
May 24, 2010 02:24 PM|LINK
hey arun
check this out i too was looking for solution for this problem
http://www.cryer.co.uk/brian/mswinswdev/ms_vbnet_server_error_potentially_dangerous.htm
finally found it .
Glebby
Member
36 Points
12 Posts
Re: A potentially dangerous Request.Path value was detected from the client (?).
Jun 09, 2010 04:14 PM|LINK
pbarunkumar, have you resolved this issue? I experience the same problem, any help will be very appreciated.
I also added
<httpRuntime requestValidationMode="2.0" />
pbarunkumar
Member
37 Points
56 Posts
Re: A potentially dangerous Request.Path value was detected from the client (?).
Jun 16, 2010 12:25 PM|LINK
Hi,
Not yet found any solutions still having the same problem.
Arun
Webmonkeymon
Member
109 Points
97 Posts
Re: A potentially dangerous Request.Path value was detected from the client (?).
Oct 29, 2010 01:11 PM|LINK
</div><div>this worked form me. </div><div>
</div><div>
</div>