User control error. Is anybody can help? Options
JKL
Posted: Wednesday, April 25, 2007 1:08:32 PM
Rank: Newbie

Joined: 4/25/2007
Posts: 1
I use umbraco 2.1. Try to use user control on my pc (It works on another).
Place dll and ascx files in the coresponding folders. When I try to get properties, I get an error:

Error reading /usercontrols/TestWebUserControl1.ascx
The following list shows the Public Properties from the Control. By checking the Properties and click the "Save Properties" button at the bottom, umbraco will create the corresponding Macro Elements.



System.Configuration.ConfigurationException: 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. (E:\net\Definition6\VesdiaWeb_Umbraco\VesdiaWeb\web.config line 46) at System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) at System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) at System.Web.HttpContext.GetCompleteConfig() at System.Web.HttpContext.GetConfig(String name) at System.Web.UI.CompilationConfiguration.IsBatchingEnabled(HttpContext context) at System.Web.Compilation.PreservedAssemblyEntry.BatchCompileDirectory(HttpContext context, String baseVirtualDir) at System.Web.Compilation.PreservedAssemblyEntry.GetPreservedAssemblyEntry(HttpContext context, String virtualPath, Boolean fApplicationFile) at System.Web.UI.TemplateParser.GetParserCacheItemFromPreservedCompilation() at System.Web.UI.TemplateParser.GetParserCacheItemInternal(Boolean fCreateIfNotFound) at System.Web.UI.TemplateParser.GetParserCacheItemWithNewConfigPath() at System.Web.UI.TemplateParser.GetParserCacheItem() at System.Web.UI.TemplateControlParser.CompileAndGetParserCacheItem(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControlParser.GetCompiledType(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.UserControlParser.GetCompiledUserControlType(String virtualPath, String inputFile, HttpContext context) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at umbraco.developer.assemblyBrowser.Page_Load(Object sender, EventArgs e) in C:\data\umbraco\umbraco2.1\umbraco\presentation\umbraco\developer\assemblyBrowser.aspx.cs:line 47


Close window
Ulriksen
Posted: Thursday, April 26, 2007 10:38:17 AM
Rank: Devotee

Joined: 9/12/2006
Posts: 38
Some quick questions

On the other machine, is umbraco running as web-root?
Have you tested running umbraco as webroot on your own machine?
Is the virtual directory it's running in set to be an application in IIS management console?

Cheers,
Harald.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.