Base solution for your next web application
Open Closed

IIS Deploy #4890


User avatar
0
paulg created

I have done an IIS Deploy of a combined Core and Angular web site. After creating the web site in IIS, I copied all the files from dist folder to the root folder in IIS. The CoonectionString in appsettings.json is the same for both local (where it is working) and server/IIS.

When I visit the site in IIS, I get the "An error has occured!" message. So the index.html page seems to start to load, but then something fails. How can I go about troubleshooting this?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    open your browser's developer console and see the target URL while making HTTP request. You might have misconfigured. And if the target URL is correct then check if it's up and running. If it's OK then check the HOST logs to see if there's an exception.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    paulg created

    Attached is the error in the Console. Can you tell from that what is wrong?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    paulg created

    I added port 22742 to bindings in IIS. I now see this in the Console:

    Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.

    Any ideas?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @paulg probably there is a server side error. Can you check your Host project's logs ? it should be "App_Data/Logs.txt".

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)