Top ASP.NET Items

Sponsors

Archives

February 2010 - Posts

No Intellisense with VS 2010 RC (and how to fix it)
[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] Patrick recently posted about something he found odd when installing the VS 2010 RC – which was that code intellisense for C# wasn’t working.  When he pulled up Tools->Options and checked under the Text Editor->C# settings he noticed that the reason Intellisense wasn’t working was because his profile had them turned off – and he couldn’t understand why it was configured to be off by default: Why does this happen? The above situation occurs because: 1) When you run VS 2010 the first time on a machine that has had VS 2008 installed on it, it asks you if you want to import your existing VS 2008 profile settings...
Setting up a continuous integration server for a CodePlex project using TeamCity and Mercurial
Continuous integration enables developers to have an automated way of validating the quality of their check-ins. A CI server will monitor your version control repository and on every check-in will build the project and at the very least run unit tests. If anything goes wrong (compilation error, failing test, etc.), the server will send e-mail to the team so the developer responsible for the faulty check-in can investigate and fix the problem. It’s an automated finger pointer if you will. It’s one of those things that seem obviously necessary for any project above a certain size but that is too often neglected. After all, you always run unit tests before you check-in, right? Right? One of the nice things about CI servers is that they are relatively...
View/ViewModel Association - Convention and Configuration-based Approaches
Some time back, I blogged about different options to hook up a view to its view model when following the ViewModel (aka MVVM) pattern. There are multiple approaches in use out there. I raised the possibility of a convention-based approach in addition to existing ones like the ViewModelLocator pattern. Motivation: I find the simplest way to explain ViewModel is to present it as a better code-behind , especially to the mainstream developer who is intimately familiar with the latter (at least in the .net world). With the code-behind approach the UI, its state and operations are all mixed up. The ViewModel pattern is of course designed to help separate application logic from the view, but now results in two discrete halves that need to be reconnected...
How to package COM component
If we want to package and deploy COM component for a web application only, we can simply reference them and change their “Copy Local” property to “True”.  For example, we can do the following to package a MVC project from VS2010. Create a MVC project In its references, change the following three assemblies “Copy Local” property value to True. System.Web.Mvc System.Web.Routing System.Web.Abstractions You can multi-select them and set the value together. Right click the project node and select “Build Deployment Package” Examine the package, you will see the above assemblies' corresponding dll files are included in the package’s bin directory.   Deploy the above package to a 4.0 site, no matter if the corresponding MVC runtime is...
Workaround: Missing Declarations for Controls in Designer File
We have seen some customers report the issue that certain controls are not getting generated correctly in the designer file in Visual Studio 2010 RC for the ASP.Net Web Application Projects. We are currently working on a fix for this issue for the final RTM release. Workaround: You can work-around this issue by declaring the missing controls in the code behind file for the ASPX page. Example: When you add a Button control with ID as “Button1” to the aspx page normally you should see the following code be generated in the designer file for this control. VB: Protected WithEvents Button1 As Global.System.Web.UI.WebControls.Button C#: protected global::System.Web.UI.WebControls.Button Button1; If this code is not being generated in the designer...
Free Sandbox Hosting for Visual Studio 2010 RC and ASP.NET 4.0 RC from Discount ASP.NET
Discount ASP.Net has updated their Hosting Sandbox for Visual Studio 2010 RC and ASP.NET 4.0 RC. http://www.discountasp.net/press/2010_02_16_free-asp.net-4.0-RC-hosting.aspx To learn more about the new Web Deployment features in Visual Studio 2010 check out this Step by Step Walkthrough on Web 1-Click Publish with VS 2010 To provide feedback on the RC please visit the Visual Studio Connect site .  You can also contact the Web Tooling team directly by sending mail to vsweb@microsoft.com Bradley Bartz | Visual Web Developer Read More...
Patch for VS 2010 RC Intellisense Crash Issue Now Available
[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] Last week I blogged about an intellisense crashing issue that is unfortunately in the VS 2010 RC.  Crash Symptom If you are encountering frequent VS 2010 crashes when you are typing in the editor while Intellisense is popping up and/or being dismissed then you are running into this issue. Patch Now Available This morning we made available a VS 2010 RC patch which fixes this issue.  You can download and run it here .  Please apply it if you are encountering any crashes with the VS 2010 RC, or if you have a tablet, multi-touch, screen-reader or external devices attached (including Wacom tablets, phones...
RIA Services at MIX10
A bit about my RIA Services talk at MIX10... let me know what you'd like to see. [ Full post continued here... ] Read More...
Why isn’t there a CTRL+ALT+DEL key?
I vaguely understand why this weird key combination from the 20th century offers some security advantage that somehow justifies that it’s still present on enterprise versions of Windows, but why does it have to be so hard and inaccessible? How hard would it be for hardware manufacturers to add a single CTRL+ALT+DEL key, instead of the silly ThinkVantage, ScrLk, Pause, Fn or Caps useless junk keys they feel obligated to inflict on us? Put it under protective glass if you have to, but please make it possible for me to login with one hand. Think of the benefits: no more support calls asking where the CTRL+ALT+DEL key is, cause it actually exists, now. Read More...
Intellisense Crashing fix for VS 2010
[In addition to blogging, I am also now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu ] We shipped the VS 2010 RC on Monday , and have seen some great feedback regarding performance and stability with it. One issue, though, that we have seen a number of people run into is an intellisense crash that happens very frequently on machines that have UI Automation enabled and certain devices connected. Crash Symptom If you are encountering frequent VS 2010 crashes when you are typing in the editor while Intellisense is popping up and/or being dismissed then you are running into this issue. Why does the crash happen? The most common cause of the crash happening is that you are running a machine that: Is a Tablet...
More Posts Next page »