views:

1170

answers:

3

Hi All,

I've created a couple of custom web parts and put the DLLs in the /bin folder for testing. I now want to delete the DLLs from the /bin folder but I keep getting the following error:

Cannot delete xxxxx: Access is Denied Make sure the disk is not full or write-protected and that the file is not currently in use.

I can rename the DLL files, so they arent completely locked, however if I do I get the error Could not load file or assembly 'xxxxxx' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) displayed in the browser when load the site.

Any ideas?

Thanks,

Charlie

+1  A: 

Take a look at the "deleting web parts" section of this document, it explains the process for removing the webpart so it is not referenced any more: http://technet.microsoft.com/en-us/library/cc288254.aspx

dar
+3  A: 

They are probably locked by IIS. Try this:
iisreset /stop
(delete them)
iisreset /start

strongopinions
A: 

dar - I'd tried that already, but it didnt work. I think the reason was that it was a dll in the bin folder rather than a web part that had been deployed to the GAC

strongopinions - iisreset /stop - iisreset /start worked grat. Thanks alot.

Charlie

Sounds like strongopinions should get credit for the answer. You are apparently new to Stack Overflow, but try to click the large check to the left of his response.
Kirk Liemohn