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

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Microsoft Portals generates error when adding < > in any field!

    Thanks Ravi,

    that did the trick... :)

    regards

    Martin

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Microsoft Portals generates error when adding < > in any field!

    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.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans