![delete a dll file delete a dll file](https://thegeekpage.com/wp-content/uploads/2020/05/featured-image.png)
Version versionNumber = _assembly.GetName().Version ĬompleteVersionNumber = versionNumber.Major + "." + versionNumber.Minor + "." + versionNumber.Build + "." + versionNumber. it might have protection such as read only or system attributes. block of code where i trying to get my version number of the dllĪssembly _assembly = Assembly.LoadFrom(ConfigurationManager.AppSettings) Result = CopyFileAndFolder(backupFolder, destBackUpFolder) ĮrrorMsg = "Copy process Failed,Your File has rolled back to previous version" ĮrrorMsg = "Error during roll up process" tryĭirectoryInfo folderToBeDelete = new DirectoryInfo(destBackUpFolder) ĭirectory.CreateDirectory(destBackUpFolder)
#DELETE A DLL FILE FULL#
I have tried suggestion from web by setting the file attribute to normal and delete file by file, check my permission and make sure my permission is allowed to delete file but all those method doesn't work, Why am I getting unauthorized exception even my permission is set to full control? FYI, I am using Team Foundation Server for my development version control, Is the problem here related to my TFS? Thanks in advance. Now go to the DLL file, right click on it and select Delete, this action will send the file to the recycle bin.
![delete a dll file delete a dll file](https://www.tricksway.com/wp-content/uploads/2016/08/dll-not-able-to-delete.png)
![delete a dll file delete a dll file](https://i.redd.it/jiifwgdyafl61.jpg)
Now you must replace dllname with the name of the DLL file you want to remove and finally click OK. Except there was this one file labeled steamapi.dll. regsvr32 / u C: \ Windows \ System32 \ dllname.dll. I'm trying to delete all file from destBackUpFolder, the result is all files are deleted from the folder except 1 dll file, I get a Unauthorized Exception said that access to the dll file is denied. So I downloaded this rar file and extracted it, but realized it wasnt what I wanted, so I deleted it.