Note that there are some explanatory texts on larger screens.

plurals
  1. POVS 2010 fails debugging: HttpException invalid file name for file monitoring in LoadControl
    text
    copied!<p>I've really been struggling for days on this matter.</p> <p>I have migrated a asp.net 3.5 project in VS2010 to a asp.net 4 project. Everything worked fine for several weeks.</p> <p>Somehow, I get a strange error since a few days. To clarify what this project looks like:</p> <p><strong>The Application</strong></p> <p>It's a UserControl based application and the app areas are composed of nested UserControl Hierarchies, that load their children Controls in <code>OnInit()</code>, in order to get the event system to work.</p> <p>(Note: everything works great in VS2008 and .net 3.5!)</p> <p><strong>The Error</strong></p> <p>Now when I start debugging the webapplication in VS2010, sometimes (!!!), a HttpException is thrown, with the message:</p> <blockquote> <p>Invalid file name for file monitoring.</p> </blockquote> <p>in <code>LoadControl()</code>&lt;- and now it gets interesting, the parameter for LoadControl is a ~/ prefixed UserControl-Path eg. ~/Controls/Home/Partial.ascx BUT in the Exception it is shown as a Directory, somewhere in the Controls Directory.</p> <p>Probably VS uses such an approach to internally track changed files to reload?</p> <p>Has anyone encountered the same issue? If so, have there been any solutions?</p> <p><strong>Edit</strong>: when deploying the webapplication, the error vanishes. It only occurs when debugging. I have currently disabled HttpExceptions in the debug->exceptions menu. But i would be very glad to catch those again too ..</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload