System.Web.HttpRequest does not have the CleanForXss definition
Version 7.6 downloaded as zip and unziped to folder.
An error is generated in Visual Studio when you build a Web site:
System.Web.HttpRequest does not have the CleanForXss definition, and no CleanForXss extension method has been found that would accept the first System.Web.HttpRequest argument (does not use the use directive or build link?)
The error is in Umbraco / Users / PermissionEditor.asmx at line 30
UserId: <% = Request.CleanForXss ("id")%>,
This can be fixed:
UserId: <% = Request.QueryString ["id"]%>,
In release 7.6RC was Request.QueryString ["id"]
and
in release 7.6 already Request.CleanForXss ("id")
How can I fix it correctly.
or I should ignore this mistake
Is it really interesting that it does not make anyone a problem?
It was a change between RC and Release versions, which should be exceptional.
I've run into this issue as well. It prevents you from setting user permissions from the backoffice. Prompting the QueryString parameter fixes the issue. However, the real solution is to add this import to the begining of PermissionEditor.aspx file:
System.Web.HttpRequest does not have the CleanForXss definition
Version 7.6 downloaded as zip and unziped to folder. An error is generated in Visual Studio when you build a Web site: System.Web.HttpRequest does not have the CleanForXss definition, and no CleanForXss extension method has been found that would accept the first System.Web.HttpRequest argument (does not use the use directive or build link?)
The error is in Umbraco / Users / PermissionEditor.asmx at line 30 UserId: <% = Request.CleanForXss ("id")%>,
This can be fixed: UserId: <% = Request.QueryString ["id"]%>,
In release 7.6RC was Request.QueryString ["id"] and in release 7.6 already Request.CleanForXss ("id")
How can I fix it correctly. or I should ignore this mistake
Is it really interesting that it does not make anyone a problem? It was a change between RC and Release versions, which should be exceptional.
Am getting the same issue. Did you resolve it?
Not yet. I still ignore this error.
The error may not occur if the project was compiled in Visual Studio by default.
I only use the expanded zip into the folder.
Then I open the project in visual studio as a website.
This is not a compilation but just a build check.
Maybe not just an available library.
I'll think of it until some mistake is made in the umbraco backoffice.
Maybe in the next version.
Hi,
I've run into this issue as well. It prevents you from setting user permissions from the backoffice. Prompting the QueryString parameter fixes the issue. However, the real solution is to add this import to the begining of
PermissionEditor.aspx
file:Thank you, me and the others with this mistake.
I was expecting such a solution.
This change was too quick.
Thank you, I had this problem too.
We're using Umbraco Cloud and the Auto Update changed the line
to
in the upgrade to 7.5.14
Adding
to the top of the file fixed it for us.
Thanks!
Jan
Adding the import fixed this issue for me.
Many thanks for your solution.
Muiris
This seems to be fixed in this commit: https://github.com/umbraco/Umbraco-CMS/commit/be2eb3f555c720bae5b7394e26b98c05249a4983#diff-d5eee9d22373cf9684bef9607b79e7e0
So 7.6.1 and greater should not have this issue.
is working on a reply...