Windows error 0x80070020, -2147024864

Detailed Error Information

SHARING_VIOLATION[1]

MessageThe process cannot access the file because it is being used by another process.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code32 (0x0020)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00000020.

Questions

139votes
29answers

"Unable to launch the IIS Express Web server." in Visual Studio

I attempted to run my web service through visual studio. I faced an issue like : --------------------------- Microsoft Visual Studio --------------------------- Unable to launch the IIS Express Web server. Failed to register URL "http://localhost:63591/" for site "xxxxxx" application "/". Error description: The process cannot access the file because it is [...] read more
visual-studio
iis-express
76votes
3answers

Unable to start web site IIS HRESULT: 0x80070020)

I'm trying to publish a web site with a self-created SSL certificate on my own IP. After I added the web site to the IIS and tried to run it, I get this error and I'm unable to start the web site. > Internet Information Services (IIS) Manager - The [...] read more
asp.net
iis
ssl
webserver
58votes
5answers

Applying SSL certificate in IIS manager and "The process cannot access the file because it's being used by another process" error

I applied a self-signed SSL certificate in IIS manager to Default Web Site(added the HTTPS binding) and after that when I'm trying to start the web site, I'm getting the following error message: "The process cannot access the file because it's being used by another process. (Exception from HRESULT: 0x80070020) [...] read more
iis
ssl
13votes
5answers

Seamless deployment in ASP.NET (IIS kills worker process before new worker process is ready)

I am trying to deploy a .NET Web application to IIS (7.5) without any hassle for the users. I have made sure that Disable Overlapped Recycle is False but i still run into the same problem every time. Every time I upload new binaries for the site, IIS kills the [...] read more
asp.net
iis
deployment
worker-process
12votes
2answers

Is smooth deployment possible with componentized ASP.NET MVC apps?

That's probably not MVC specific, it might as well applicable to ASP.NET WebForms, but we've been experiencing it on MVC2 so far. Whenever we start remote deployment with MSDeploy we get a brief (5-6 seconds of) "server error" page for our requests until new deployment takes place. Here is the [...] read more
asp.net
asp.net-mvc
iis-7
8votes
0answers

After ClickOnce update, "...cannot access the file because it is being used by another process" for an assembly

Problem description I support a WPF ClickOnce deployed application. The application has a feature that reports exceptions to me by email. After each deployment, I usually get one or two exception reports like the one shown below. There are fewer than 100 users. The call stacks are not identical. It [...] read more
c#
clickonce
7votes
3answers

Loading the TypeScript compiler into ClearScript, "WScript is undefined", impossible task?

I tried using ClearScript to load the TypeScript compiler in order to compile some basic TypeScript code. Unfortunately, when executing the TypeScript compiler source I get this error: > 'WScript' is undefined This is the LINQPad program I've used, place the ClearScript dll's and the TypeScript compiler file alongside the [...] read more
c#
.net
typescript
windows-scripting
clearscript
6votes
1answer

Could not load file or assembly '' or one of its dependencies. The process cannot access the file because it is being used by another process

I have just bought a new development machine and have taken the latest version of the source code of a project we are working on but when I try to debug it I get the following error: Could not load file or assembly 'Business' or one of its dependencies. The [...] read more
asp.net-mvc
.net-4.5
azure-cloud-services
6votes
2answers

Emulate waiting on File.Open in C# when file is locked

I have, essentially, the same problem as this poster, but in C#: Waiting until a file is available for reading with Win32 More information: we have code that calls File.Open in one of our projects, that occasionally dies when the file is already opened by another process (EDIT: or thread): [...] read more
c#
file-io
.net-2.0
filestream
ioexception
5votes
0answers

How do I fix a non-starting "Microsoft Key Distribution Service"? (not to be confused with Kerberos KDS)

The Microsoft Key Distribution Service is not starting on my DC (kdssvc.dll) and when I look at the event log under Microsoft\Kdssvc, I see the events: > Event ID 4001 Group Key Distribution Service failed to start. Status > 0x80070020. > > Event ID 4007 > Group Key Distribution Service [...] read more
windows
active-directory
domain-controller
bitlocker
managed-service-accounts
5votes
2answers

Configure IIS Web Site for alternate Port and receive Access Permission error

When I configure IIS to run a Web site on Port 1414, I get the following error: > --------------------------- Internet Information Services (IIS) Manager > --------------------------- The process cannot access the file because it is > being used by another process. (Exception from HRESULT: 0x80070020) However, as according to netstat [...] read more
iis
windows-server-2008-r2
5votes
7answers

Unable to launch IIS Express Web server

Everytime I try to debug my asp.net website I get this error: > Unable to launch the IIS Express Web server. > > Failed to register URL "http://localhost:50010/" for site "SociopackWebAPI" > application "/". Error description: The process cannot access the file because > it is being used by another [...] read more
asp.net
iis
4votes
1answer

Exception thrown, except if run after breakpoint

I am running into some odd behavior when attempting to delete a file. Below is a quick code sample: if (File.Exists(filePath)) { File.Delete(filePath); } The odd behavior is a System.IO.IOException is thrown when attempting to delete the file: > System.IO.IOException > HResult=0x80070020 > Message=The process cannot access the file > [...] read more
c#
.net
debugging
breakpoints
4votes
0answers

Error signing output with public key from file snk - The process cannot access the file because it is being used by another process

Recently installed Visual Studio 2017 and opened an existing solution (previously opened in Visual Studio 2015). Everything seems to open fine. I can see the solution, files, edit files, etc... However, when I attempt to build the solution, I get the following error: > Error signing output with public key [...] read more
visual-studio
visual-studio-2017
4votes
2answers

Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5). I've uninstalled & reinstalled IIS locally and it didn't fix it. IIS is set to start up automatically and I can see that the service has been successfully started. Upon a fresh [...] read more
iis
4votes
2answers

A whole storm of unknown errors while rebooting my Sharepoint Server 2010?

Okay, these are the errors I can't backtrace at all. So I was hoping you had any idea. When I recently rebooted my server (The server is a home computer, and just runs Windows 7 as a development machine) with Sharepoint 2010, a whole list of problems occurred. The major [...] read more
sql-server
sharepoint
visual-studio-2010
iis-7
sharepoint-2010
3votes
3answers

Cannot console into VMs in Hyper-V

When I attempt to view the console of a VM in Hyper-V, I get the following messages: > Video remoting was disconnected and > Could not connect to the virtual machine. Try to connect again. If the problem > persists, contact your system administrator. Would you like to try connecting [...] read more
hyper-v
hyper-v-server-2016
3votes
2answers

DEP6953: Failed to launch remote debugger

MY SETUP HoloLens Windows 10 October 2018 Update (10.0.17763.134) DESKTOP Windows 10 Enterprise Visual Studio Community 2017 Version Unity 2018.2.19f1 (Latest 7th December 2018 Update) THE PROBLEM I am unable to deploy any application to the HoloLens, but able to deploy it on hololens-emulator. I'm attempting with the Origami application [...] read more
unity3d
visual-studio-2017
hololens
hololens-emulator
windows-mixed-reality
3votes
0answers

Random failure on .net mvc 5 on Azure on dll already in use

We are using App Plans to run web apps (Windows). Lately, some of our apps (randomly) crashes with a message similar to the one below. It can be deployed for a short while or days, there is no discernable pattern that we can think of. We are using .net framework [...] read more
.net
asp.net-mvc
azure
azure-web-app-service
azure-webapps
3votes
3answers

IIS Manager Error - Unable to bind to the underlying transport for [::]:80.The process cannot access the file because

I know that this question has been asked in multiple forums and have several versions of the answers.. Unfortunately, none of those answers helped me out to resolve my issue. I stood up an AWS EC2 instance of Windows Server 2016 and installed IIS, MSMQ, Windows Process Activation Service and [...] read more
iis
port80
3votes
1answer

Deleting JPEG Not Allowed(Used By Another Process)

Question Edited!! This is an example of compilabile files to help you find my problem! I save some screenshots in a specific file. When i use function DeleteFile() it should delete first the contents and then the folder but then i get "that icon.jpg is used by another process"! (Either [...] read more
c#
jpeg
3votes
1answer

Microsoft.Interop.Security.AzRoles.AzAuthorizationStoreClass.Initialize fails with System.IO.FileLoadException

Our ASP.NET web application uses Authorization manager. On a page of this web application, the authorization store which is a local XML file on the server is accessed many times to perform access check. Some clients of ours are getting a System.IO.FileLoadException when they access this page. This is intermittent. [...] read more
azman
fileloadexception
3votes
1answer

IIS 0x80070020 error

I am trying to start up a web app with visual studio, and I keep getting the error: > The process cannot access the file because it is being used by another > process. (Exception from HRESULT: 0x80070020). I did some digging and i found that port 80 was used [...] read more
c#
iis
3votes
0answers

Error Extracting Public Key from .snk

My project has started regularly exhibiting this error; Error Error extracting public key from file 'FishTracker.snk': The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) FishTracker C:\Users\dom\Documents\Visual Studio 2015\Projects\FishTracker\FishTracker\vbc Has anyone else experienced a similar error and can shed some light [...] read more
vb.net
visual-studio-2015
2votes
1answer

Shadow copy referencing invalid volume from symboliclink when using TrueCrypt

I recently replaced my motherboard after the last one failed (was shorting and causing random reboots). I'm sure this was not healthy for the machine, and that a clean install would do wonders, but I'd like to fix the current install. That aside, I've been tracking down a pair of [...] read more
windows-7
truecrypt
symbolic-link
volume-shadow-copy
2votes
2answers

chkdsk - ok to run on a Softare RAID1 (Intel RST)?

I am running automated backups on a Windows Server 2016 since a couple of days. We are backing up the System as well as an entire Volume which contains the Server Folders. This Volume is a Software RAID1 controlled by Intel Rapid Storage. Besides the server folders directory there is [...] read more
windows-server-2016
software-raid
chkdsk
2votes
3answers

Issue provisioning IIS 7.5 server using Web Farm Framework 2

We have WFF 2.5 installed, and have used it to successfully configure a farm and provision a secondary server in our test environment. Our environment (controller, primary, secondary servers) is Windows 2008 Server Web Edition R2, running IIS 7.5, with WFF 2.5 installed. We have ongoing issues with a .tmp [...] read more
iis-7.5
web-farm
2votes
1answer

DPM 2010 RC Mailbox Recovery Fails

I am testing DPM 2010 with Exchange 2010. I am attempting to restore a single mailbox from a previous backup to a Recovery Database. I created and mounting the Recovery Database on the Exchange 2010 server and set the overwrite property. When I run the restore for the mailbox and [...] read more
backup
restore
exchange-2010
scdpm
2votes
3answers

Could not load file or assembly 'xxx.Data' The process cannot access the file because it is being used by another process

I have this error since today in a project which I have worked for months and has always worked. I tried cleaning the solution and rebuild, and building works perfect. I tried restarting VS and the PC and nothing works. So the problem is not in code > Could not [...] read more
c#
asp.net
.net
visual-studio-2015
2votes
1answer

System.IO.IOException: 'The process cannot access the file'

I am trying to synchronize logging to a file in an F Sharp project. Using the lock computational expression I tried to approximate a resource lock, however it seems to not be working. module regiondeployer.logger open System open System.IO open Microsoft.FSharp.Core open regiondeployer.personalprojectroot type private logginglock = static member public [...] read more
.net
multithreading
f#
locking
2votes
1answer

Code signing no longer working

We have a legacy Windows Workflow process that uses SignerSign to apply a digital signature to an EXE. We are migrating away from the Windows Workflow process, and so I have been preparing a tool within the context of our new process to perform the same signing operation. I copy/pasted [...] read more
c#
windows
digital-signature
signature
cryptoapi
2votes
1answer

Microsoft Visual Studio 2015 Shell (Minimum) Fatal Error during installation

Got an error while installing Visual Studio 2015 Community i have search for any site and common issues and workaround but it has no necessary answers. Here is part of my log file. [0DE8:2228][2016-06-06T00:50:17]i000: MUX: Apply Complete: Disk Space Used in bytes for Installation: MaxAppDrive: 0 MaxSysDrive: 98938880 AppDrive: 0 [...] read more
visual-studio
installation
2votes
1answer

Error while running asp.net apps in Visual Studio 2015

In my company I'm running Visual Studio 2015 Enterprise and just recently upgraded to Windows 10. Unfortunately, now I can't run any web project using versions of asp.net earlier than 5 (owin/katana) - always getting error : > "Could not load file1or assembly 'XXX' or one of its dependencies. The [...] read more
asp.net
visual-studio
2votes
2answers

Why does my emulator deployment fail with "The process cannot access the file because it is being used by another process"?

I am in the process of porting a Windows CE solution from .NET 1.1 to 3.5 I was able to "deploy" it -- once -- (to the Pocket PC 2003 SE Emulator), and run the .exe, upon which it failed with an error message. After closing the emulator, I put [...] read more
visual-studio-2008
compact-framework
emulation
windows-ce
visual-studio-debugging
2votes
1answer

Why does WAIISHost lock certain files

I am deploying a web application to azure. The application is built using Nancy, and there is no RoleEntryPoint defined (please note this isn't a problem, the website itself is running just fine). When I deploy to azure, i have enabled the web deploy option. When I attempt to run [...] read more
azure
castle-windsor
webdeploy
nancy
2votes
1answer

Automated application provisioning and file locking

We have WFF 2.5 installed, and have used it to successfully configure a farm and provision a secondary server in our test environment. Our environment (controller, primary, secondary servers) is Windows 2008 Server Web Edition R2, running IIS 7.5, with WFF 2.5 installed. We have ongoing issues with a .tmp [...] read more
iis-7.5
web-farm-framework
2votes
2answers

ssis - flat file source - The process cannot access the file because it is being used by another process

Am attempting to use SSIS flat file source to read a log file being actively written to. Looping and waiting for the file to be released is not practical as this is an active log file held by a service. Ideally, I'm looking for a setting upon the flat file [...] read more
sql-server
sql-server-2005
ssis
1vote
0answers

i keep on getting an error message even after i run the troubleshoot for updates

15 April 2020 today when i ran the update i got the following message there were problems installing some updates, but we'll try again later 2020-02 cumulative update for.net framework 3.5 and 4.8 for windows 10 version 1909 (KB4537572)- error 0x8e5e0147 2020-04 cumulative update for windows 10 version 1909 for [...] read more
windows-10
updates
1vote
1answer

Server Backup reports incomplete backup [0x80070020] due to item in System Volume Information Folder

My Windows Server 2012 R2 Essentials server has started throwing the same error each time during daily backups, each backup has this error in the failed items backup log: > Error in backup of E:\System Volume Information\SRM\quota.md during write: > Error [0x80070020] The process cannot access the file because it [...] read more
windows
backup
filesystems
windows-server-2012-r2
1vote
2answers

I enabled IIS on Windows 7 but it's not working

I followed Windows instructions, and turned on several parts of IIS. But http://localhost isn't working, and I don't see the IIS entry in Administrative Tools either. I only want to use SSI, not ASP(.net) or FTP. What should I check and why isn't it working? It didn't ask me to [...] read more
iis
windows-7
server-side-includes
1vote
1answer

Azure App Service - Slot swapping files get locked

The erorr occurs when there is an acctive traffic to the service 1. Deploy o staging 2. Swap slot with prod 3. application return 502 logs shows > Microsoft.AspNetCore.DataProtection.Abstractions, Version=1.1.2.0, > Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. > The process cannot access the file because it is being used [...] read more
azure
azure-web-app-service
1vote
0answers

.Net Web API returns occasionally no response at all if Exception is thrown crashing the application pool

From past 1 week facing the issue, In my application when multiple users trying to login then application is throwing unexpected error sometimes successfully login but if anyone got the exception the whole site is going down. From the log file i have seen that if any exception is coming [...] read more
iis
asp.net-web-api
webapi
1vote
0answers

Starting AppService fails with: Could not load file or assembly 'X'. The process cannot access the file because it is being used by another process

We deploy WebApi (ASP.NET Core 3.1) to our Azure AppService using Azure DevOps release pipeline. The steps in the pipeline are as follows (we try to make sure the app is completely stopped before the deployment): * Disable WebJobs (by setting settings variables WEBJOBS_STOPPED and WEBJOBS_DISABLE_SCHEDULE to 1) * Stop [...] read more
c#
asp.net-core
azure-appservice
1vote
1answer

VSCode and PHP with XDebug and PHP Debug extension and IISExpress

I am trying to use the PHP Debug extension in VS Code. I have followed the instructions and pasted the phpinfo contents into the wizard and downloaded the appropriate dll. I get the following error launch.json "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug", "type": "php", "request": "launch", "port": [...] read more
php
visual-studio-code
xdebug
iis-express
1vote
1answer

How to catch UWP MediaCapture exception when capture device is used by another app?

I am working on adding a simple webcam preview to a UWP app. Getting the preview up and running works fine so I am working on properly handling exceptions thrown by InitializeAsync() and StartPreviewAsync() and am not able to properly catch exceptions for the second one. I'm basing my code [...] read more
uwp
c++-winrt
mediacapture
1vote
1answer

Deploying Service Fabric project locally: "FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR"

Our company is starting with Service Fabric Microservices. We install the Azure Service Fabric SDK as the MS documentation says (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started). We install it from de WebPI, open the powershell as admin, and run the "Set-ExecutionPolicy" comand. Later we install the Azure tools in Visual Studio and with that we [...] read more
c#
deployment
visual-studio-2017
azure-service-fabric
1vote
0answers

Service Fabric application upgrade fails. FileLoadException

I'm trying to upgrade the sample app (Voting) from Microsoft using Visual Studio 2019. During the update I get the following error: 4>FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: One or more errors occurred. --> AggregateException: One or more errors occurred. --> FileLoadException: The process cannot access the file because it is being used by another [...] read more
c#
azure
azure-service-fabric
1vote
1answer

Sporadic problem with System.IO.Streamwriter in VB.net where it creates the file but comes up with an error that I can't write lines to the file

I've been having some problems with StreamWriter writing to a file sporadically lately and hopefully someone can try to shed some light on it. My call to the subroutine is the following: <!--Code Start SubPrint(tagVal) --> End of Code And the sub is simply this at the moment where I [...] read more
vb.net
streamwriter
1vote
0answers

IIS Express Telling me a port is in use, but netstat says otherwise

I am trying to launch a IIS Express Server from Visual Studio, but it never launches. After trying to launch it from powershell, I get the error "Failed to register URL "http://localhost:49712/" ... The process cannot access the file because it is being used by another process. (0x80070020)" So naturally, [...] read more
visual-studio
iis
visual-studio-2017
iis-express
iis-express-10
1vote
1answer

Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. - File is being used

Users to our production site is occasionally receive this error and we can't seem to figure out why. If the user gets this error, they can refresh the page and it works. Any ideas? Could not load file or assembly 'Microsoft.ReportViewer.Common' or one of its dependencies. The process cannot access [...] read more
c#
asp.net
iis
1vote
0answers

Issue launching IIS Express

I have an issue running IIS express in Visual Studio 2012 and 2015. This is the issue I've been getting: Unable to launch the IIS Express Web server. Failed to register URL "http://localhost:55920/" for site "SITE NAME" application "/". Error description: The process cannot access the file because it is [...] read more
iis
visual-studio-2012
visual-studio-2015
iis-express
1vote
0answers

Windows Phone 8.1 - Receive files with OBEX

i have successfully implemented a library for sending files over Bluetooth via Obex Object Push Profile on Windows Phone 8.1 app (C#). Anyway, I need to implement also the opposite direction (receive files via OPP) but I'm not able to find a way to override the already existing OPP system [...] read more
c#
windows-phone-8
bluetooth
windows-phone-8.1
obex
1vote
0answers

Could not load file or assembly "". The process cannot access the file because it is being used by another process

I have a web project in ASP.NET and I want to upload this project to FTP with Filezilla. First I'm publishing this project in Visual Studio 2013. After deploying with Filezilla. But I'm getting this error every time. So, these are that I'm getting from Chrome: Server Error in '/emre.solugan' [...] read more
c#
asp.net
ftp
filezilla
1vote
0answers

System.TypeInitializationException: The type initializer for 'OpcLabs.EasyOpc.DataAccess.EasyDAClient' threw an exception

I had used OPC Web client 3.02 in my applications. Generally, I had started 5 to 6 applications on system startup. Everything works fine without any problem. Now I am upgrading my applications to Quick OPC Classic 5.12.1308.1 If I start all the 6 applications on system startup (that is [...] read more
vb.net
.net-assembly
plc
opc
1vote
1answer

Error when deploying web project with msbuild via Teamcity (msdeploypublish)

I have this standard msbuild deployment method on a vsproject in a build config in Teamcity /P:DeployIisAppPath=%env.IISSiteName% /P:Configuration=%env.configuration% /P:DeployOnBuild=True /P:DeployTarget=MSDeployPublish /P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd /P:AllowUntrustedCertificate=True /P:MSDeployPublishMethod=Wmsvc /P:CreatePackageOnPublish=True /P:UserName=%env.domainUser% /P:Password=%env.domainPassword% This occationally fails when the destination server is a bit busy (used by another process error): [VSMSDeploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377, 5): Web deployment task [...] read more
msbuild
teamcity
msdeploy
webdeploy
1vote
2answers

How to ignore "The process cannot access the file because it is being used by another proces"

The setup is this: Whenever an error occurs on my website, an error-site is being displayed while an e-mail is being sent to the administrator. The website show a lot of live statistics automaticly updated every 15 second via AJAX and XML. But the statistics are only calculated once every [...] read more
xml
sql-server-2008
asp-classic
1vote
1answer

bug in aspnet_compiler?

I have a solution with several web projects. I have built each project into its own folder (there's about 10 projects): /build/projA /build/projB /build/projC If I call aspnet_compiler -v / -p \"build/#{proj}\" merged/#{proj} on each one in turn, everything is fine. If I make all 10 calls to aspnet_compiler in [...] read more
aspnet-compiler
1vote
0answers

Enterpriselibrary : The process cannot access the file because it is being used by another process

I have 10 .net consoles starting up on the same time in the same folder. All 10 processes starts by writing startup info (via EnterpriseLibrary) to 10 different log files. The EnterpriseLibrary dll's are released next to the console .exe Sometimes I get this Exception, when i call Write. The [...] read more
c#
logging
0votes
1answer

All Windows Update Related Activity Hangs Service

I'm on a Dell XPS laptop (Windows 10 version 1909) 1. When I try to check for updates, the progress indicator never stops working - it won't even finish checking. 2. When running the Windows Update troubleshooter, the initial progress indicator (looking for pending restarts) never goes away. 3. Stopping [...] read more
windows-10
windows-update
0votes
1answer

Can't access Internet in Safe Mode (Windows XP SP3)

I am receiving the error 0x80070020 when accessing Windows Update. One of the solutions is to reboot in Safe Mode with networking support. When I do this, my USB wireless broadband connection software will not connect to the Internet - the USB modem does not detect the wireless network. Any [...] read more
windows-xp
windows-update
safe-mode
0votes
0answers

Failed applying updates in Windows Server 2016

I am trying to install the 2021-04 cumulative update for Windows Server 2016 (KB5003197) to a standalone server that runs a SAP application. The server accepted Security Stack Update (KB5001402) and it had no issue. Other servers accepted these updates without any issue and the configuration is the same. The [...] read more
windows-server-2016
0votes
1answer

Running IIS8 local server not working

I have a windows 7 laptop and I want to set up IIS8, php, mysql to run in a development environment, but I am having trouble. I opened IIS8, and when I click on my site "Default website" and click start, it gives an error saying "The process cannot access [...] read more
windows-7
iis-8
0votes
2answers

ssl certificate should be added in more than one web site in IIS 7.0

I have purchased one SSL certificate which should run on domain and subdomain. E.g. *.example.com. I want this SSL certificate to run in domain website and subdomain website. I have two different Website in IIS 7.0 1. example.com 2. xyz.example.com Currently the SSL certificate is assigned to xyz.example.com and it [...] read more
iis-7
ssl
0votes
2answers

Remove reference of a DLL - IIS

Good night. I am having an annoying problem with a DLL. Well, i needed to make a test with two different versions of a DLL on an application on IIS. I renamed the original dll Primavera.ERPOnline.Bso.Proxy.dll to _Primavera.ERPOnline.Bso.Proxy.dll, and copy the new version to the folder. After all the tests [...] read more
iis
dll
0votes
2answers

IIS Issues - Unable to start debugging on the web server. The underlying connection was closed. The connection was closed unexpectedly

All of the sudden I'm getting the following error on my local web server (Win7 64bit, IIS 7.5). I've uninstalled & reinstalled IIS locally and it didn't fix it. IIS is set to start up automatically and I can see that the service has been successfully started. Upon a fresh [...] read more
iis
0votes
1answer

Unable to connect to web sever IIS Express

I am working on project, where I need to have an access to debugging option. I've tried to run my application as usually, but this time I received following message: > Unable to connect to web server 'IIS Express' When I checked the console output I found there following note: [...] read more
visual-studio
iis-express
0votes
0answers

"The process cannot access the file because it is being used by another process.HRESULT0x80070020”. Error Connecting to Barcode Scanner using c# app

I have an c# application that connects to the barcode scanners that are in HID mode by using the devices VendorID(VID) and ProductID(PID). Using the devices VID and PID we will construct the device path and they we will call the below code to create a Kernel object File so [...] read more
c#
kernel
barcode-scanner
0votes
0answers

c# wpf -- error when trying to delete an image whose path is the source of a wpf image element

I'm using WPF and the language is c#. I have a WPF image element and the source is a binding to a property, as you can see below. When I try to delete the file whose path is that property, it gives error: "file is being used by another process". [...] read more
c#
wpf
0votes
2answers

Error in installing SSMS

when I try to install Microsoft SQL server management studio I get this error message: "the process cannot access the file because it is being used by another process:0x80070020" How to overcome? read more
sql-server
ssms
sql-server-2016
0votes
4answers

Start IIS "process cannot access the file" Exception from HRESULT: 0x80070020)

When I try to start the IIS I got: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Even after reboot it wasn't working read more
iis
iis-10
0votes
0answers

NLog dropping messages after adding KeepFileOpen="true"

Switching over from log4net to NLog, while testing noticed that Nlog would drop few messages when writing message every 10ms with KeepFileOpen="true" and running on a network filer, however with this setting turned off it seems to log everything fine. On reading their documentation, it seems like they recommend setting [...] read more
c#
logging
nlog
0votes
1answer

Unable to find the processes that uses a certain port on Windows 10

unforuneatelly I am not able to start any process on port 2022 on my computer. I'm using Windows 10 Enterprise 1803. I tried to start an IIS site on that port and got an "HRESULT: 0x80070020" error. The same happens when I start an angular "ng serve" on that port. [...] read more
windows
port
netstat
0votes
1answer

Could not load file or assembly System.Runtime, Process cannot access file because it is being used by another process

I'm trying to get dynamic assembly loading to work in .NET Core 3.1, and have been following microsoft's guide on creating a custom AssemblyLoadContext. The assembly loading seems to be successfull however as soon i try to actually retrieve a type by using GetTypes() i get this error about System.Runtime [...] read more
c#
.net
.net-core
0votes
0answers

SSMS can't open data file

Im trying to import a .csv file in SQL Server Management Studio using the import export wizard. I just created a database and when I used the wizard I ran into several errors. This is the error log. Pre-execute (Error) Messages Information 0x402090dc: Data Flow Task 1: The processing of [...] read more
sql-server
ssms
0votes
0answers

Cannot connect to IIS Express

I have two Windows 10 machines. One I can start up a debug session by selecting of typing F5 and the other gives me a message that I cannot connect to IIS Express. Starting up the debugger on the machine that doesn't work shows: Starting IIS Express ... Successfully registered [...] read more
visual-studio
iis-express
0votes
2answers

How to avoid System.IO.FileLoadException when writing to file asynchronously

I am writing a small UWP app to read data from a BLE (Bluetooth Low Energy) sensor. The only reason I am using UWP is because it is the only plattform that supports BLE in Windows. The functionality of the app is very simple, I just connect to the device, [...] read more
c#
.net
uwp
0votes
1answer

Error while trying to create table in MSSQL using flat-file import

I am trying to import a .csv file to SQL Server Native 11.0 in order to create a table. However, I am getting the following error: * Warning 0x80070020: Data Flow Task 1: The process cannot access the file because it is bein gused by another process. * Error 0xc020200e: [...] read more
sql-server
import-from-excel
ssms-2014
0votes
2answers

How to covnert Hex to Dec int32 and vice versa in PHP?

Can someone suggest a best way to convert hex to dec and vice versa in PHP (equivalent to the PowerShell commands below)? $hex = "0x80070020" $hex2dec = [Convert]::ToInt32($hex,16) write-host $hex2dec #output: -2147024864 $dec = "-2147024864" $dec2hex = "0x{0:X}" -f [Int]$hex write-host $dec2hex #output: 0x80070020 I tried following approach in PHP. [...] read more
php
0votes
2answers

wpf localization - locbaml - file is being used by another process

I have been looking hours for a solution, but I don´t find it. I want to generate a satellite assembly with following command. locbaml.exe /generate de/App.UI.resources.dll /trans:MeineRess_de.csv /out:de /cul:de After executing I get following error: The process cannot access the file because it is being used by another process. (Exception [...] read more
wpf
localization
locbaml
0votes
1answer

Azure Deployment: Could not load file or assembly or one of its dependencies. The process cannot access the file because it is being used

I deployed my multi-tier application to azure. It was working perfectly, but now when I try to deploying it, it shows an error saying: Could not load file or assembly 'MySomething.dll' or one of its dependencies. The process cannot access the file because it is being used by another process. [...] read more
asp.net
azure
iis
azure-web-app-service
0votes
1answer

Open locked file with OpenXML in read only mode

When I try to open a file that is locked, like this: using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; ... code stripped for clarity ... // false stands for read only mode spreadsheetDocument_ = SpreadsheetDocument.Open(fileName_, false); I get this exception: System.IO.IOException: 'The process cannot access the file 'file.xlsx' because it is [...] read more
c#
.net
openxml
0votes
1answer

File in use Error service Fabric

I have a really annoying issue with service fabric where I am now getting a file in use error This makes no sense because I have reset the cluster, rebooted, etc and nothing works The problem is that the message is useless 12>powershell -NonInteractive -NoProfile -WindowStyle Hidden -ExecutionPolicy Bypass -Command [...] read more
c#
azure-service-fabric
service-fabric-stateful
0votes
0answers

WiX uninstall assembly from GAC when file in use

Using WiX 3.11 I've developed a simple installation file which installs one DLL in the global assembly cache: <Directory Id="TARGETDIR" Name="SourceDir"> <Component Id="CMP_ABC" Guid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" Permanent="no" Shared="yes" > <File Id="File_ABC" Assembly=".net" Source="ABC.dll" KeyPath="yes" Vital="yes"/> </Component> </Directory> Installation works and the file is placed in the GAC_32 folder. When trying to uninstall [...] read more
dll
wix
gac
0votes
0answers

0x80070020 error in Visual Studio 2017

I am facing this problem every time I run the project. The diagnosis hub console keeps on popping this message up: Failed to commit package 'C:\Users\****\AppData\Local\Temp\Report.ABF0E3A6-3DC5-4A16-92B9-F66196D76AF2' (0x80070020). Please check that the collector has access to the destination location. How can I fix this? read more
c++
0votes
1answer

Error on DeleteAsync fileStorage in windows fall creation update

With the upgrade to windows fall creation my application has a problem, when a file is deleted, it gives me an exception: > System.IO.FileLoadException: 'The process cannot access the file because it is > being used by another process. (Exception from HRESULT: 0x80070020)' The file is first copied to my [...] read more
windows
uwp
windows-10
0votes
1answer

Hyper-v Export-VM : Provider load failure error in 2012r2

I'm using powershell 4 to export all the VMs in hyper-V and move it to a backup server(nas unix). Export was successful for few VMs and after a while it fails with the following errors: > Export-VM : Provider load failure > > At C:\scripts\test.ps1:37 char:5 > > * Export-VM [...] read more
powershell
windows-server-2012-r2
powershell-4.0
hyper-v
windows-server-2016
0votes
1answer

Deployment and/or registration failed with error: 0x80070020

When trying to deploy onto a touchscreen phone, I get an error: > Deployment and/or registration failed with error: 0x80070020. How do I resolve this? read more
vb.net
deployment
windows-phone
0votes
0answers

Cannot install SQL Server management on Windows Server 2008R2

Trying to install ssms (tried version 2012, 2014 and 2016) on Windows server 2008 R2 with both SQL server 2008 and SQL server 2012 installed on it (using remote desktop). But get following errors: 1. Error on installing ssms 2016 : The process cannot access the file because it is [...] read more
sql-server
sql-server-2008
sql-server-2012
ssms
0votes
1answer

Could not load file or assembly 'AMS' or one of its dependencies

I can't seem to find this issue anywhere, probably because it is so generic. I created an empty asp.net web application in visual studio 2017 community edition. The application is named AMS. When I debug, I get the following error: Could not load file or assembly 'AMS' or one of [...] read more
asp.net
vb.net
web-applications
visual-studio-2017
0votes
1answer

ApplicationData.ClearAsync() doesn't work in Windows 8.1 Universal App

I'm trying to clear the application data when user logout of the application & I found ApplicationData.ClearAsync() which fits my requirement which is similar to IsolatedStorageSettings.ApplicationSettings.Clear() but it gives me an below error An exception of type 'System.IO.FileLoadException' occurred in mscorlib.ni.dll but was not handled in user code Additional information: [...] read more
c#-4.0
windows-runtime
win-universal-app
winrt-async
0votes
1answer

Unable to launch the IIS Express Web Server - Dual instances?

[.NET MVC, VS 2013, Windows 10] Error: Unable to launch the IIS Express Web Server. Failed to Register URL "http://localhost:61493/" for site "SiteName(1)" application "/". The process cannot access the file becuase it is already being used by another process. (0x80070020) There are some other SO Questions about this, but [...] read more
asp.net
iis
visual-studio-2013
windows-10
0votes
0answers

MS SQL Server SSIS. Could not load file or assembly 'System.Data.dll' or one of its dependencies

We have an SSIS package hosted in server1. A job in Server 2 is running the SSIS package and load/transform data in Server2. But recently we are receiving the error below: > Executed as user: user1. Microsoft (R) SQL Server Execute Package Utility > Version 11.0.6020.0 for 64-bit Copyright (C) [...] read more
sql-server
ssis
sql-server-2012
0votes
1answer

EF Downgraded: Could not load file or assembly 'EntityFramework' or one of its dependencies

I have been getting the error below and for heavens sake I cannot figure out why. I have not made any changes except for upgrading to windows 10. I have downgraded my EF and upgraded to make sure I have the same version but that did not resolve. I have [...] read more
c#
.net
asp.net-mvc
entity-framework
0votes
3answers

Could not load file or assembly or one of its dependencies

Could not load file or assembly 'Microsoft.Owin.Security.OAuth' or one of its dependencies. The process can not access the file because the file is in use by another process. (Exception from HRESULT: 0x80070020) I can't understand the reason of error read more
c#
asp.net
asp.net-mvc
0votes
1answer

Asp.net site could not load file or assembly

I know that it is a common problem but I really have tried all the solutions and nothing helped me so far. I am developing a .net site for more than two month... Yesterday I have faced with this error: > 'Could not load file or assembly 'myDllName' or one [...] read more
asp.net
.net
0votes
1answer

Visual Studio 2015 Community Edition, Windows 10 and IIS

I have been having a hard time getting Visual Studio 2015 CE and IIS express to run on my windows 10 machine. Even when I make a default MVC5 web application and attempt to run it without making any changes I usually see the error below. > Configuration Error Description: [...] read more
asp.net
iis
asp.net-mvc-5
visual-studio-2015
windows-10
0votes
1answer

Nunit test can't load file from secondary library project

I am trying to get nunit tests going in a separate test project. The tests work just fine when included in the same project, but when I create the same test in a separate project, they fail. However, when I create a third consumer project in the solution, that project [...] read more
c#
nunit
.net-4.5
0votes
0answers

Could not load file or assembly <project> or one of its dependencies. Used by another process

Could not load file or assembly 'Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Hi, i get this error when trying to "enable-migrations" on my infrastructure project which contains the EntityFramework [...] read more
c#
asp.net
entity-framework
visual-studio-2015
package-managers
0votes
0answers

sideloaded windows 8 app crashing on Windows 8.1 and not installing on Windows 10

I am sideloading a dev package on windows 8.1 and on Windows 10. On Windows 8.1 The app crashes as soon as it launches > Faulting application name: XXXX.exe, version: 1.0.0.0, time stamp: 0x54bd196d > Faulting module name: twinapi.appcore.dll, version: 6.4.9879.0, time stamp: > 0x54585458 Exception code: 0xc000027b Fault offset: [...] read more
windows-8.1
sideloading
windows-10
0votes
1answer

Windows 8.1 app - The process cannot access the file because it is being used by another process

I am developing a windows 8.1 app for the first time and running it (debugging mode) within visual studio 2013 as I develop. I have a main .xaml page with a frame containing my menu (listview) and another frame containing the page that user has selected at that moment. When [...] read more
c#
windows-store-apps
windows-8.1
0votes
1answer

How can I show custom page when publishing my web site?

We all know when we want to upload new dll files and upgrade our web application, web get this error when opening the website: > Server Error in '/' Application. > > Could not load file or assembly '****' or one of its dependencies. The process > cannot access the [...] read more
c#
asp.net
0votes
2answers

WCF + Website. File is being used by another process

I'm getting this error: Could not load file or assembly 'EntityFramework' or one of its dependencies. The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) (C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config line 111) The problem is that this works locally, but when I publish it at [...] read more
asp.net
wcf
iis
web
0votes
1answer

VS2010 Web Deploy only leave extra files with specific extension

I'm deploying my ASP.NET-MVC3 application to an IIS7 server. Publishing to web works fine if I check "Leave extra files on destination (do not delete)". If the checkbox is not checked, it usually fails with this error: > Error 65 Web deployment task failed.((2013.07.10. 17:06:09) An error occurred > when [...] read more
visual-studio-2010
asp.net-mvc-3
iis-7
webdeploy
0votes
2answers

SelfSSL7 custom CN with a local development domain

I have my site mydomain.local on my local development machine, which uses a local hosts file entry to point to 127.0.0.1. The directory is my working git copy and it works like a charm. It always points to whatever I have checked out. I want to setup SSL but of [...] read more
ssl
iis-7.5
ssl-certificate
self-signed
0votes
1answer

HttpParseException with Telerik.Web.UI after production deploy

Posted 0 minutes ago (permalink) We did a deploy this morning, and one of four servers was unresponsive, with this exception: Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1310 Date: 6/29/2012 Time: 6:53:12 AM User: N/A Computer: [REMOVED] Description: Event code: 3006 Event message: [...] read more
asp.net
exception
telerik
production-environment
sitefinity
0votes
1answer

"The process cannot access ..." when using MSBuild

I am so close to getting my TeamCity setup complete, but am stumped by this error: (12/22/2011 2:30:15 PM) An error occurred when the request was processed on the remote computer. An error was encountered when processing 'Web.zip'. The error code was 0x80070020. The process cannot access 'C:\Inetpub\wwwroot\Deneb\Website\obj\Deploy\Package\Web.zip' because it [...] read more
visual-studio
visual-studio-2010
deployment
teamcity
msdeploy
0votes
1answer

Web Deploy Error with Azure

I'm trying to deploy my web app to Azure using this method, but periodically, i get this error. Any ideas? I rebooted the instance, still happens. Start Web Deploy Publish the Application/package to https://xxx.cloudapp.net:8172/MsDeploy.axd?site=myapp.Web_IN_0_myapp.Web ... Updating setAcl (myapp.Web_IN_0_myapp.Web). Updating setAcl (myapp.Web_IN_0_myapp.Web). Updating filePath (myapp.Web_IN_0_myapp.Web\bin\myapp.Web.dll). C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(3847,5): Warning : An [...] read more
azure
webdeploy
0votes
0answers

FileLoadException when loading references

I'm using Spring.Net to dynamic load my object graph. 10 .exe consoles will start on the same time and via Spring.Net they will instantiate the same libraries. The consoles have no references to the libraries. 1 out of 10 times I get an Exception when Spring.Net (using reflection) creates the [...] read more
c#
spring.net
fileloadexception
0votes
1answer

WebDeploy with MSdeploy.exe fails to sync GAC Assembly because dll(s) locked by another process

I'm having this problem using msdeploy to sync GAC assembly to many Application Servers. When I run this command msdeploy -verb:sync -source:gacAssembly="'MyAssembly'" -dest:gacAssembly,computername=DESTINATIONSERVER I obtain this error: *Microsoft.Web.Deployment.DeploymentException: (28/09/2010 16.46.37) An error occurred when the request was processed on the remote computer. ---> Microsoft.Web.Deployment.DeploymentClientServerException: An error was encountered when processing [...] read more
gac
msdeploy
webdeploy
iisreset
-1votes
1answer

regex to match any combination of text of indeterminate length

A Windows SyncToy logfile contains several thousand lines of the form: xxx ... C:\zzz. xxx ... and xxx ... zzz\. xxx ... where xxx can be a string including any printable character including spaces and/or whitespace and zzz can be a string including any printable character including spaces, backslashes, numerics, [...] read more
linux
regex
grep
sed
awk
-1votes
2answers

DISM command error. Failing to Apply Drivers during SCCM OSD

I am using a SCCM 2012 task sequence to deploy Windows 7 for Dell Precision T5810. Using the "Apply Driver" step in WinPE (64bit): with WMI filtering for model filtering to install a driver package. Currently failing to apply drivers - I'm not sure where to go from the DISM [...] read more
deployment
dism
sccm
-1votes
2answers

Can't start IIS 10 Express

I can't start IIS Express 10 with .NET Core since yesterday. Nothing changed outside of a NET Framework 3.5 and 4.8 Update. I tried restarting Machine, restarting VS, reinstalling IIS Express, the port is not occupied by any other process. In fact when I change the port the app is [...] read more
.net
asp.net-core
iis
iis-express
-1votes
2answers

C# System.IO.IOException occurred HResult=0x80070020

New issue with my code, worked 100% last night. This morning it's giving me issues. (nothing changed) When I run my code to send a file to Gmail, I get a > System.IO.IOException occurred HResult=0x80070020 But when I comment out the sending of the email ( see code) it works [...] read more
c#
file
gmail
-2votes
1answer

How to fix System.IO Exception in C#. Attempting to collate multiple CSV files into 1 file

I keep getting the following exception: > System.IO.IOException HResult=0x80070020 Message=The process cannot access the > file 'C:\DIPV3\result.csv' because it is being used by another process. Is there a better way to attempt this solution using a combination of Streams or Linq? The code below writes the file partially but then [...] read more
c#
linq
file-io
-2votes
1answer

Windows IIS8 not starting website

I have a windows 7 laptop and I want to set up IIS8, php, mysql to run in a development environment, but I am having trouble. I opened IIS8, and when I click on my site "Default website" and click start, it gives an error saying "The process cannot access [...] read more
php
mysql
iis
windows-7
-3votes
2answers

Port Error while running multiple server website

Failed to register URL for site application "/". Error description: The process cannot access the file because it is being used by another process. (0x80070020) How to change the port for Project ? read more
c#
asp.net-mvc

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0