Making The VS2010 Publish Wizard To Copy App_offline.htm While It Is Publishing The Site?

Sep 2, 2010

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 publishing because the feature does not copy the app_offline.htm file to the server.

I do not want to start using MSDeploy scripts, because I have several sites and want to keep it simple.

Maybe there is a simple tweak to tell the wizard to copy and then delete the file.

View 1 Replies


Similar Messages:

Configuration :: VS2010 Publish From A Web Site And Enable Check For Application Updates?

Jan 10, 2011

I have a program which I would like to publish to my company's intranet server so that employees are able to implement updates. I am not sure how to go about this but I have done some research on IIS and I was wondering if anyone could clue me in a little more with what I need to do. I have not yet downloaded IIS to give it a try as I'm not sure where I would go from there.

View 1 Replies

Custom App_offline.htm File During Publish?

May 17, 2010

When I publish my ASP.NET MVC application it generates a app_offline.htm file to take the site offline while it updates the website and then deletes the file once the publish is successful.

This is cool and I really like the idea, but I want to create my own custom app_offline.htm file that the publish action is aware of and put it somewhere where it doesn't effect my development site - i.e. it doesn't sit in the root of my development site rendering it offline all the time.

EDIT: From the comments on Scott Gu's post about app_offline.htm, it seems that customization of the app_offline.htm file wasn't possible with VS 2005 - has this changed with VS 2008 and now VS 2010?

View 3 Replies

C# - How To Create Pre-publish And Post-publish Scripts In VS2010

Nov 21, 2010

I would like to create a script that does some actions, then publish the site to the production, and then runs another script.Is that possible in VS2010?

View 2 Replies

What Are Possible Causes For App_Offline.htm Not Bringing The Site Down

Aug 23, 2010

Normally, I use App_Offline.htm for taking the site offline. But occasionally, when I do that, the site just hangs (like in: browsers wait forever, server gives no response at all). This seems to happen on an updateable site when I change something, like a control and afterward, when it doesn't go quick enough (site hangs), I place App_Offline.htm in the root of the website.

In most cases, this immediately takes down my site. But occasionally it doesn't. In those cases, I cannot just stop the website (when I restart, the behavior continues). Stopping the application pool doesn't let me restart the same app pool. The only two solution so far is restarting the whole IIS web service.

I'd like to prevent this from happening. Is this a bug in IIS not "breaking all actions" when App_Offline.htm is found? I use IIS 7 with Windows 2008 SP2 64 bit.

View 2 Replies

How To Publish Site From Command Line With Some Publish Profile

Aug 5, 2010

msbuild /t:publish [use PublishProfileName] someproject.csproj

View 2 Replies

Configuration :: Using The Database Publishing Wizard 1.1?

Jun 5, 2010

If I'm using SQL Express 2008, can I use the Pub Wiz? When I try to download it, it takes me to download -Microsoft SQL Server 2005 Management Objects Collection. Do I need this if I use 08 Express? Do I need to download this 05 thing with SQL 08?

View 1 Replies

MVC :: VS2010 IIS7 Publishing Problem - Not All Files Transferred?

Jan 18, 2011

I've been building an MVC 2 site on my local machine which I then hoped to FTP to my companies IIS7 server.
When I first started using the MVC in VS2010 I published in VS via FTP and everything was fine, asp.net was properly installed and the mvc library was there.

Now I'm faced with a problem that I can hardly define, let alone get around:

When I attempted to publish, the controller folder wasn't being transferred, so I manually copied it across thinking it was just an FTP problem, but then I got errors complaining about an assembly reference in my web.config file:

Parser Error Message: Could not load file or assembly 'System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

So I'm guessing that whatever it is that is preventing VS transferring the controllers folder is doing the same with some of the MVC configuration stuff.

Another oddity is that thought the initial settings worked, I've since scrapped the orignal project and started again, I've had a look back at it and tried to use the original settings to FTP across but they now don't work and have the same problem, as does my bosses machine(previously unused version of VS) when I tried to FTP across the default MVC2 project.

VS reports that the FTP publish has succeeded and the controller files aren't listed in the Publish.XML file on either machine.

View 5 Replies

Visual Studio :: Publishing WCF Service In VS2010 And IIS7

Apr 1, 2010

there is probably a really simple answer to this, but I have the flu and can't think straight. I am taking advantage of being out sick by downloading VS2010RC and playing around with it. I created a simple WCF service (my first in this foundation, but not my first service). Its a redo of an existing asmx service I created a while ago. I commented out all the processes, and am simply trying to publish the service to my local IIS7 to see the discovery working. I have setup a new site to host the service ( I tried using Default as well, with the same results). I right click the project in VS and select publish. It is prompting me for a login even though the site is setup for anonymous access. If I try to use WebDeploy, it can't find my site, and if I use FileSystem, it give me a simple "Publish failed" with no details. Can someone point me to a tutorial or something that describes the publish process in VS2010 or give me some leads as to what setup needs to happen either in VS or ISS to let me publish?

View 4 Replies

Configuration :: VS2010, IIS 7.5,Publishing XML Parsing Error: No Element Found?

Nov 9, 2010

I use VS2010,IIS 7.5,just created simple ASP.NET WebForms Application,created ASP.NET 4.0 pool with .NET 4.0 setting and trying to Publish this site IIS.

Successfully published, but when I open this site in a browser, see error:
XML Parsing Error: no element found
Location: http://localhost/wa1/Default.aspx
Line Number 1,Column 1:

Who knows where is error?I was looking on this site for an article about publishing in ASP.NET 4.0 and VS2010,but seems like there is no sperate article about it.I am installing VS2008 and going to try the same.

View 5 Replies

SQL Server :: Database Publishing Wizard 1.1 Not Supports SSMS 10.0?

Dec 19, 2010

After I successfully installed Database Publishing Wizard [URL], I use it to connect to my local database server using SSMS 10.0 to generate a .sql file but I'm getting this error "This SQL Server version (10.0) is not supported."

Is there any updated version of DPW 1.1 that supports SQL Server 2008?

View 1 Replies

Create SQL Server Deployment Script Using Database Publishing Wizard

Jan 4, 2010

I'm getting the following error when using the Database Publishing wizard to script a SQL Server Express database for deployment. I have googled for hours unsuccessfully. Anyone had this isssue or know how to solve it?

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.

View 2 Replies

How To Easily Publish A .NET Web App Using VS2010 On Computer To A VM At Work

Sep 1, 2010

The old school way is to copy and paste and the files.. so we don't want that anymore..

So I notice VS2010 has 'Publish'... Should I use file system and just create a shared drive on the VM and publish that way?? Should I FTP and set up FTP on the VM FTP server? Should I use web deploy?? But that seems to be made for commercial web hosting ?

View 1 Replies

Visual Studio :: Publish MVC 3 Project - VS2010

Mar 31, 2011

I'm trying to publish my mvc3 project to a web host server, I right clicked my project and selected publish, there i entered the ftp information, VS2010 uploaded the files to the ftp, but when i try to surf to the remote site i get an error "Directory Listing Denied". all guides I found requierd an installation on the web host side, is there no way to just upload the site like in classic asp?

View 2 Replies

Visual Studio :: About The VS2010 FTP Publish Status / Progress ?

Nov 15, 2010

I'm the first time using VS2010 deployment tool. I selected FTP publish, and all the configurations are correct. I'm just confused that after I clicked publish, there is no window or text shows the status of the uploading progress. When would it be finished? It's taking so long, and in the meantime I can't do anything.

View 2 Replies

Making Backup File Copy?

Mar 14, 2011

I need to make a backup copy of a file on a remote server. The backup will remain in the same directory on that server. The problem I am having is that the file is large and it appears to be copying it back to the server the code is running on and is taking too much time. Is there a way to make a copy of the file in place without it being sent across the network?

View 4 Replies

Configuration :: How To Copy Website Or Publish Via WebDAV

Oct 18, 2010

Has anyone found a way to publish or "Copy Web Site" when using webDAV?

View 2 Replies

VS 2010 - Publish Web Doesn't Copy SVG Files

Mar 7, 2012

How can I tell Visual Studio to copy .svg files when I publish from the "Publish Web" dialog (right-click on Project and select "Publish...")? It's copying all other image files to the target directory, but is not copying .svg files.

View 3 Replies

How To Use VS2010 One-Click Publish (MsDeploy) To Deploy Remotely From The Command Line

May 10, 2010

On the remote web server I have installed the remote service http://x.x.x.x/MsDeployAgentService.If I use the Web Application Project's Publish command in VS2010 I can successfully publish to this remote web server and update a specific IIS website.

What I want to do now is execute this capability from the command line.I am guessing it is two steps. First build the web application project using the relevant build configuration:

msbuild "C:MyApplicationMyWebApplication.csproj"
/T:Package /P:Configuration=Release

Then issue the MsDeploy command to have it publish/sync with the remove IIS server:

msdeploy -verb:sync
-source:package="C:MyApplicationobjReleasePackageMyWebApplication.zip"
-dest:contentPath="My Production Website",
computerName=http://x.x.x.x/MsDeployAgentService,
username=adminuser,password=adminpassword

Unfortunately I get an the error: Error: (10/05/2010 3:52:02 PM) An error occurred when the request was processed on the remote computer.

Error: Source (sitemanifest) and destination (contentPath) are not compatible for the given operation. Error count: 1.

I have tried a number of different combinations for destination provider but no joy .Has anyone managed to replicate VS2010 Web Application Project "One Click" Publish from the command line?

View 2 Replies

Visual Studio :: ClickOnce (Publish Wizard) Deployment / - Run Code On Uninstall

Nov 5, 2010

I have an application that I'm deploying via the Publish Wizard from Visual Studio 2008. I've added some code to my application that adds a few registry keys. I'd like to execute some code during the uninstall process to remove these registry keys.

View 1 Replies

Visual Studio :: How To Uninstall VS2010 Trial And Reinstall Licensed Copy

May 11, 2010

I installed a VS2010 Trial and have since downloaded a copy from the company MSDN account. I uninstalled everything that said VS2010 in the Programs area and am now attempting to reinstall the MSDN copy. It does not work. The install ends up through all kinds of errors and ends with an unsuccessful install message.

What do I have to do to completely clean off the old versio, or may the new one overwrite everything?

View 2 Replies

C# - Publishing A Site On The Web?

Nov 23, 2010

I have created a website. How do I publish it on the web so that it can be accessible from anywhere?

View 3 Replies

Configuration :: Making Publishing Profiles Dependent On Build Configuration Or Vice Versa?

Mar 10, 2011

Is there any way that I can make it so that to use a "Production" publish profile, it would require that the build configuration was set to Release?

I believe you're supposed to be able to customize the profiles with add-ons or something...?

View 1 Replies

WebMatrix :: Trying To Publish A Sugarcrm Site Created In Webmatrix To Site Hosted On Godaddy?

Mar 10, 2011

I am trying to publish a sugarcrm site I created in webmatrix to my site hosted on godaddy, however when i go into the publish settings and enter the server info, passwords etc., I can only get the connection to validate for the FTP protocol setting. When i click the button to test and validate the connection for webdeploy instead of ftp, it tries then says connection timed out. How do I get this to work so that I can publish my site on godaddy?

View 3 Replies

Configuration :: Database Publishing Wizard / Giving "Invalid URI" Error?

Mar 18, 2010

I can't figure out why it won't publish the database to my hosting account. I have an SQL server set up with a username and password, etc. but I don't understand why it won't connect.

It keeps giving me an "Invalid URI" error. I don't know what to do or what to look for.

I'm just learning ASP.NET and I don't understand what it wants besides what I've given it already.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved