VS 2005 SP1 + .NET AJAX => automatically adds web.config in nested Web Application Project when opening project or solution

I get a 'Configuration Error' on an aspx page because VS added automatically a web.config to my nested Web Application Project where no web.config file should be.

This effect I have noticed since I have installed SP1 and .NET AJAX Extensions.

Why is VS 2005 adding the web.config file and how can I disable this behavior?

Following is the content of the automatically added web.config file (comments omitted):

<?xml version="1.0"?><configuration>
        <compilation debug="true">
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>

        <authentication mode="Windows"/>

Following is the exeception shown in browser:

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 20:             ASP.NET to identify an incoming user. 
Line 21: -->
Line 22: <authentication mode="Windows"/>
Line 23: <!--
Line 24: The <customErrors> section enables configuration

Thank you in advance.
4/27/2007 10:37:38 AM
asp.net.vs2005-webapp-projects 1239 articles. 0 followers. Follow

1 Replies

Similar Articles

[PageSpeed] 56

Most likely it is looking for a reference to the System.Web.Extensions.dll. What happens if you move the reference to System.Web.Extensions to the web.config file in the parent web?

                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies>


Bill Hiebert

Visual Studio Web Tools
5/2/2007 3:38:40 PM

Similar Artilces:

VS 2005 Web Application project >> Web Site project
Hello,I am trying to do the uncommon, change a VS 2005 Web Application project (originally a converted 2003 Web Application project) to a VS 2005 Web Site project. There are many tutorials on how to either take a 2003 Web Application project, or 2005 Web Site project and turn them into into a VS 2005 Web Application project. (Not what I'm looking for)Also, is it possible to convert a 2003 Web Application project to a 2005 Web Site project. (too late for my current projects.... but for future refernce) Many thanx     There may very well be a reason why the road o...

Website Project vs. Web Application Project in Visual Studio.net 2005
 Website Project vs. Web Application Project in Visual Studio.net 2005 What are the main benefits of using a Web App project over a Website project or vice-versa? Web App Project: You have to jump through hoops to use edit and continue with a Web App where in a website it just works. I’ve figured this out with the help of ScottGu. Thanks! http://weblogs.asp.net/scottgu/archive/2006/05/08/VS-2005-Web-Application-Project-V1.0-Released.aspx Web App Project: what are the *.aspx.designer.cs files for? Website Project: how do you set up the project to use a ...

Migrating from VS 2005 Web Site Projects to VS 2005 Web Application Projects witn vb and c# code
I've tring to migrate Web Site to Web Aplication in VS 2005. In my Web Site I have pages written using VB and C#. During converting to WA i choose VB and only pages with VB code i can migrate. If I choose C# as language for WA only pages with C# I can migrate. Is a way to migrate Web Site with mix of VB and C# code? Wieslaw Hi, As far as I know, The ASP.NET Web application doesn't support that C# application project contains VB page or VB application project contains C# page. But it can compile the different language class file in project. In your case, you can tr...

Web Application Projects vs. Web Site Project- Where is Copy Project?
I have opted to use the Web App Project in 2005 (The 2003 Model)http://msdn2.microsoft.com/en-us/asp.net/aa336618.aspxWhy is the copy project missing when this model is used? It was there in 2003?Thank you,Patrick http://www.SURFThru.com   SURFThru.com I wanted to bump this topic again to see if any Microsoft techs had any input on this item.SURFThru.com...

VS. 2003 => VS 2005 Web Site => Web Application Project?
Hi We converted our VS 2003 solution which contained 2 web application and 5 Class Lib projects to the standard Web site 2005 model. Now. Is there a way to convert from this to the new Web Application model automatically? Thanks in regards Anders   Via Scott Guthrie:  If you want to migrate an existing VS 2005 Web Site Project to be a VS 2005 Web Application Project, please also review these other VB and C# migration tutorials that walkthrough the Web Site to Web Application conversion process step-by-step.  This article here also describes some of the diff...

Can I open a Web Project application after I install Web Applications Projects?
I have installed the Web Application Projects addin to my VS 2005.  I have used it to convert a web application that was written in VS 2003 to VS 2005. Now I want to open a Web Project application written by another developer on our team.  The Web Project is save in SourceSafe.  When I try to open the Web Project from SourceSafe I get an error "There are no solition or project files in the this location.  Please select a different location".  Am I geting this error because I have the Web Applications Projects installed?  Do I have to uninstall it to work o...

Copying VS.NET web project to Win 2003 and opening it in VS.NET
Hi all, Environment: ASP.NET 1.1; VS.NET Enterprise 2003; Windows Server 2003; IIS 6.0 I hope somebody can help me figure this out. I created a Web project on my XP Dev machine which I can open, run, debug and do everything else. I can "deploy" the project to my 2003 server and open the site in explorer browser. But now, I want to transfer the whole solution to my Win 2003 and continue the development and testing on it. So, I transferred the whole VS solution directory from my XP machine to the Win 2003 machine. I created a Web site (not a virtual directory under default...

Migrating 2005 AJAX-Enabled Web Site to 2005 SP1 Web Application Project
Maybe I had a poor subject line in my last post.  Maybe I am too impatient, but this stuff shouldn't be that difficult...Has anyone else had difficulties converting a 2005 AJAX-Enabled web site to 2005 SP1 Web App Project?  Specifically with UserControls or Server Controls and User Controls inside AJAX Update Panels? I have been trying to upgrade my existing VS 2005 Web Site to a Web Application (that comes with SP1).  I followed Scott's migration tutorial [ http://webproject.scottgu.com/CSharp/Migration2/Migration2.aspx ] but I have many problems regarding ...

Open project Vs Open project from web
what is the difference when opening ASP .net application in VS .net Thanks in advance feed the creative machine I usually have to use Open Project from Web when I'm adding an existing web project to a different solution. I usually use Open project to directly open either the solution or the project.Eric LandesMADNUG President http://www.madnug.netCrystal Alliance EditorBlog http://aspadvice.com/blogs/elandesMicrosoft MVP Open Project: we browse to the Physical path of the solution (it search the virtual path in the end) Open project from web: we give the virtual path of the proje...

Web project error when trying to open a .net project
I am very new to this & drowning. I created a very simple web project with the ext of .vbproj. If I double clik on it I go into visual studio with no problem BUT if I try and open another project also with .vbproj extension I get the message that it's a web project & that I need to open using it's URL path. File, open project gives me the same message & if I try File, open web project - even tho it's looking for files of type *.vbproj - it does not see the file. How do I open it & how was it created?...

How to deploy web project in VS 2005 using web setup project
I have developed a new .NET Web application in C#. It is working find in localhost, i want to deploy the application to the production server. Please let me know what are the steps i need to follow to create an MSI file with VS.NET Installer in VS 2005. When i am trying to create a websetup project with a new solution option, it is not giving me the primary output file selection, i mean to say i am not at all getting the list of resources to select in the drop down list and also my project in the projects drop down list. Please some boyd help me and tell me is there any thing need to be done...

Problem when deploying Web Application project over VS2005 Web Site project
Hi,  we ran into this issue yesterday evening when we were trying to deploy new code on production box. It was running previous version of our app that was VS 2005 Web Site project, but the new version was migrated into Web App project. New build was tested on sandbox and even on the same production machine (but under different, non public web site configured there) and was working fine. However, when we deployed on production web site, we got this error:Compiler Error Message: CS0246: The type or namespace name 'ProfileCommon' could not be found (are you missing a using directi...

Which is best web application projects or Web site projects in VS 2008
Hi, Using VS.NET 2008 We are developing a web based product (inventory, accounts,etc). This product has DA, BO layers. We are currently using web site project model. We are using webdelopyemnt project for deploying at client place.I want to know that, which model Web site model or web applicaton model is a best model for applications?I read most of the blogs and also articles for knowing difference between these two models.  But I am not coming under conclusion.Let me know your views and alos best answers Regards S. Muhilan   As you probably know, the difference between...

vs.net 2005 Solutions and Projects question
kinda confused. I have this folder called C:\PROJECTS with a bunch of projects .. some are websites, some are webservices, one is a console ap, another is a Data Access layer (I presume classes). I'm suppose be taking over support for this code so the folder was dropped off on my local machine. Somehow, the prior developer was working on all of these under one solution, but i don't see a solution file anywhere. Also, everything appears to be under version control. If I attempt to open one of the projects, i see dependancies that are failing, by virtue of the underline and name XX...

Web resources about - VS 2005 SP1 + .NET AJAX => automatically adds web.config in nested Web Application Project when opening project or solution - asp.net.vs2005-webapp-projects

Piccolo Automatically Sends Users Prints Of Their Photos On Facebook, Instagram
... a popular day for debuting Instagram applications and services, as startup Piccolo announced its beta launch, aimed at allowing users to automatically ...

Facebook Status Update Tagging Now Automatically Suggests Matches for People, Pages and Other Content ...
Facebook has just changed its status update tagging tool to automatically display a drop-down menu of friends, Pages, events and groups you might ...

Meekan - schedule meetings and events automatically on the App Store on iTunes
Get Meekan - schedule meetings and events automatically on the App Store. See screenshots and ratings, and read customer reviews.

Does Google see automatically generated content as a bad thing? - YouTube
Does Google see automatically generated content as a bad thing (i.e. spam)? If I publish uncopyrighted content on my site that is available from ...

Emailing porn at work not automatically sackable, court finds
The federal court has upheld a ruling that found emailing pornography in the workplace is not automatically a sackable offence.

Emailing porn at work not automatically sackable, court finds
Australia's federal court has upheld a ruling that emailing pornography in the workplace is not automatically a sackable offence.

Shazam iPhone app now listens for music, TV shows automatically
Shazam has updated its iPhone app to tag songs, TV shows and more on its own, no longer requiring users to open the app and tap a button.

App of the day: Human for iPhone automatically tracks your movements
Human for the iPhone is an activity tracker that automatically distinguishes between different types of movement.

iPhone 5 automatically rotates using Cycloramic App. - YouTube
[NEW VIDEO] Cycloramic 2.0 update teaser vid with panoramic photo preview: http://www.youtube.com/watch?v=cjHUID07xs4 Cycloramic has been Awarded ...

Resources last updated: 1/15/2016 9:59:13 PM