Unauthorized Access Exception when loading deployed page

0
0

Hi,

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.

 

Greets,

Marcel

 

  • You must to post comments
0
0

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?

  • Luca (ITG)
    If you run the app in development it should save the wisej-server.lic locally in the project file which can be copied along with the project. However I’m not sure if Wisej still tries to save, will check. This is clearly not working well and we need to find a better solution.
  • Chris Abate
    Hey Luca, I have not found it anywhere on the dev computer so I don’t think it’s still saving it locally. The only one it seems to create for me is the developer one, which shows up in ProgramData. Thanks, Chris
  • Chris Abate
    Hey Luca, Just curious if anything has changed on this front. I actually went and created a VM so I could generate the server license file since it wasn’t happening on the dev machine, but even copying the license file up to the app folder on GoDaddy does not solve the problem. It still gives me the License Error that it can’t write to Program Data. Any ideas what else I can try? I do not have the ability to give IIS_IUSERS control over that folder. Thanks, Chris
  • You must to post comments
0
0

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.

See also https://wisej.com/support/question/license-error-path-is-denied

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.

Suggestions?

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.