web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Microsoft Portals generates error when adding < > in any field!

(0) ShareShare
ReportReport
Posted on by 390

Hi,

we need some information why when in any filed in a Form on Microsoft Portals when adding the following character format "<test> test" with the combination of < > and just some text in between we generate the following error: 

Server Error in '/' Application.


A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").

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 go.microsoft.com/.../

Exception Details: System.Web.HttpRequestValidationException: A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").

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:

[HttpRequestValidationException (0x80004005): A potentially dangerous Request.Form value was detected from the client (ctl00$ContentContainer$EntityFormControl_9da592ee63ede811a965000d3ab1ab19$EntityFormControl_9da592ee63ede811a965000d3ab1ab19_EntityFormView$title="<test> test").]
   System.Web.HttpRequest.ValidateString(String value, String collectionKey, RequestValidationSource requestCollection) +11968679
   System.Web.HttpRequest.ValidateHttpValueCollection(HttpValueCollection collection, RequestValidationSource requestCollection) +200
   System.Web.HttpRequest.get_Form() +59
   System.Web.HttpRequest.get_HasForm() +11969054
   System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull) +106
   System.Web.UI.Page.DeterminePostBackMode() +85
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +9458
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +345
   System.Web.UI.Page.ProcessRequest() +75
   System.Web.UI.Page.ProcessRequest(HttpContext context) +70
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +790
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +195
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +88

how do get rid of this error?

best regards

Martin

I have the same question (0)
  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    Create a site setting call DisableValidationWebTemplate and set this to True.

    community.dynamics.com/.../portal-comment-error-when-using-the-and-the-symbols

    Hope this helps.

  • icimasa Profile Picture
    390 on at

    Thanks Ravi,

    that did the trick... :)

    regards

    Martin

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 49 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 38 Super User 2025 Season 2

#3
#ManoVerse Profile Picture

#ManoVerse 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans