Free Download:
|
| |
| grmAbay | Asp.Net User |
| Dynamic control | 5/6/2004 2:56:41 PM |
0/0 | |
|
Hello,
I've got a strange thing happening to my website. I am putting controls dynamically on my webpage, depending on user interaction.
The first few times, this works ok. When I come back a day later, some pages don't work anymore and return an error message. I then open my web.config file, do some dummy change, save it, and everything works ok again for a few hours. What's whrong?
This is the error message, it appears exactly where I expected the custom user control:
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. (c:\inetpub\wwwroot\ZeescheldeBrowser\web.config line 6) 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 Com.Amecspie.Zeeschelde.Browser.Pages.Main.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\ZeescheldeBrowser\Home\Main.aspx.cs:line 32
|
| grmAbay | Asp.Net User |
| Re: Dynamic control | 5/13/2004 3:03:50 PM |
0/0 | |
|
I now did a few tests.
I set a breakpoint on my aspx Page_Load event handler at
UserControl userControl = (UserControl) LoadControl(ControlPath);
In my watch window, I added
HttpContext.Current.ApplicationInstance.Server.MapPath(ControlPath)
System.IO.File.Exists(HttpContext.Current.ApplicationInstance.Server.MapPath(ControlPath))
Each time a user control was loaded this way, I could check if the ascx file really existed. No problem. The path was correct, and the File.Existst() always returned true.
Just to remind you:
1) The program works fine for a while. To me this means that the code is not at fault.
2)After a while, it doesn't run anymore for SOME controls. The page_Load of the aspx page gets triggered, the Page_Load of the faulty controls not anymore, because an exception is raised BEFORE the Load event of the control.
3)When I modify my web.config file in a trivial way (removing a parenthesis, then adding it again, then saving the file), the application runs smoothly again. (goto 1 ;-) )
I am at a loss here. I could send you the code like stated above. If you would be so kind as to try it out, that would be great. |
|
| |
Free Download:
|
Books: Structural Dynamic Systems Computational Techniques and Optimization: Dynamic Analysis and Control Techniques Authors: Cornelius T. Leondes, Pages: 324, Published: 1999 Control and Dynamic Systems: Advances in Theory and Applications Authors: Cornelius T. Leondes, Pages: 371, Published: 1980 Dynamic Control of Quality in Production-inventory Systems: Coordination and Optimization Authors: David D. Yao, Shaohui Zheng, Pages: 218, Published: 2002 Dynamic Programming and Optimal Control Authors: Dimitri P Bertsekas, Pages: 2, Published: 1995 Control and Dynamic Systems: Advances in Theory and Applications, Part 2 Authors: Cornelius T. Leondes, Pages: 318, Published: 1990 Control and Dynamic Systems: Advances in Theory and Applications Authors: Cornelius T. Leondes, Pages: 384, Published: 1978 Optimization Over Time: Dynamic Programming and Stochastic Control Authors: Peter Whittle, Pages: 0, Published: 1982 Control of Uncertain Dynamic Systems: A Collection of Papers Presented at the International Workshop on Robust Control, San Antonio, Texas, March 1991 Authors: Shankar P. Bhattacharyya, Lee H. Keel, Pages: 524, Published: 1991 Web:Dynamic Control The most trusted name for ultimate sound and noise control. Acoustic solutions for car audio, hot rods and home theater. Dynamat is recognized by consumers ... Dynamic Control : Home Specializes in manufacture and supply of off-the-shelf and custom tools for test engineers and technicians, with some focus on automotive testing and engine ... Dynamic Control Systems Dynamic Control Systems provides custom controls for industry leaders nationwide . 2008 ASME DSCC Dynamic Systems and Control Conference DSCC-2008 Information for the 2008 Dynamic Systems and Control Conference. BMW M3 Coupé : Dynamic Stability Control (DSC) Thanks to Dynamic Stability Control (DSC), the BMW M3 Coupé impresses with its stable handling even in critical situations. MIT OpenCourseWare | Electrical Engineering and Computer Science ... 6.241 Dynamic Systems & Control. Fall 2003. Open loop feedback system. Open loop feedback system, with an input (r), output (y), and functions K(s) and P(s) ... ASME : Dynamic Systems & Control Division - About DSCD Concentrates on control methods and devices, from servomechanisms and regulators to automatic controls, for dynamic systems involving forces, motion and/or ... Journal of Dynamic Systems, Measurement, and Control Journal of Dynamic Systems, Measurement, and Control Cover. Editor:. Suhada Jayasuriya Texas A&M University. ISSN: 0022-0434. eISSN: 1528-9028 ... Dynamic Layout Control Tutorial details:Written by: Jed Wood (usableFlash.com) Time: About 15 minutesDifficulty Level: IntermediateRequirements: Flash MXTopics Covered: Stage ... Textbook: Dynamic Programming and Optimal Control The leading and most up-to-date textbook on the far-ranging algorithmic methododogy of Dynamic Programming, which can be used for optimal control, ... Videos: ACT pt1: dynamic control of effects, instrument, and mixing SONAR 6's innovative new Active Controller Technology™ will forever change the way you work with instruments, effects, and mixing. Hosted by Cakewalk... ACT pt2: Dynamic Control of Effects, Instruments, and Mixing SONAR 6's innovative new Active Controller Technology™ will forever change the way you work with instruments, effects, and mixing. Hosted by Cakewalk... Dynamic Control Systems Dynamic Control Systems is Providing
Services in the Los Angeles,CA area. Dynamic Deeds Media: dynamic control image upload tutorial The is a tutorial that explains how to add an image to your Dynamic Control website.
More info: http://dynamicdeeds.com ONLINE DRUM TUTORIAL #3: DYNAMIC CONTROL ~ MASTERING THE TABLES OF TIME 04/08 McNally Smith College of Music Masterclass, focusing on musical phrasing with Dynamic Control Studies, from Ch. 1 of MASTERING THE TABLES OF TI... Technical Briefing Number 6 - Third and Fourth Dynamic Hats the people who are in power on the planet believe that if they could control what you think, then you are totally under control. And in actual fact, ... Low g Inertial Sensors for Vehicle Dynamic Control Low g inertial sensors for vehicle dynamic control on display at Freescale Technology Forum 2008. Boston Dynamics: LittleDog The Legged Learning Robot
LittleDog is a quadruped robot for research on learning locomotion. Scientists at leading institutions use LittleDog to pr... dynamic control: image upload The is a tutorial that explains how to add an image to your Dynamic Control website.
More info: http://dynamicdeeds.com Dynamic Control of Nonholonomic Wheeled Mobile Robot(1) Dynamic Control of Nonholonomic Wheeled Mobile Robot |
|
Search This Site:
|
|