since a couple of days we get an “UnauthorizedAccessException”-error when loading our Wisej page after the deployment on our IIS. The page tries to get access to the wisej-server.lic on drive C. This didnt’t happen before and also seems a bit strange, because the website should get all its resources from the application folder. The rest of the page works correctly and the error message occured after one of the last updates.
Another problem is the wisej-server.lic. It is no longer automatically generated after deploying the project and starting the website.
I have encountered this problem as well, but I’m trying to publish it to a GoDaddy host so control over folder permissions is somewhat limited. I’ve given it every permission it allows me to give, but the app still can’t seem to write the license and I get that error. Is there some way to generate the license file manually and get it in the app folder so that it’ll stop throwing the error?
Wisej tries to save the license in the shared application folder and in the application folder. Usually the IIS ApplicationPool has write access to the shared folder (ProgramData) and not to the application folder, unless you add IIS_IUSRS full control. Before it was hiding the error with the result that wisej-server.lic was not generated silently without any message. Not it only ignores permission errors writing to the local (application) directory. It’s assumed that the application pool can write to ProgramData.
The problem occurs when you create a new Application Pool and it doesn’t have enough permissions to write to ProgramData. If Wisej cannot save wisej-server.lic then it will try every time the app is loaded and it always needs an internet connection.
We can change this behavior easily, but we need to inform developers that the server couldn’t save and the permissions are missing. Writing to a log is already, but you need to attach a log writer and without a message on the screen it’s overlooked.
Please login first to submit.