I'm having a deployment issue. With a .Net 6 application, it frequently fails to deploy because the main dll is locked. According to the documentation, I can use an app_offline file to manage this. How to deploy and manage this file was a real problem, but even after I finally for it working, it doesn't solve the problem. For example, as a test I added the app_offline file to the site. The site now displays an under maintenance message. But after removing the file, the site wouldn't restart and it required a fair amount of manual intervention. What is the expected way to deal with the base issue - that deploying to a running site fails because the site wont release the ddl to replace it with the new version?
Deploying .Net Core app fails because dll is locked
41 Views Asked by Ethan Schofer At
1
There are 1 best solutions below
Related Questions in .NET-6.0
- I have a problem outputing the roles on the page ListRoles.cshtml
- ASP.NET Core 6 randomly returning 200 with empty response
- Getting MSB3174 Invalid value for 'AssemblyVersion' in C# .NET 6 Windows Forms app
- Entity Framework Core 8 throws "Method not found: 'Void CoreTypeMappingParameters..ctor" error
- ASP.NET Core 6 Web API : best way to pause before resending email
- Web API talking to Vue app hosted separately in IIS... why is app.use spa needed?
- Unable to connect to Azure Keyvault when I deploy ASP.NET Core 6 Web API (C#) , the docker image to docker desktop app
- ASP.NET Core 6 MVC - POST method not being hit when GET action method receives parameter
- I build ASP.NET Core Web API - when I upload it to server, it does not work
- I need help to upgrade deprecated dependencies in an ASP.NET Core 8 Web API project
- Unhandled host error occurs after function execution
- Login with load balancer
- ERR_SSL_PROTOCOL_ERROR generated using X509 certificate with Kestrel hosting in .NET 8 on Linux
- To set Different Colors For each line in Line Chart Using NPOI excel nuget package in .Net6 Core
- WebApi for Vue app errors, fails to call command line
Related Questions in WEBDEPLOY
- React JS project deployment keeps failing in Railway
- Web deployment task failed. Web Deploy experienced a connection problem with the server and had to terminate the connection - Azure App Service
- Azure Web App - Error deploying python (django) application
- (iis) route returning blue screen
- ShadowCopy and MSDeploy on .Net 6
- Deploying .Net Core app fails because dll is locked
- How to fix azure deployment error : deployer = ms-azuretools-vscode deploymentPath
- Encountering Server Error (500) During Website Deployment Without Clear Error Messages On Render.com
- Using web deploy for Blazor app in GitHub Actions
- How to fix 502 error when deploying django project as a zip file using elastic beanstalk
- msdeploy - Cannot create a file when that file already exists
- BUG - Deploy Nuxtjs on AWS Amplify not conecting with Backend API, but works locally
- msdeploy.exe throws "Unable to find specified file"
- Deploying to an Azure Web App via ARM msdeploy/zipdeploy to multiple Sub-Applications / Virtual-Applications
- I have issue with using cv2 at streamlit
Related Questions in APP-OFFLINE.HTM
- Deploying .Net Core app fails because dll is locked
- app_offline.htm was not working with No managed code
- What setting in Azure's App Service do I need to change to allow allow using base64 images in the App_Offline?
- IIS web deploy fails with "Unknown rule: AppOffline"
- Is there limit to number of files that can be cached in html5 manifest?
- Add app_offline.htm file when completing pull request, and then delete it afterwards once it completes/fails
- Is there an alternative for app_offline.htm which is not susceptible to runtime errors?
- ASP.NET Core randomly restarts under IIS
- Bring all applications offline on IIS
- Using app_offline with TFS2015 RM
- Deploy a .NET Core application with AppVeyor: file locked by external process (Appveyor agent)
- App_Offline dynamically
- Closed/disable/pause application in a certain time interval
- Display a custom html page when publishing to IIS in MVC
- App_Offline.htm to run in schedule task
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found the issue. This is how you need to deploy to an on-prem ISS instance with newer .Net versions. You enable it by adding some stuff to the web.config. In .Net 6, ShadowCopy is experimental, so you add:
But starting in .Net 7, its no longer experimental. So you can set it up like so:
And the good part. If you are deploying a .Net 6 app to a server where .Net 6 AND .Net 7 or 8 is ALSO installed, you need both, even if your app is .Net 6: