ASP.NET "Server Error in '/starbus Final vijay & Nehpal' Application." hatası nasıl çözülür?

notify (538) 8 yıl önce sordu

Server Error in '/starbus Final vijay & Nehpal' Application.

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() +9693648
   System.Web.ValidateRequestExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +35
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36245

notify 8 yıl önce

Yada yabancı dili olan varsa çeviri yapabilirmi? google'ın nasıl çevirdiği malüm

Toplam 1 cevap


alattin (17014) 8 yıl önce cevapladı

Asp.net bazı güvenlik önlenleri ile birlikte gelir, zararlı olabilecek karakterler ile istekte bulunulursa bu hatayı alırsınız. 

Web.config içinde şu değişikliği yaparak çözebilirsiniz:

<system.web>
    <httpRuntime requestPathInvalidCharacters="" requestValidationMode="2.0" />
    <pages validateRequest="false" />
</system.web>