More info on publish links in Visual Studio 2012

More info on publish links in Visual Studio 2012

  • Comments 2

Within the web publishing tools in Visual Studio there are a few places where we point to more resources. For example if you open a VS publish profile (.pubxml) file you will see a link in the comments pointing to http://go.microsoft.com/fwlink/?LinkID=208121.

Note: you can find the VS publish profiles in your web project under Properties\PublishProfiles or My Project\PublishProfiles

This is an “FWLink” and we can set the destination URL to whatever value we want. In this case the FWLink points to How to: Edit Deployment Settings in Publish Profile (.pubxml) Files and the .wpp.targets File in Visual Studio Web Projects. In some cases the FWLink ends up pointing to a blog post instead of a formal doc page.

I will point a few FWLinks to the blog post for more info on the specific topics. See below for each item.

 Publish message indicating 4.5 is not supported by hosting provider

If you publish an ASP.NET 4.5 web project to a Windows Azure Web Site (WAWS) before ASP.NET 4.5 is supported by WAWS you will receive the following error.

Error : Your hosting provider does not yet support ASP.NET 4.5, which your application is configured to use. To learn more about this please visit: http://go.microsoft.com/fwlink/?LinkId=247936

Since we know that the end point will not be able to run an ASP.NET 4.5 we let you know about it before your site is published. If you switch to ASP.NET 4.0 you will be able to publish your project. If you want to bypass the 4.5 check you can do that too. Just edit the VS publish profile (.pubxml file) and add the following immediately above the closing </Project> tag.

<PropertyGroup>
  <_Enable45Check>false</_Enable45Check>
</PropertyGroup>

Database publishing in Visual Studio 2010 when running on Windows XP

One of the features that we added is the ability to incrementally publish database schema along with your web project. We rely on technology created by the SQL group which are a part of SQL Server Data Tools (SSDT). Unfortunately these tools do not support Windows XP. Because of that you will see the following message.

clip_image002

When we shipped Visual Studio 2010 we added support for non-incremental database publishing. You can use those features when running on Windows XP. You can read more at Deploying a SQL Server Database. Note: for users not running on XP its recommended to configure database publishing on the publish dialog. You can find more info on that at How to: Deploy a Web Application Project Using One-Click Publish in Visual Studio.

 

Sayed Ibrahim Hashimi | @SayedIHashimi

Leave a Comment
  • Please add 2 and 5 and type the answer here:
  • Post
  • Sayed - it seems web publishing breaks and can only be recovered with a restart of VIsual Studio: stackoverflow.com/.../publish-wizard-errors-in-vs2010-and-2012 This happens quite a lot to me personally and I have not seen this mentioned or addressed by anyone at MSFT. I am reporting this to you as you appear to be the PM or at least know the PM responsible for this component. :-)

  • Hi Todd, we discovered this bug shortly after finalizing the RTW components for web publishing. To give you a bit of background, the underlying issue was very difficult for us to uncover. After some through investigation we were able to pinpoint the issue to being related to how internet connections are managed by the singleton RCW object used by WPF and whether requests are coming in on an STA or MTA thread.

    Fortunately we were able to work around the underlying issue and have a fix ready. We are planning to update the web publishing bits in a few months which should resolve this issue once and for all. Until then the workaround is to close VS and then re-open it. I know that this is not an ideal workaround, but that is the best that we can do at this time.

    Thanks,

    Sayed Ibrahim Hashimi

Page 1 of 1 (2 items)