May 13, 2010

Blog Archives

Silverlight Tips of the Day Update

If you are interested in Silverlight 4 based Tips of the Day head over to my new Silverlight blog! So far I have over 20 postings as follows: http://www.silverlightdev.net/2010/05/12/silverlight-tip-of-the-day-19-using-bing-maps-in-silverlight/ http://www.silverlightdev.net/2010/05/11/new-silverlight-tips-blog-domain/ http://www.silverlightdev.net/2010/05/11/silverlight-tip-of-the-day-18-elastic-scrolling/ http://www.silverlightdev.net/2010/05/10/silverlight-tip-of-the-day-17-double-click/ http://www.silverlightdev.net/2010/05/07/silverlight-tip-of-the-day-16-working-with-ignoreimagecache/ http://www.silverlightdev.net/2010/05/06/silverlight-tip-of-the-day-15-setting-default-browse-in-visual-studio/ http://www.silverlightdev.net/2010/05/06/silverlight…(read more)

0

Another Error Creating Control in the Design View with Object Reference Not Set in Visual Studio 2010

In a previous blog, Controls State: "Error Creating Control" in the Design View in Visual Studio 2010 , I have discussed about an Error Creating Control issue related to accessing the Session state in the OnInit() method. Since then, I have discovered that the Error Creating Control will also show in the design view if we try to access any object not being instantiated at the design time inside the OnInit() method. For example, in a web application project, in a code-behind file that is adding controls dynamically to a page, similar to what was discussed in the article How To Dynamically Add Controls to a Web Page , we have code that’s accessing an object that is null at the design time as shown below When you switch to the design…(read more)

0

Hosting for ASP.NET 4.0 & Web Deploy from ORCS Web, DiscountASP, and MaximumASP

Visual Web Developer 2010 Express offers a great set of features for deploying web applications seamlessly. One of the key features is the ability to publish your web application from VS 2010 to a remote hosted web server along with its dependencies like SQL Server database using “Web One Click Publish”. VS 2010 integrates Microsoft Web Deployment Tool (MsDeploy.exe) to provide a fast, reliable and cohesive way of deploying web applications. Learn more about Visual Studio 2010 Web Deployment Features . And now that you have been introduced to Web Deployment, you may be looking for a hoster which is compatible with both the new framework (ASP.NET 4.0) and the Web Deployment features included in this release. The following web hosting providers…(read more)

0

Xml Document Transforms (XDT) for any XML file in your project

There have been several requests floating around to be able to use XDTs (the technology behind Web.Debug.Config/Web.Release.Config) with other XML files within the project…  To make that feasible I wrote a XmlDocumentTransform.targets   file which can generically transform any XML file using the standard Web.Config Transformation syntax introduced with VS 2010… Learn more about XDT & Web.Config Transformation here… Now to get started first download XmlDocumentTransform.targets file from my Skydive… Follow the below simple steps to get transformation working for any well formed XML file in your project… Step 1: Save the downloaded XmlDocumentTransform.targets to %ProgramFiles%\MSBuild\Microsoft\VisualStudio\v10.0\Web\XmlDocumentTransform…(read more)

0

General Performance Improvements in VS2010 since Beta2

When we released Beta2 in Oct 2009, there was a lot of customer excitement about the super cool features in VS 2010. However, one recurring complaint from customers was that the performance of VS 2010 was not on par with Orcas. Customers were experiencing general slowness in a lot of features that was hindering them with daily operations. We heard you all loud and clear. Since then our team has put in a lot of hard work to deliver a first class experience in Web Developement and have fixed a lot of performance issues seen in Beta2. The most notable ones are 1. Switching to Desiger from Editor 2. General Designer performance 3. Loading Toolbox 4. Command line msbuild 5. Build and Rebuild within IDE 6. Adding events by double-clicking controls…(read more)

0

Design View Performance Improvements

Hi, I’m Dan Chartier, I work on the Web Tools designer and helped improve its performance in Visual Studio 2010. For some background, Visual Studio 2008 completely replaced the original trident (Internet Explorer) designer with the FrontPage designer (which is also used by Expression Web). While we gained many improvements with this change, we received customer complaints about various performance problems that we wanted to address in 2010. In general, the designer is quite fast. This is especially true when editing pure HTML documents, which is what it was originally designed to do well. However, the designer edits more than HTML. It also has the rather sophisticated ability to edit ASP.Net pages containing various interesting web controls…(read more)

0

Visual Studio 2010 support with SQL Server

We’ve been getting a few questions by our users about Visual Studio 2010’s support for SQL Server versions. So I thought it would be good to address them here (when one person asks a question, there are probably others thinking the same question.) Visual Studio 2010 only supports SQL Server 2005+ Visual Studio 2010’s design time data tooling only supports SQL Server 2005 (including express editions) or later. What this means is that you will not be able to connect through the Server/Database Explorer to any older versions of SQL Server or use any of the data design tools that require Visual Studio to connect to the database (LINQ designer, datasource wizard, table editing, etc.) This does not mean that your ASP.NET pages will stop working; the…(read more)

0

Xml Document Transform (XDT) Snippets for VS 2010

During my PDC talk I had shown some of the snippets that can come handy while using Web.Config Transformations…  This post is intended to share the XDT snippets and instructions on how to install them to use them with VS 2010… Download XDT zip file from my SkyDrive Unzip the files and copy the inner XDT folder into %Program Files%\Microsoft Visual Studio 10.0\Xml\1033\Snippets After this the XDT snippets will be available for you to use within any XML file within VS 2010… To know how to use XDTs for Web.Config file please check out the post about Web.Config Transformations Few interesting points about Transforms & Locators which are worth noting to do pretty powerful stuff with your XML are: Transforms   – Transforms act on a XML…(read more)

0

Tip #103 revisited

In Tip #103 I showed a way of customizing the start page in order to add the New Website and Open Website controls.  It turns out that using a loose XAML file as I did in that post is not the recommended practice; in fact, it’s recommended that you…(read more)

0

Framework .NET 3.5 Sp1 required for targeting frameworks 2.0, 3.0 or 3.5 (multi-targeting) using Visual Studio 2010

We have had some customers ask why they are unable to target earlier frameworks .NET 2.0, 3.0 or 3.5 using Visual Studio 2010. Targeting earlier frameworks (also known as Multi-targeting) is in-fact fully supported in VS 2010, but there is a pre-requisite that .NET Framework 3.5 Sp1 must be installed on the machine for VS 2010 to be able to target any of the earlier frameworks 2.0, 3.0 or 3.5. During VS 2010 installation, only the latest 4.0 version of the .NET framework will be installed on your machine as part of the Visual Studio installation. So if 3.5 Sp1 was not already present on your machine, you will see only the .NET Framework 4 in the target framework dropdown of the New Website / New Project dialogs (In these dialogs, framework dropdown…(read more)

0

About

ASP Experts...All the latest news related to asp.net and web development in one location. We do the work for you so you don't have to :)