2007年8月6日 星期一

Cannot create/shadow copy 'xxx' when that file already exists.

使用 VS2005 sp1 開發程式時,常常發生如標題的錯誤。 可是,只要再等個30秒,1分鐘,再執行網頁,就可以了。 真是奇怪。 原來,在 vs2005 sp1 上,增加上 copy on write 的技術,可是在xp 上,好像不太管用。 解法: 在 web.config 上設定一下,就可以了 。 不過呢,使用 VS2005 build asp.net 應用程式時,這樣的設定又會出現 vs2003 常見的問題 Error 749 Unable to copy file "obj\Debug\xxx.dll" to "bin\xxx.dll". The process cannot access the file 'bin\BankPro.WEB.EInvoice.dll' because it is being used by another process. EInvoice2 這就了解了為什麼vs2005 sp1有這的設定了

沒有留言:

Share with Facebook