Can I have a complete guide to deploy an mvc wesite on iis7.0 please.
I am trying to deploy my mvc website on iis 7.0 but I am having the error
> 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:
Line 42:
Line 43:
Line 44:
Line 45:
Line 46:
Source File: D:\time\web.config Line: 44
Version Information: Microsoft .NET Framework Version:2.0.50727.5446; ASP.NET Version:2.0.50727.5420
ASP.NET MVC3 requires the .NET framework 4.0
MVC 2 would run on .NET 3.5 (which uses 2.0 CLR), but MVC 3 requires .NET 4. No other solution than to install .NET 4 on your server.
Make sure that your app has an application pool configured that runs on .NET Framework 4.0.
To do that select your website and click on Basic Settings... in the Actions menu to the right. This will open a window that let's you choose an application pool.
Related
when am debugging WCF service got the below error? "HTTP Error 500.19 and error code: 0x80070021" Followed below steps to fix it. However, still it didn't work 1]Open server manager 2]Click on Add Roles and Features 3]Select Role-based or feature based installation 4]Select a server from the server pool 5]On right panel 6]Select radio button-> Web server (IIS)-> Application development-> Installed ASP.NET 3.5-> Installed ASP.NET 4.7
I am using visual studio 2017
1]Updated visual studio installer
2]After installing .NET Framework 4.6.2 developer pack
Issue got resolved
I am experiencing trouble running a .Net core web application on a specific Windows 2016 server. The same packages is working on other servers running Windows 2016.
Things done
-Installed all components except CGI in Windows Server (IIS) >>Application Development
-Installed .Net 4.8
Detailed Error Information:
Module
IIS Web Core
Notification
BeginRequest
Handler
Not yet determined
Error Code
0x8007000d
Config Error
Unrecognized attribute 'runallmanagedmodulesforallrequests'
I am trying to set up a web site for my new business, Antech, but I can't seem to get my landing site to point to 'Default.aspx'. Do I have to use IIS and if so does IIS Express work? I am continually coming up with the following error in my Web.config file (to see the actual error you can go to my website here):
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:
Line 24: </connectionStrings>
Line 25: <system.web>
Line 26: <compilation debug="true" targetFramework="3.5">
Line 27: <assemblies>
Line 28: <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
Source File: \\boswinfs07\home\users\web\b341\dom.antechdevelopmen\web.config Line: 26
Version Information: Microsoft .NET Framework Version:2.0.50727.3634; ASP.NET Version:2.0.50727.3634
Thanks for your help in advance!
It could be because of two reasons:
The application pool of your site could be set for .net framework 2.0
.Net 4.0 is not installed on your machine.
Try changing your app pool to 4.0.
If app pool doesn't have 4.0 framework listed, you might want to register it. For same follow below link that shows how to do it.
https://stackoverflow.com/a/4890368/309395
It looks like your application pool is set to .Net framework 2.0.
The targetFramework attribute was only introduced in .Net 4.0. You can either manually remove the targetFramework="3.5" from the config file, or change your app pool to .Net framework 4.0
From http://msdn.microsoft.com/en-us/library/bb398791.aspx :
Visual Studio automatically inserts the targetFramework attribute when you upgrade a project to the .NET Framework 4. It removes the attribute when you change a project's target from the .NET Framework 4 to an earlier version.
I have an old ASP.NET web application on a server, which was developed in Visual Studio 2008 in the year 2008. The server now has .NET 4.0 installed also. When I try to access the web app I get:
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1703: An assembly with the same identity 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' has already been imported. Try removing one of the duplicate references.
Source Error:
[No relevant source lines]
Is there anything I can do to get it to work without access to the original Visual Studio solution? I believe it has to do with the fact that .NET 4.0 is also installed on the server.
1) Have you checked the application pool your application is running under? Is it still .net 2.0 integrated/classic, or has it automagically changed to 4.0? If so, try changin back to 2.0.
2) Do you by any chance have a System.Web.Extensions.dll in the bin folder of the application? If so, try renaming it (similar situation as here)
3) If 1 is not an option and 2 is not the case, do you have any explicit references to the System.Web.Extensions in the app's config file? Are they requesting a different version of the file?
I have still problem with asp.net project. In Visual studio when i start debug it is all good and page working but, when i try it on iis7 showse this error.
SHOW 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: Unrecognized attribute 'targetframework'. Note that attribute names are case-sensitive.
Source Error:
Line 18: </connectionStrings>
Line 19: <system.web>
Line 20: <compilation debug="true" targetframework="4.0" />
Line 21: </system.web> Line 22:
Source File: C:\inetpub\wwwroot\web.config Line: 20
It seems problem with targetFramework but i do not know if i have to configure iis server or something chane in my web-config.
thx.
Change the .NET version on the Application pool for your website.
It must be .NET 4.0, not the .NET 2.0
View a List of Application Pools (IIS 7)
Ensure the application pool is set to use .NET 4.0.
Change your application pool to be compatible with .NET 4.0.
Open IIS then click on an application pool on the list and modify it to use .NET Framework 4.0.