Click here to Skip to main content
15,887,135 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Blog for MVC Pin
jkirkerx25-May-18 8:46
professionaljkirkerx25-May-18 8:46 
QuestionWeb API: What is refresh token Pin
Mou_kol23-May-18 10:04
Mou_kol23-May-18 10:04 
AnswerRe: Web API: What is refresh token Pin
jkirkerx23-May-18 13:22
professionaljkirkerx23-May-18 13:22 
GeneralRe: Web API: What is refresh token Pin
Mou_kol24-May-18 12:48
Mou_kol24-May-18 12:48 
GeneralRe: Web API: What is refresh token Pin
Mycroft Holmes24-May-18 13:01
professionalMycroft Holmes24-May-18 13:01 
GeneralRe: Web API: What is refresh token Pin
jkirkerx24-May-18 13:59
professionaljkirkerx24-May-18 13:59 
AnswerRe: Web API: What is refresh token Pin
Vincent Maverick Durano24-May-18 20:02
professionalVincent Maverick Durano24-May-18 20:02 
QuestionI am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
indian14321-May-18 6:59
indian14321-May-18 6:59 
Hi,

I am maintaining a new ASP.Net application, which was running fine when I was using database; xxxxx, but another copy of the same Database when I started using: xxxx_20180425 then it started giving me the below error, its a Production application when I took the backup and restore, it started giving me the error as below, I am just confused is it Problem really in the application or just some issues related to new Database permissions for the user. Any help would be greatly helpful.
And can you please help me if I can copy the same roles of user123 permissions on the xxxxx database to xxxx_20180425, so that the user will have the same permissions. Any help would be greatly helpful. Thanks in advance.

Here is the error message:
A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). 
  Description: ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script. The data might represent an attempt to compromise the security of your application, such as a cross-site scripting attack. If this type of input is appropriate in your application, you can include code in a web page to explicitly allow it. For more information, see <a href="http://go.microsoft.com/fwlink/?LinkID=212874">http://go.microsoft.com/fwlink/?LinkID=212874</a>. 

 Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe...").

Source Error: 

 The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

<ol>
<li>Add a "Debug=true" directive at the top of the file that generated the error. Example:</li>
</ol>
H615311168H

or:

2) Add the following section to the configuration file of your application:

<configuration>
    <system.web>
        <compilation debug="true"/>
    </system.web>
</configuration>

 Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.  

Stack Trace: 

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe...").]
   System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +9721353
   System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection) +184
   System.Web.HttpRequest.get_QueryString() +55
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +70
   System.Web.UI.Page.DeterminePostBackMode() +69
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6704
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +245
   System.Web.UI.Page.ProcessRequest() +72
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +58
   ASP.error_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +69

Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."
AnswerRe: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
Richard MacCutchan21-May-18 7:04
mveRichard MacCutchan21-May-18 7:04 
AnswerRe: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
Jochen Arndt21-May-18 23:29
professionalJochen Arndt21-May-18 23:29 
SuggestionRe: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
Richard Deeming22-May-18 2:22
mveRichard Deeming22-May-18 2:22 
GeneralRe: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
Jochen Arndt22-May-18 2:59
professionalJochen Arndt22-May-18 2:59 
AnswerRe: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
jkirkerx23-May-18 13:38
professionaljkirkerx23-May-18 13:38 
AnswerAnswer: I am getting the error: A potentially dangerous Request.QueryString value was detected from the client (msg="...ema 'dbo'.<br />The EXECUTE pe..."). Pin
indian14329-May-18 9:18
indian14329-May-18 9:18 
QuestionAttribute routing on index Pin
jkirkerx17-May-18 11:26
professionaljkirkerx17-May-18 11:26 
AnswerRe: Attribute routing on index Pin
Vincent Maverick Durano21-May-18 14:17
professionalVincent Maverick Durano21-May-18 14:17 
GeneralRe: Attribute routing on index Pin
jkirkerx22-May-18 13:29
professionaljkirkerx22-May-18 13:29 
QuestionSecuring my WebApi with OAuth2 Pin
Kraftw3rk16-May-18 22:51
Kraftw3rk16-May-18 22:51 
AnswerRe: Securing my WebApi with OAuth2 Pin
Richard MacCutchan16-May-18 23:35
mveRichard MacCutchan16-May-18 23:35 
AnswerRe: Securing my WebApi with OAuth2 Pin
Vincent Maverick Durano21-May-18 14:21
professionalVincent Maverick Durano21-May-18 14:21 
QuestionASP.Net MVC output caching at client side Pin
Mou_kol16-May-18 4:16
Mou_kol16-May-18 4:16 
AnswerRe: ASP.Net MVC output caching at client side Pin
Richard MacCutchan16-May-18 4:58
mveRichard MacCutchan16-May-18 4:58 
AnswerRe: ASP.Net MVC output caching at client side Pin
Vincent Maverick Durano21-May-18 21:09
professionalVincent Maverick Durano21-May-18 21:09 
QuestionAsp.net Pin
Member 1363315416-May-18 0:20
Member 1363315416-May-18 0:20 
AnswerRe: Asp.net Pin
David Mujica16-May-18 3:59
David Mujica16-May-18 3:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.