views:

23

answers:

1

fellow developers,

i've really been struggling for days on this matter.

I have migrated a asp.net 3.5 project in VS2010 to a asp.net 4 project. Everything worked fine for several weeks.

Somehow, i get a strange error since a few days. To clarify what this project looks like:

the application

its a UserControl based application and the app areas are composed of nested UserControl Hierarchies, that load their children Controls in OnInit, in order to get the event system to work.

(Note: everything works great in VS2008 and .net 3.5!)

the error

Now when i start debugging the webapplication in VS2010, sometimes (!!!), a HttpException is thrown, with the message:

Invalid file name for file monitoring. in LoadControl ()<- 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.

Probably VS uses such an approach to internally track changed files to reload? whatever, that drives me insane, and i cannot waste any much more time on this (bug?)

Has anyone encountered the same issue? if so, have there been any solutions?

thanks in advance, Ole

edit: 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 ..

A: 

Not a solution at all, But Clearing all my temp files C:\Windows\Microsoft.NET\Framework\v4\Temporary ASP.NET Files (or something close enough)

Then in the debug menu, go to exceptions, and click all the top level boxes.

No more error. (at least so far)

WTF??? and clearing the temp files alone did not stop the error.

Poker Villain