Server Error in '/' Application asp website - asp.net

When i visit my website i see this error. Id there somthing i have to do from my end or the hosting porovider has to do? i only have access to the Plesk hosting pannel
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: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: C:\Inetpub\vhosts\wincarsassociation.com\httpdocs\web.config Line: 23
Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8015

From https://stackoverflow.com/a/7530832/59996
This typically happens when you have an attribute of
targetFramework="4.0" in the web.config but the App Pool is set to run
ASP.NET 2.0
The top answer to this question has details of how to configure an AppPool
How to add ASP.NET 4.0 as Application Pool on IIS 7, Windows 7
Is there a place in the Plesk interface where you can change your AppPool from v2.0 to v4.0?
(Try looking under Home > Tools & Settings > IIS application pool)

Related

Server Error in '/admin' Application....An application error occurred on the server

I have 2 projects in my solution (ASP.NET MVC 5), one for the client and one for the admin. Both projects are running fine locally. But when I publish the admin project (which is located in the path: root/admin in my hosting) I'm getting the next error:
An application error occurred on the server. The current custom error
settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could,
however, be viewed by browsers running on the local server machine.
Something to know, I have added:
<system.web>
<customErrors mode="Off"/>
</system.web>
But i don't see any specific error and also I have configured the virtual directory root/admin as an application in IIS.
I know this is a common error but I don't see any solution like this one: Server Error in '/' Application. ASP.NET
The entry "Data.Models.ApplicationDbContext" has already been added.
That along with the Source File being the web.config, I'd look to see if that ApplicationDbContext is in the web.config twice and causing an issue in loading the application.
In the error message above is this reference:
e:\Web\deliver4\admin\web.config line: 18
So, what are around line 18 in that web.config file?
I solved the problem with this https://stackoverflow.com/a/6679286/2958543
<remove name="Data.Models.ApplicationDbContext" />
after my connectionString.

Web config Error when using browser only

I have a website that is setup in the IIS as an application on a server. When i click a page from the IIS and click browse it loads the page fine. If i run the web app in VS2010, it launches the pages just fine. The problem is when i try to access the page from a browser it gives me this error...
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 88: ASP.NET to identify an incoming user.
Line 89: -->
Line 90: <authentication mode="Windows" />
Line 91: <!--
Line 92: The <customErrors> section enables configuration
This is site is totally down due to this error and i need to get it fixed asap...google has yielded 2 results, make sure the site is set as an app in IIS which it is and also check for nested web.config files which there is only one config file. Thoughts?
It looks like you have a web.config in a sub-folder of a website that is not configured as an IIS application. You have to either make that folder a proper application, or remove that web.config file.
So for example: Your website is in: C:\inetpub\mysite, and you have: c:\inetpub\mysite\subfolder1\web.config. In order for that web.config to be accepted by IIS, you have to tell IIS that subfolder1 is an IIS application.
Have you also converted the folder you are trying to protect as a web application within IIS? Right click on the folder inside of IIS and select Convert to Application.

asp.net website doesn't run on server

I'm getting a runtime error when I try to access my asp.net website on a server. It works fine from my computer when I test it but once I upload it to my host, the runtime error appears.
I get this message:
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
My webhost is godaddy. The server is indeed windows and according to their tech support they have all the frameworks installed and up to date (I'd imagine this anyway from such a large host).
Basically they say it's an error on my end but I have no clue what I'm doing wrong. I made the website with Visual Studio 2010. I'm new to this technology.

error when uploading a aspx website

when i host my website on my local machine on IIS 7 my website runs correctly, but when i upload the website to my hosting space online the error:
<sessionState mode="InProc" cookieless="false" timeout="20"/>
(comes up in red)
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.
comes up. could you guys please help me out?
Notes i use multiple web.config files and no i cannot delete them
Much appreciated
The clue is here: "This error can be caused by a virtual directory not being configured as an application in IIS."
Depending on who your hosting provider is, check that your website is running as a Web Application.
The tag is allowed only at the root level. If you are using multiple web.config's ensure that you haven't copied this tag into any other config file.
Also ensure that your virtual directory root is marked as an application.

Publish web site in IIS 7.0

I want to publish my ASP.net based web page on Windows 7 machine.But,I got continually an error inside the below code.
<sessionState mode="Inproc" timeout="30"></sessionState>
Error Message:
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:
<sessionState mode="Inproc" timeout="30"></sessionState>
How to get rid of this problem?
The clue lies in the error message:
This error can be caused by a virtual directory not being configured as an application in IIS.
Have you created an "Application" for it in IIS? Does the website's node in IIS look like a folder or a globe?

Resources