Installation :: 2008 R2 / IIS 7.5 Fails To Compile .NET 4 Framework's Web.config?
Nov 15, 2010
I'm using IIS 7.5 on Server 2008 R2 to configure a .Net 4-based website. I've used the Web Deployment Tool to import a known-good, 32-bit Windows 7-based IIS server package. As far as I can tell, the 2008-based IIS server and application pool are now properly configured to use .Net 4, and that the server setup is identical to that of the known-good configuration.The problem I'm having is that when I attempt to load a page on the new site, IIS returns a compilation error of the .Net framework's web.config. The error is copied below. It's my understanding that a properly-configured server shouldn't have any problem compiling this file, so I'm looking for some pointers on what I can do to resolve this. I've verified that:
both .Net 4 and .Net 3.5.1 are installed on the server, the 'default' page at http://localhost loads properly http://localhost/Services, the root folder of my application, can be browsed commenting out the offending System.Xml.Linq namespace simply results in a compilation error of some other namespace in the same group.
Server Error in '/Services' Application.
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: CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System.Xml' (are you missing an assembly reference?)
Source Error: Line 400: <add namespace="System.Web.UI.WebControls.WebParts" />Line 401: <add namespace="System.Web.UI.HtmlControls" />Line 402:<add namespace="System.Xml.Linq" />Line 403: </namespaces>Line 404:
Source File: c:WindowsMicrosoft.NETFrameworkv4.0.30319Configweb.config
Line: 402
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
View 1 Replies
Similar Messages:
Apr 13, 2010
I have developed my web app in 3.5 framework and deployed at high config server(15 gb ram). In my app there are some rdlc reports which always throws out of memory exception. each report has around 15-20 pages. rest of pages are working fine. there are 700-800 users hitting this site concurrently. i m checking my server utilization and its never gone beyond 2 gb. wot i need to do so that my app can utilize full memory.
View 2 Replies
Jul 24, 2010
I'm working through the Mvc Music store tutorial on PDF. At page 52, near the bottom, is a line that reads:
<%: Html.EditorFor(model => Model.Album, new {Artists = Model.Artists, Genres = Model.Genres})%>
This line fails with an "unhandled compile" error when I run the program and enter "storemanager/edit/388" in the address bar. I have gone over every bit of code I can find and it compares perfectly to the tutorial.
View 3 Replies
Jun 4, 2010
Several production websites running for months with no problems, all of sudden now fail to compile sporadically.
The compiler will generate errors:
ASPNET: Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl).
On master page code behind files that it did not before.
In addition, this error will go away (most of the time) if we recycle the application pool.
View 2 Replies
Apr 23, 2010
We are developping with .net framework 2.0 on our dev station and we deploy on web server and client desktop a 3 tiers smart client app. what is the impact of ugrading to .net framework 2.0 sp2 on our web servers WITHOUT upgrading on dev station and compilation servers?
View 2 Replies
Jan 19, 2011
I just installed VS2010 and opened the root machine.config and web.config files for review and I found some errors. In machine.config, the following line has errors in both entries for <Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior>. When I hover the cursor over them I get a tooltip text which displays: "The element 'endpointBehaviors' has invalid child element 'Microsoft.VisualStudio.Diagnostics.ServiceModelSink.Behavior'. List of possible elements expected: '...(list of options here)...'. The same problem happens for the second appereance in tag <serviceBehaviors>.
[Code]....
In web.config, there is a tag called <protocols> that has an error with a tooltip text that says "The element 'system.web' has invalid child element 'protocols'. List of possible elements expected: '...(list of options here)...'.
View 2 Replies
Jun 12, 2010
SQL Server Express 2008 R2 installation is failed...plese see the error log ...i gave the password "sa"..please guide me Overall summary Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then rerun SQL Server Setup. Exit message: The specified sa password does not meet strong password requirements. For more information about strong password requirements, see "Database Engine Configuration - Account Provisioning" in Setup Help or in SQL Server 2008 R2 Books Online.
View 1 Replies
Apr 3, 2010
I have installed Visual Web Developer 2008 Express Edition along with SQL Server Express 2008 on Windows Vista and Windows 7. On Windows Vista, when I click the "ASP.Net Configuration" icon in the Solution Explorer and then click on the "Security" link, a new ASPNETDB.MDF file is created in the App_Data folder of any new project I have open. The same actions on my "Windows 7 Ultimate" machine will result in a message along the lines of "Your Data Source is not configured properly. This may be because the server has an invalid name or you do not have the proper credentials or you do not have the proper permissions"(not at Windows 7 machine right now so this isn't verbatim)
View 4 Replies
Apr 9, 2010
On Windows XP I installed the .Net Framework 2.0 and my test aspx page worked fine. I then installed the .Net framework Service Pack 2 and then it breaks .Net. I get a Server Unavailable message and when I run aspnet_regiis -i I get a C0000005 error with message 'The Application failed to initialize properly.'
FYI, I have Symantec Endpoint Protection installed on my PC.
View 2 Replies
Aug 9, 2010
I made a change in my machine.config for a 1.1 application and then later I upgraded the application to .Net Framework 3.0/3.5. Will that configuration change still apply or do I have to make that change in my local web.config for the 2.0 machine.config/web.config?
View 1 Replies
Oct 11, 2010
I am looking at developing using Visual Studio 2010/2008 and SQL Server 2008 on Windows 7. Should I be able to do this on Windows 7 Professional, or do you need Windows 7 Ultimate?
View 2 Replies
Sep 9, 2010
I recently bought a new computer, so I want to copy the projects into current system which has visual studio. I have a project developed in VWD 2008. I copied the folder into a flash drive and copied it back into the new system.
Knowing the location, how I do import the project into new system?
View 1 Replies
Jan 6, 2011
I have two questions, could anybody please answer to those:1) Do I need to install Dotnet framework 2.0 if dotnet framework 3.5 is already installed on the same server?2) Also do I need to install "ASP.NET 2.0 AJAX Extensions 1.0" if higher version is installed on the same server?
View 8 Replies
Mar 31, 2010
I am trying to open an existing asp.net app. on my local machine with VS2008. The app. resides in a folder on the Windows 2003 Server. The app. runs on our intranet. Recently, a change was made to the app. directly by opening one of the files in the solution and adding maybe a couple of lines of c# code and saved back. Of course this would not make a difference as its not been re-compiled.
I copied the whole folder where the app. resides on the server to my desktop and then tried to open the solution with VS2008, it came up with a prompt saying the app was written using a previous version of Visual Studio and needed to be converted to VS2008 format, I followed the intructions, but it failed saying something like "...failed to make a backup etc", it wouldn't open the solution.I have successfully open other apps this way but this one particular one would not just open. All I want to do is to use VS2008 to recompile and publish back to the server. I have tried using VS2005, it just says the app. was created by a newer version of the application...
I think the app was built sometime btw 2004 - 2008. Also, if it is relevant, the folder where the app. resides on the server has a globe icon, don't know if its an IIS thingIs there any other way to compile this .net app. without using VS2008,
View 1 Replies
Jul 15, 2010
My question is let's say I have "MS Windows Server 2003 R2 with IIS v6".And in this server, I have .Net Framework 1.0 (For my VS2003 Web Sites),
.Net Framework 1.1 (For my VS2005 Web Sites) and .Net Framework 2.0 (For my VS2005 Web Sites).And now I have a web project written in VS2008 with framework 3.5. And I'm planning to put this project in this local server (as Intranet site).
View 2 Replies
Jun 18, 2010
Can I use .Net Framework 4 with IIS 5.1 and Windows XP?
View 2 Replies
Jan 14, 2011
I have installed the stand alone version of .NET framework 4.0. If I open my visual studio he doesn't see that .NET 4.0 is installed. Also I have some problems to install SQL server 2008 R2 with would be related with this problem. It would like that windows 7 not see it.I have windows 7 64 bit home PremiumAny sugestion would be welcomI have also try the repair installation but nothing works
View 9 Replies
Aug 25, 2010
I need to update dot net framework on our server that has the 2.0 version from 3.5...I want to know if there are known issue that could happen on updating the version. And if my intranet site will still work.
View 8 Replies
Dec 8, 2010
I need to ask this question.I registered websitespark program and I have some tools.I have Server 2008, VS 2008 etc.I want to install Server 2008 and VS 2008 but I never use them together before. What are the advantages and disadvantages and also performance? We are developing web and win applications.
View 1 Replies
Oct 31, 2011
I have a VS 2008 solution. I need to copy an existing .aspx page and re-name it to something else (need to make modifications to that newly copied page). But I keep getting compilation errors saying that duplicate text boxes exist. Can't I have control on different .aspx pages with the same name? How can I do this elegantly?
View 4 Replies
Jan 16, 2010
I have an app that I've built with VS 2008 Pro, which I believe uses version 3.5 of the .Net Framework. I want to run this app on an older machine to test the layout with some older browsers. The site is simple static site. This older machine doesn't have version 3.5 of the framework installed.
If I install just the 3.5 Framework on this older machine, can I then run the site in the browser without having VS2008 or VWD 2008 installed? I want to tweak the css in for the older browsers.
View 2 Replies
Jul 26, 2010
I found instructions on here last week that listed the specific directory from which to run REGIIS via a command prompt, but can't find the thread.
View 1 Replies
Jun 23, 2010
I tried several times to install .NET Framework 3.5 and Visual Studio 2008 on my machine. I am getting an error during installation Set Up.exe has stopped working and the installation fails. I am using windows vista. Is there any way to solve it and install Visual Studio 2008. I was running Visual Studio 2005 before and I unintalled it completely.
View 5 Replies
Jun 6, 2010
We have an ASP.NET forum (Community Server) installed in a subdirectory of a site. For some odd reason we occasionally get:
Login failed for user 'NT AUTHORITYNETWORK SERVICE'
If we open the web.config file and save it again without modifying anything in it, the login works again. This happens with intervals of 1-3 days.
View 3 Replies
Jun 7, 2010
I think I did something stupid recently. I tried out the new vs2010 and probably changed settings to the newer version of the .net framework. My asp.net pages are working normally as before locally on my machine, but after I uploaded my web.config file to my ISP, the same pages are not working online.The version of asp.net my ISP has is 2.00.50727. I can upgrade that to 3.0 for an addional cost, but how do I revert back to my previous version, is this done in the wetb.config file perhaps?
View 3 Replies