Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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"]
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.
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:
<%@ Import Namespace="Umbraco.Web" %>
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
userId: <%=Request.QueryString["id"] %>,
userId: <%=Request.CleanForXss("id") %>,
in the upgrade to 7.5.14
to the top of the file fixed it for us.
Adding the import fixed this issue for me.
Many thanks for your solution.
This seems to be fixed in this commit:
So 7.6.1 and greater should not have this issue.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted