Problem deploying .net core to IIS

0
1

Hello,

I am trying to deploy a wisej .net core app to IIS but can´t find a way for it to run.

THe same app runs in another IIS machine, so it must be some configuration.

When I try to access the app, the loading icon shows but the app doent load

I am getting  the following errors on the browser network records:

GET https://myurl.com/sl/resource.wx/wisej.css?v=3.5.6.10 net::ERR_HTTP2_PROTOCOL_ERROR
loadCss @ wisej.wx:97
(anonymous) @ wisej.wx:68
xhr.onreadystatechange @ wisej.wx:150
XMLHttpRequest.send (async)
loadResources @ wisej.wx:173
(anonymous) @ wisej.wx:49
(anonymous) @ wisej.wx:264
wisej.wx:97

GET https://myurl.com/sl/resource.wx/wisej-ext.css?v=3.5.6.10 net::ERR_HTTP2_PROTOCOL_ERROR
loadCss @ wisej.wx:97
(anonymous) @ wisej.wx:68
xhr.onreadystatechange @ wisej.wx:150
XMLHttpRequest.send (async)
loadResources @ wisej.wx:173
(anonymous) @ wisej.wx:49
(anonymous) @ wisej.wx:264
wisej.wx:123

GET https://myurl.com/sl/resource.wx/wisej.js?v=3.5.6.10 net::ERR_HTTP2_PROTOCOL_ERROR

 

Anyone knows what the problem may be?

Thanks

  • You must to post comments
0
0

Hi Gabriel,

can you please try deploying to a new folder? Basically deploying a Wisej.NET application is very similar to deploying an ASP.NET Core application.
You might find some more pointers here:

https://docs.wisej.com/deployment/targets/iis

Best regards
Frank

  • You must to post comments
0
0

Hi and thanks for your answer.

Unfortunately still not working.

Apparently it has something to do with having a previous version of the app not using .NET core on the root of IIS conflicting somehow with the .net core version in a subdirectory. The idea is to test the new version in the server before replacing the one current in production in the root.

I don´t know if this may be the cause, but apparently both version of the apps are sharing the same C:\Windows\Temp\Wisej 3\Applications\myurl.com-443 folder, despite the .net core being in a subfolder. I tried stopping the production app pool, deleting the temp folder and accessing the .net core app. The temp folder regenerates but without wisej.css, wisej-ext.css and wise.js files appearing on it.

Any other ideas I may try?

Thanks

  • You must to post comments
0
0

Here are a few things you can try:

1. Since you know that the app runs on another machine, I would recommend checking your IIS settings to see if they are the same on both computers.
Go to the windows Search bar-> type “features” ->choose “turn windows features on or off” -> Expand the “Internet Information Services” box -> Check the settings on both computers and see if any are different

2.Check which folder you are directing IIS to. Make sure that it is the folder containing the Web.config file. Also double-check the Web.config file against the Web.config file from a new Wisej project to see if there are any changes made that might be causing issues.

3. Make sure that the folder that IIS is directed to has the correct permissions set.

In File Explorer, navigate to the file/folder that you are trying to run with IIS.

  1. Right-click -> properties
  2. Click the “security” tab
  3. Click “edit”
  4. Click add
  5. Click advanced
  6. Click find now
  7. Choose IIS_USERS
  8. Click OK
  9. Check the box for Allow full control

Repeat these steps for IUSER instead of IIS_USERS
If none of these work, please upload a small sample project and we will see if we can reproduce.

Hope this helps!

-Julie

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.