asp.net deploy error , dll exists in both xxx and yyy

Hi ,
I keep get this error message when I simply overwrite all the dlls when do the upgrade.

the error message like this


Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'ASP.modules_residents_residentbase_ascx' exists in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\584cdf26\30bd83dd\App_Web_lyly2owi.dll' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\584cdf26\30bd83dd\App_Web_residentbase.ascx.860c942b.-qdescom.dll'

and to fix the problem , I need to stop the website, delete all files under
c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\584cdf26
and start the website again .

any idea why this keep happen?  I dont want to delete the temp file each time I do the website as the website needs to upgrade very frequently.
GordonLiqAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
0
GordonLiqAuthor Commented:
Hi ,
thank you for reply , my problem is different to that link ,  as my project running well after I delete the temp file and start the IIS again , and I think his project not running at all.

also , he get 2 dll with random name , but I only get one , the strange is I get another dll just for a single .ascx file
App_Web_residentbase.ascx.860c942b.-qdescom.dll
this dll looks not for project , it is only for a residentbase.ascx file.

I have checked and there is not special code for that file
0
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
Ok,

Checking this again http://support.microsoft.com/kb/2028526

I'll discuss with my colleagues when I get to office later today.

Regards
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

GordonLiqAuthor Commented:
Hi,
I think the  Scenario 3 refer to my issue , but the solution is what I want to avoid ,
I dont want to clear the temp folder every time I deploy the website, what I current do is just copy all file to IIS folder and overwrite it.

Description: By default, when an ASP.NET Web application is compiled the compiled code is placed in the Temporary ASP.NET Files folder. By default the access permissions are given to the ASP.NET local user account, which has the high-trust permissions needed to access compiled code. It is possible that there were some changes in the default permissions causing versioning conflicts. Another possibility would be that anti-virus software could be locking an assembly inadvertently.
Solution: Clear the Temporary ASP.NET Files Folder of all contents.
0
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
That's MS solutions, as I said, i'll ask my colleagues when I get to the office.

Regards
0
guru_samiCommented:
Scenario 5 of modifying the web.config has worked well several times for me.
0
GordonLiqAuthor Commented:
that did not apply to me , I seems my problem is when I overwrite the dll files in bin folder.
it create additional temp files,
It usually works fine til earlier this year .

I have to remove the
stop iis
remove the temp file
copy the files to bin folder
start the IIS

that means 3 more steps than before even it works.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.