developers.de
daenet's .NET Community

ASP.NET_compiler error

Damir Dobric Posts

 

Damir@Phone    



My upcoming sessions:

AppFabric Applications at
NRW Conf 2011
09.Sept.2011 Wuppertal

HTML5 widgets in WP7+
Monodroid
Mobility Day
21.Sept.2011 - Zagreb

AppFabric and WCF sessions at
Advanced Developer Conference
26.-27. Oktober 2011 in Frankenthal

AppFabric Applications, queues, topics and more at
Prio Conference
02. - 03. November 2011 in Meistersingerhalle Nürnberg

AppFabric Applications deep dive hosted by
.NET User Group Frankfurt
17.Nov.2011 18.30-22.30 Microsoft - Bad Homburg 

 

 

Sometimes by using of ASP.NET_compiler following error can occur:

 

error ASPCONFIG: 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.

 

After deep investigation, I found very simple solution. The problem is that the error message is just badly designed.

 

It seems that this error is caused by the argument with the parameter –v, which specifies the virtual directory.

 

Here is an example: 

 

aspnet_compiler.exe" -c -d -v /MyWebApplication -p

D:\\MyProjects\\MyWebApplication -f D:\\DestinationFolder

 

Usualy, the folder D:\\MyProjects\\MyWebApplication is the folder which contains the solution file MyWebApplication.sln.

However the argument –v has to specify the folder which contains the web application and not the solution file, as shown in the following example:

 

aspnet_compiler.exe" -c -d -v /MyWebApplication -p

D:\\MyProjects\\MyWebApplication\\MyWebApplication -f D:\\DestinationFolder

 


Posted Oct 25 2006, 08:48 AM by Damir Dobric
Filed under:

Comments

Mylene wrote re: ASP.NET_compiler error
on 09-21-2011 7:08

This solution solves my problem! Thanks!

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
daenet GmbH