All Questions
Tagged with deployment asp.net
1,193
questions
235
votes
15
answers
293k
views
IIS7 deployment - duplicate 'system.web.extensions/scripting/scriptResourceHandler' section
On attempting to deploy a .net 3.5 website on the default app pool in IIS7 having the framework section set to 4.0, I get the following error.
There is a duplicate
'system.web.extensions/...
137
votes
13
answers
40k
views
How to deploy an ASP.NET Application with zero downtime
To deploy a new version of our website we do the following:
Zip up the new code, and upload it to the server.
On the live server, delete all the live code from the IIS website directory.
Extract the ...
126
votes
3
answers
29k
views
Error: "The configuration section 'system.webServer/management/delegation' cannot be read because it is missing schema
I am trying to publish a website from my computer to an IIS web server via web deploy.
I have 3 servers. All servers have installed the same things (Webdeploy etc.) and the services are started (Web ...
104
votes
13
answers
39k
views
How do you deploy your ASP.NET applications to live servers?
I am looking for different techniques/tools you use to deploy an ASP.NET web application project (NOT ASP.NET web site) to production?
I am particularly interested of the workflow happening between ...
91
votes
11
answers
35k
views
Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)
I am getting the following error when I use web deploy from visual studio 2010.
Web deployment task failed. (The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception.)
...
76
votes
4
answers
59k
views
Dll in both the bin and the gac, which one gets used?
We have a web application that's deployed to many websites with only frontend changes, the shared backend portion has it's DLL in the GAC so we only have to update that one dll and all the sites get ...
76
votes
5
answers
55k
views
How to deploy after a build with TeamCity?
I'm setting up TeamCity as my build server.
I have my project set up, it is updating correctly from subversion, and building ok.
So what's next?
Ideally, I'd like to have it auto deploy to a ...
57
votes
7
answers
24k
views
Make MSDeploy (Visual Studio) not delete App_Data folder but delete everything else
I'm using Visual Studio's Publish button to deploy my website, and want a different App_Data folder on the server. There's a checkbox for Leave extra files on destination (do not delete) which ...
45
votes
27
answers
89k
views
How to fix ASP.NET error "The file 'nnn.aspx' has not been pre-compiled, and cannot be requested."?
I have a VS 2005 web site that I publish using "Publish Web Site", and I clear all the three checkboxes. I also have a deployment project that picks up the published files and creates an MSI. I then ...
43
votes
2
answers
12k
views
Advanced tasks using Web.Config transformation
Does anyone know if there is a way to "transform" specific sections of values instead of replacing the whole value or an attribute?
For example, I've got several appSettings entries that ...
40
votes
3
answers
53k
views
Website needs force refresh after deploy
After deploying a new version of a website the browser loads everything from its cache from the old webpage until a force refresh is done. Images are old, cookies are old, and some AJAX parts are not ...
38
votes
2
answers
18k
views
Make Web.config transformations work locally
I want to get web.config transformations working locally but apparently the transformations only occur when doing deployments.
Does anybody know of a way to run the msbuild target "...
34
votes
7
answers
41k
views
How can I ensure that appsettings.dev.json gets copied to the output folder?
I have three configuration files, one for each environment:
appsettings.json -> production
appsettings.dev.json -> development
appsettings.stg.json -> staging
If I set ASPNETCORE_ENVIRONMENT to dev,...
34
votes
9
answers
27k
views
Differentiating web.config between dev, staging and production environments
Anyone have any good tips on handling differences in web.config settings between environments? I've considered creating a 'config' folder in our source control system but outside of the web hierarchy, ...
33
votes
7
answers
30k
views
Instance Failure in asp.net
I have a web application that is working perfectly in my system. However, when I copied it to another system, I couldn't login to the application. There is an error:
Server Error in '/' Application....
30
votes
2
answers
46k
views
Visual Studio publish in debug Vs Release mode
I know the difference between debug and release mode BUILD. But I have a small doubt, does it make any difference on what mode I select while publishing the application thru Visual studio?
30
votes
7
answers
28k
views
Step-By-Step ASP.NET Automated Build/Deploy
Seems like there are so many different ways of automating one's build/deployment that it becomes difficult to parse through all the different scenarios that people support in tutorials on the web. So ...
29
votes
4
answers
16k
views
Web deployment task failed. (Could not complete the request)
I want to publish my project but:
Error1
Web deployment task failed. (Could not complete the request to remote agent URL 'https://xxxxx:xxxx/msdeploy.axd?site=VoIP'.)
Could not complete the request ...
28
votes
17
answers
317k
views
Parser Error when deploy ASP.NET application
I've finished simple asp.net web application project, compiled it, and try to test on local IIS. I've create virtual directory, map it with physical directory, then put all necessary files there, ...
28
votes
6
answers
72k
views
Could not load file or assembly 'System.Web.Razor' or one of its dependencies
I used Umbraco 4.11.6 in my website(web application).My website is worked in localhost(tested from Visual studio 2012 and IIS(v7)) but when I run it from internet space I got an error.
The error was:
...
27
votes
6
answers
32k
views
How to host multiple .NET Core apps under the same URL?
I am building a few web sites in ASP.NET Core (multiple user interface applications and a WebAPI app). They all work together, utilising the WebAPI. For the purpose of my question we'll call them App1,...
26
votes
7
answers
19k
views
"Can't find the valid AspnetMergePath" on Visual Web Developer Publish?
I am wanting to use Visual Web Developer Express 2010 to publish a website, pre-compiled to a remote server over FTP using the following settings:
Deploy only files needed to run this application
...
26
votes
2
answers
2k
views
Web Deploy to Azure doesn't force Web App to pickup new changes
I have an automatic deployment configured from my GIT to Azure App using Web Deploy. Every time when new code pushed to the repo, build is started, then deployed to the Azure with Web Deploy.
The ...
23
votes
2
answers
34k
views
how to add publishing profile to a new sln in vs2012?
I have read the publishing profiles have replaced WDP
but I cannot find decent tutorial
how to add and modify pubxml file to my project
any help will be appreciated
21
votes
2
answers
28k
views
How to show maintenance page during deployment?
I want to plan a schedule maintenance down time on one of my production asp.net website hosted on IIS windows server 2003.
I think this is the preferred behavior:
All request to http://www.x.com ...
20
votes
2
answers
6k
views
match element name in web.config transformation
I am trying to match element by element name, I have to change sessionState element timeout in release, but I cannot match it by any attribute value.
<sessionState timeout="5000"/>
How can I ...
19
votes
2
answers
25k
views
How do I publish a Asp.NET web application using MSBuild?
I am trying to publish an Asp.net MVC web application locally using the NAnt and MSBuild. This is what I am using for my NAnt target;
<target name="publish-artifacts-to-build">
<msbuild ...
19
votes
6
answers
115k
views
ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies
I'm deploying my website on the server.
My website is done using asp.net c# 4 and EF 4.
I receive this error:
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This ...
19
votes
9
answers
3k
views
Is it possible to deploy an enterprise ASP.NET application and SQL schema changes with zero downtime?
We have a huge ASP.NET web application which needs to be deployed to LIVE with zero or nearly zero downtime. Let me point out that I've read the following question/answers but unfortunately it doesn't ...
19
votes
6
answers
5k
views
What method do you use to deploy ASP.Net applications to the wild?
Currently we deploy compiled ASP.Net applications by publishing the web site locally and emailing a zip file to the system administrator with a (usually) lengthy set of instructions for deployment. ...
18
votes
3
answers
19k
views
MSDeploy - Destination Not Reachable
I have installed Web Deploy 3.5 on Windows Server 2008 R2 and tried to run remote publish web application through visual studio 2012. However, I got the error - Destination Not Reachable.
I read some ...
18
votes
1
answer
5k
views
Which options are the most performance way of publishing asp.net website project - deployment
I am asking in terms of performance
Which would run fastest on the server (windows server 2012 r2 - 24 cores - 64 gb ram) - serving pages fastest way - reducing load times
Asp.net website project , ...
17
votes
8
answers
21k
views
Publish is not transforming web.config?
I made a web.config (full file, it doesn't show XML errors)
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
...
17
votes
7
answers
6k
views
Do you precompile your website and why/why not?
I'd like to get the pulse of the community on whether to precompile or not. I know its cold start time is faster, and it hides code. However, there is something dirty about it, IMO. Maybe its the ...
17
votes
3
answers
7k
views
Visual Studio Publish Profiles - Why not track in source control?
I was exploring options for deploying my ASP.NET web app by creating a publish profile when I noticed that .pubxml files are included in this .gitignore file (which I had been using):
https://github....
17
votes
4
answers
12k
views
Can TeamCity publish a Web project using the sln2008 build runner?
I'm building an ASP.Net MVC project in TeamCity.
Can I somehow call the Publish target and get the output copied to a folder under IIS? or do I need to write an msbuild script for this?
17
votes
3
answers
9k
views
What are best practices for ASP.NET application deployment
Not being into ASP.NET world too much, I still faced a neccessity to work on ASP.NET project that requires periodic deployment of new version to production IIS server.
What are generally accepted ...
16
votes
10
answers
4k
views
ASP.NET - Basic checklist for putting a site into production
I'm building a static ASP.NET site (using Masterpages and a few forms) and I'm about to release it onto my production server.
I know about changing <compilation debug="true"> to false, but I'm ...
16
votes
2
answers
921
views
ASP.NET framework bug
Go into your iis machine level settings and add
<deployment retail="true" />
As specified in http://msdn.microsoft.com/en-us/library/ms228298.aspx
Create a new web project, add a label and ...
14
votes
5
answers
5k
views
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.
...
14
votes
1
answer
12k
views
What Jenkins plugin can be used for .NET web site deployment?
We use:
- SVN
- Jenkins
- MS Build plugin
We have several Web Form/MVC/Web services.
We are going to setup Microsoft Web Deploy and run bat file from Jenkins.
Maybe someone can suggest better way ...
14
votes
4
answers
18k
views
Website is running a cached dll somehow after changing it
The situation is I made a minor bug fix to a class, so they want to just deploy the dll affected. They stopped IIS, replaced the dll in the /bin folder of the iis directory for the web site with the ...
14
votes
1
answer
4k
views
How to set MSDeploy settings in .csproj file
Is there a way to set MSDeploy parameters in .csproj file itself of ASP.NET MVC project? Particularly a "skip" parameter, which should skip a "Temp" folder.
-skip:objectName=dirPath,absolutePath="\\...
14
votes
8
answers
7k
views
ASP.NET Web Deployment Projects: getting rid of .compiled files
I'm using a Web Deployment Project in Visual Studio 2008 in order to prepare my ASP.NET application (ASP.NET web application, not ASP.NET web site) for being copied to several servers. I have to copy ...
14
votes
3
answers
1k
views
Is there a way to make the VS2010 publish wizard to copy App_offline.htm while it is publishing the site?
After seeing the Hanselman "You are doing it wrong" video I start to use the Web Publish feature of VS2010.
What I'm really missing is that the websites sometimes gives errors while the site is ...
13
votes
5
answers
45k
views
IIS forgets virtual directory permissions - An error occurred loading a configuration file: Failed to start monitoring changes
I have a website with a virtual directory that contains PDFs.
Users access the PDFs by using a URL such as http://myApp.com/PDFs/12345678.pdf, where PDFs is a virtual directory mapped to \\\...
13
votes
7
answers
21k
views
global.asax works on local computer but not after i publish to server
How can I get my global.asax file to publish to our ftp site?
I have added a global.asax file to my project (using asp.net with c# from vs2010) which works great on my local machine. Then when I ...
13
votes
4
answers
5k
views
How are you using the Machine.config, or are you?
For ASP.Net application deployment what type of information (if any) are you storing in the machine.config?
If you're not using it, how are you managing environment specific configuration settings ...
13
votes
3
answers
22k
views
Updating a DLL in a Production ASP.NET Web Site bin folder
I want to update a class library (a single DLL file) in a production web application. This web app is pre-compiled (published). I read an answer on StackOverflow (sorry, can't seem to find it ...