Vulnerability in EPiServer.Forms
When I debug a EPiServer site (can be a big on, or a simple Alloy, appear in both) I pretty often get this error:
Compiler Error Message: CS0042: Unexpected error creating debug information file 'c:\Users\henrikf\AppData\Local\Temp\Temporary ASP.NET Files\root\48cc1a09\924c59a0\App_Code.PDB' -- 'c:\Users\henrikf\AppData\Local\Temp\Temporary ASP.NET Files\root\48cc1a09\924c59a0\App_Code.pdb: The process cannot access the file because it is being used by another process.
This often happens if I for example do a change in a view and then try to see the change without stopping the debugger.
I have never seen this when developing clean websites without EPiServer so I am thinking that it can have something to do with EPiServer.
Anyone know more about this?
I have never experienced this error. However one of the first tasks I normally do is attach my site to IIS rather than use IIS Express. From your temp file path I am guessing you are using IIS Express? Do you get the same error when running on local IIS (If my guess was right ;)!).
it is true that I use IIS Express.
I use it mostly because it is easier than use IIS since it does not require me to start Visual Studio as an administrator and it also does not require a license file.
I will try using the local IIS instead and see if it goes away
Does it help if you remove optimizeCompilations="true" from web.config?
I've seen this while debuging non-EPiServer sites. So I speculate that it may be Asp.Net related and not EPiServer..
Ok, thanks Valdis, I have not done that but I have probably not debug so many other sistes like you have.
But is is good, since it is more likely that someone else has found out what's causing it.