views:

109

answers:

2

I have an existing website that has only static HTML pages. I have one page where someone can email their information, but would like to code this page using .NET.

I've never mixed both before and thought if I published the pages needed from .NET and put it in the root of the existing website that is all I needed, but I am receiving an error when the page tries to submit to the .NET page.

I get the error the following error:

Thanks for your help!

============================================================

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 44:             ASP.NET to identify an incoming user. 
Line 45:         -->
Line 46:         <authentication mode="Windows"  />
Line 47:         <!--
Line 48:             The <customErrors> section enables configuration 

============================================================

A: 

If you Google for your error message you get a lot of hits that should provide a solution to your problem.

For example here and here.

Ronald Wildenberg
A: 

If you're running an ASP.NET in a Virtual Directory in IIS, you need to configure it as an application. To do this:

  1. Open up IIS Manager (if you have Administrative Tools in your Start menu, you can get to IIS from there).
  2. In the tree on the left, find your Virtual Directory
  3. Right click the directory, and select Properties
  4. Find the "Application Name" field.
  5. If there's a "Create" button beside the text box, click it. If it's a "Remove" button, then you should comment that this answer is wrong.

Good luck!

Lucas Richter
THANK YOU!!! That did it!!! Now I hope my test app works on the live site on GoDaddy!
JeiPM