Welcome Guest! To enable all features please Login or Register.



Runs in IIS Express in Visual Studio - not IIS 7.5 on same box
#1 Posted : Friday, June 8, 2018 8:12:17 AM(UTC)

In IIS, created a site and copied the app files to this site folder. Following the same procedure I use for other apps in production.

The IIS I'm trying to move to is on the same box as where I develop.

I keep getting
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.

I'm confident it sees web.config. i don't know what configuration is the issue.

Again, does run in IIS in Visual Studio.

Any clues?
#2 Posted : Friday, June 8, 2018 9:57:42 AM(UTC)

Thank you for reporting this issue.

It appears that you can get this error if you don't have the URL Rewrite module installed for your IIS.

This is because the default Web.config that comes with the Xomega solution template has some URL rewrite rules under the <rewrite> element, which help you set a custom path to the Login page.

To resolve this issue you can try one of the following options:
  1. Remove the <rewrite> element from the Web.config, and set the path to the Login page in the App_Start/Startup.Auth.cs class instead, if needed.
  2. Download and install the URL Rewrite module for your IIS server.
Please let us know if these solutions work for you.
#3 Posted : Friday, June 8, 2018 10:21:32 AM(UTC)

Wow Again ! It works.

Downloaded and installed Rewrite for IIS.

* In IIS Express in Visual Studio (always worked there)
* Now in IIS on my dev box (deployed from dev to IIS)
* And on my test app server.

I've never had to deal with rewrite. All my stuff runs on intranet and no need. And I also don't deal with complex web.configs. (And to be frank, most of my deployed programs are Java Servlets on Tomcat.)

Appreciate your quick response and keeping me going.

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Copyright © 2009-2023 Xomega.Net. All rights reserved.