CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.vs_2005_web_application_projects Tags:
Item Type: NewsGroup Date Entered: 7/13/2006 9:36:26 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 52 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
nickpup
Asp.Net User
allowDefinition='MachineToApplication error - IIS 5 to IIS 6?7/13/2006 9:36:26 PM

0/0

I normally work on one box to do my ASP.NET 2.0 development using Visual Studio 2005.  In order to allow me to work off-site, I copied all of my project folders (using XCOPY) to my laptop hard drive.  Now, when I try to resume development with Visual Studio and try to build the site I get this error:

 

Error     101       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.            C:\nick\Projects\WebSites\gscanAsp2\gscanAsp2\web.config       49        

 

I have seen some posts that list this error as being caused by the site not being configured as an application, and doing so solves the problem.  However, in my case, the site is configured as an application but the problem persists.  It is noteworthy to mention that the source site is Windows 2003 server (IIS 6) while the laptop is Windows 2000 professional (IIS 5).  I have tried deleting the site in IIS 5 on the laptop and re-creating it but this error persists.  When I recreate the site in IIS 5, I just point it to the folder which I XCOPY?d.  Can anyone tell me what might be happening?

 

Nick
NickPup
[email protected]
[email protected]
Asp.Net User
Re: allowDefinition='MachineToApplication error - IIS 5 to IIS 6?7/13/2006 11:03:08 PM

0/0

Site is set for the correct version of the framework?  Using a virtual directory or is the app at the site root?

Jeff


Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
nickpup
Asp.Net User
Re: allowDefinition='MachineToApplication error - IIS 5 to IIS 6?7/13/2006 11:46:31 PM

0/0

I checked the framework version.  It was initially incorrect, but I set it to 2.0.50727, which I think is the latest?  I reset IIS and I still have the same error.  Any other ideas?

Thanks,

Nick

 


NickPup
[email protected]
Dan Bailiff
Asp.Net User
Re: allowDefinition='MachineToApplication error - IIS 5 to IIS 6?7/24/2006 8:40:52 PM

0/0

Can't take credit for the idea, but this fixed my problem.

http://blogs.msdn.com/robgruen/archive/2005/09/12/464196.aspx

I converted from 2003 to 2005. I put the backup copy in a subfolder of my virtual directory. The file that was causing problems was the web.config file in my backup folder, not the current valid one.

I moved the backup to somewhere else and had no problems.
4 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
MCAD/MCSD Training Guide (70-315): Developing and Implementing Web Applications with Visual C# and Visual Studio. NET Authors: Amit Kalani, Pages: 1200, Published: 2002

Web:
allowDefinition='MachineToApplication error - IIS 5 to IIS 6 ... allowDefinition='MachineToApplication error - IIS 5 to IIS 6? ... Re: allowDefinition='MachineToApplication error - IIS 5 to IIS 6? ...
allowDefinition='MachineToApplication error - IIS 5 to IIS 6 ... allowDefinition='MachineToApplication error - IIS 5 to IIS 6? Last post 07-24- 2006 4:40 PM by Dan Bailiff. 3 replies. Sort Posts: ...
It is an error to use a section registered as allowDefinition ... Average Rating Rate It (5)Thank you for the rating! RSS. Page 1 of 1 (6 items) ... The IIS MMC has an application configuration section where you can set ...
It is an error to use a section registered as allowDefinition ... Average Rating Rate It (5)Thank you for the rating! RSS. Page 1 of 1 (6 items) ... so you need to go into the IIS MMC and set your directory as an ...
IIS Insider - February 2004 Parser Error Message: It is an error to use a section registered as ... Q: We are migrating to IIS 6 from IIS 5. With IIS 6's Web Service Extensions feature ...
Error after setting up Smarterstats 4 on IIS 6 on Server 2003 ... Error after setting up Smarterstats 4 on IIS 6 on Server 2003. Last post 07-25- 2008 5:30 PM by ST-BGrosz. 4 replies. ...
web.config error allowDefinition='MachineToApplication' with No ... 4. jaime_oliv... 294018. 5. emoreau 240441. 6. mlmcc 227595. 7. Fernando. ... web.config error allowDefinition='MachineToApplication' with No IIS Installed ...
error while browsing web service in IIS6 : The Official Microsoft ... i have deployed the application on the IIS 6. ... requirePermission="false" allowDefinition="MachineToApplication"/> ...
TheMSsForum.com >> Asp >> Precompilation Error allowDefinition ... Ted Tag: Precompilation Error allowDefinition='MachineToApplication' Tag: 404502 ... I have an asp.net application hosting in IIS 6.0 which talks to a ...
IIS Insider - January 2003 IIS 5 however is a different story, and I've often changed the server name ... an error to use a section registered allowDefinition='MachineToApplication' ...




Search This Site:










"reinitalizing" a custom role provider with a new login

powerreports 2.0 available for download

help with creating a custom checkboxlist control

how to dist between 'web forms' and 'html' controls in vs 2005 ide

delete recent projects

the best advanced email and news manager?

failed to start database server.??

any reason why prompt?

multiple pages

automatically assign users roles based on their choice?

rich text editor error - some help please.

asp problem

setup .text on webhost4life

local works, remote doesn't...

nested user controls

migrate staging content to live server (plus upgrade to 2.1.2)

exception management application block - creating custom event log

why ftb doesn't work on dnn 3 ?

v2 loginstatus | path to login.aspx

config replacement does not happen in 'release', identical replacement works in 'debug'

fixing the size of webpartzone

a problem on aspcreateuser

cws's sec pro

webparts and look of web parts when moving

dotnetedit

core pa installer (broken) v3.1.1

help with css for admin template.

generated password not always working

entire site in a frame

login tool not processing

 
All Times Are GMT