SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast xarzu's Avatar
    Join Date
    Apr 2007
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do you clear temporary files in an ASP.NET website project?

    How do you clear temporary files in an ASP.NET website project?

    I have been building and rebuilding an ASP.NET program.

    I made the horrible mistake, I think, of recently copying the published content back to the folder I was developing.

    So now I have an unusual error when I build the code. It says That there is a duplicate definition in one file in a temporary directory with anohter file in a temporary directory.

    Error 3 The type 'ChildEventHandler' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\assembly\dl3\c4cf1ea3\b6e4b808_ef7cce01\App_Code.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files...\b90cc7a4\28d266b\App_Code.asx5jp5d.dll' C:\inetpub\wwwroot...\Resources\usercontrols....ascx.cs 11 18 C:......\

    I removed project and file names, of course, but this is basically what the error says.

    Since the error is with temporary files, what should I do?

    I do not see a "clear" option in visual studio to clear out the files of a compile.



    how do you clear.png

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,064
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    I believe you need to stop IIS, go to c:\Windows\Microsoft.NET\Framework\v4.0.30319\, open the Temporary ASP.NET Files and delete the folders within it. Start IIS again, and re-compile your project.
    Be sure to congratulate Patche on earning July's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •