Having all Views in the Shared folder - works but is throwing "caught exceptions". Performance conc
Posted
by Scott
on Stack Overflow
See other posts from Stack Overflow
or by Scott
Published on 2010-04-22T05:53:10Z
Indexed on
2010/04/22
6:03 UTC
Read the original article
Hit count: 275
Hi everyone,
I have a simple but heavily used app done in VS2010/MVC2. I didn't like having separate folders for each view/controller and so have all the views in the Shared folder. It's working fine but while debugging in VS, I noticed that it's throwing IO "caught exceptions" since it seems to be looking in the [FolderName]/[ViewName] folder before going down to the Shared folder.
Again, the app runs fine but I'm concerned that all these "caught exceptions" will have a minor performance impact since they do have a cost in via the CLR. Is there any way I can configure the Routing so that it will only look in the Shared folder?
Thanks.
© Stack Overflow or respective owner