TrilonIO / aspnetcore-angular-universal

ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
https://www.trilon.io
MIT License
1.46k stars 433 forks source link

Trouble with IIS #418

Open casni14 opened 7 years ago

casni14 commented 7 years ago

This may not be related to aspnetcore-angular2-universal, but here goes.. I'm trying to add the application to my IIS, but when running it, it returns the error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. It seems like there is something wrong with the web.config file. (Excuse me if this is a no-brainer, I just started using IIS..)

Thank you :)

Flood commented 7 years ago

I am experiencing the same issue when setting up the page in IIS. Actually you don't need it though. Just run dotnet run in the console.

davidsekar commented 7 years ago

@casni14 Apppool should be configured as 'No managed Code'...

casni14 commented 7 years ago

@davidsekar I have tried that, but it doesn't seem to do the trick

davidsekar commented 7 years ago

Hope you have already checked this, If not try it out https://docs.microsoft.com/en-us/aspnet/core/publishing/iis?tabs=aspnetcore2x

isaacrlevin commented 7 years ago

@casni14 after following steps in above link with a fresh pull, do you still get an issue?

digibum commented 7 years ago

Give AppPoolIdentity permission to root folder. Mine solution worked widauth Windows Server Hosting bundle ;)

casni14 commented 7 years ago

@Isaac2004, yes I followed the steps but it didn't fix it.

Is this local IIS or on some web server?

TomasKatz commented 6 years ago

Any updates on this having the same issue.

danielnajera commented 6 years ago

I had to install NodeJs on Windows Server 2016, that fixed the problem for me, previous versions for some reason did not require this like on Windows Server 2012, for example.

isaacrlevin commented 6 years ago

@casni14 other users are having success deploying to IIS. Ensure nodeJS is installed and that doc is followed. Please let us know if you are still having issues, otherwise I am going to close this ticket in a few days.