Top ASP.NET Items

Sponsors

Archives

Browse by Tags

All Tags » Joe Cartano (RSS)
The Aspnet Compiler Build Task in Visual Studio 2010 ASP.Net MVC 2 Projects
If you crack open the project file in an ASP.Net MVC 2 application (in notepad or unload your project and then click “ Edit *.proj” ), you will notice an interesting line. <MvcBuildViews>false</MvcBuildViews> This is an option to enable a post build task that will run the Asp_net compiler. This command will compile your aspx pages and report any errors in the pages at design time. Ordinarily the compiler runs before your site loads for the first time after making a change. This is why you can debug a website or web application with errors in the markup and not see an error until actually running your site. So why is the option set to false by default? I obviously want errors at design time before I run the site! Well, if you turn...
Visual Studio 2010 MVC 2 Upgrade Wizard
Prior to the RTM release of Visual Studio 2010, the only way to upgrade an ASP.Net MVC 1 application to ASP.Net MVC 2 was to use Eilon Lipton’s tool . With the release of Visual Studio 2010 you will now be able to open your MVC 1 projects in Visual Studio 2010 and upgrade them to ASP.Net MVC 2 projects. Also, you can upgrade the target framework of the project to 4.0 or continue to target the 3.5 framework. When you first open an ASP.Net MVC 1 application in Visual Studio 2010, you will see the familiar Visual Studio Conversion Wizard. ASP.Net MVC specific code runs during this wizard and updates all System.Web.MVC references from version 1 to version 2. The wizard also updates the version numbers in the project’s Web.config and the Views folder...
Single Project Add View in ASP.Net MVC 2 Preview 2
Last week we released ASP.Net MVC 2 Preview 2 for Visual Studio 2008 Sp1. In the box support for single project areas is now included and the Add View tool has been modified to streamline this scenario. A walkthrough that creates two simple single project areas can be found here . If you follow the steps in the walkthrough you will notice that Add Controller and Add View are now available in the single project areas in your ASP.Net MVC 2 Preview 2 application. Here are some screenshots that show off the tooling changes. Right-Clicking the Controllers folder of any single project area (Areas –> Blog –> Controllers) will invoke the familiar Add Controller dialog. The new controller will be added to the Controllers folder of the single project...
ASP.Net MVC for Visual Studio 2010 Beta1 Codeplex
ASP.Net MVC for Visual Studio 2010 is available for download here: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=28527 . There is no new functionality but you should be able to upgrade your applications to target the 4.0 framework (or leave them as is) if you would like to play with ASP.Net MVC on Dev10. Please read the release notes for a couple of gotchas. If you never read release notes, please note the following: If you are working with Visual Studio Team System 2010 and the Historical Debugger is enabled, Visual Studio might occasionally crash. If you experience this problem, disable the Historical Debugger. You can disable the Historical Debugger in Tools->Options. Note that this will be fixed in Beta 2. Hope this...
Updated NUnit Templates for ASP.Net MVC 1.0 RTM
ASP.Net MVC 1.0 RTM has been out for a while and I noticed that people are still downloading an NUnit sample project I created for ASP.Net MVC Preview 3. Since then an AccountController class and a corresponding set of unit tests have been added to the MVC Application project. I created an updated set of NUnit templates with tests for the Home and Account controllers. To install the templates, just extract the zip file from the link below and run installNUnit.cmd . VWD Express is supported along with VSTS as well as support for x86 and x64 bit OS's. If you are installing on Vista or higher, run the cmd file as an admin. NUnit Test Templates Below is a screenshot of the NUnit AccountControllerTest class for Visual Basic. If you build a new...
ASP.NET MVC Release Candidate 2
ASP.NET MVC Release Candidate 2 is live ! Check out Phil Haack’s blog, Haacked.com , for information on the new installer and some other general release info. The release is mostly focused on responding to customer feedback but there are some minor tooling improvements and bug fixes that are worth calling out. Tooling Improvements And Important Fixes After the first RC was released, we found that the Add View tool generated exceptions when trying to get type information from a type in one assembly that somehow depended on type information (for example, implementing an interface) in another assembly. You should now be able to add scaffolded views for these types after upgrading to RC2. Previously, when adding a scaffolded view, the primary key...
Hotfix Available for ASP.NET MVC Crashes With Azure/Power Commands/Resharper
If you have been experiencing Visual Studio crashes when opening view pages in design view or having trouble installing ASP.NET MVC due to problems with third party add-ins such as Power Commands, please try out the just released CLR hotfix here: https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16827&wa=wsignin1.0 For Vista/Windows Server 2008 32 bit: Use Windows6.0-KB963676-x86.msu For Vista/Windows Server 2008 64 bit: Use Windows6.0-KB963676-x64.msu The source of the crash was a CLR loading issue that appeared when using third party addins or Azure Tools while working on ASP.NET MVC Projects in Visual Studio. If you are still experiencing crashes when working with ASP.Net MVC projects after installing...
ASP.NET MVC 1.0 Release Candidate now available in Web Platform Installer
ASP.NET MVC 1.0 RC can now be installed with Web Platform Installer: http://www.microsoft.com/web/channel/products/WebPlatformInstaller.aspx Here is a quick description of Web Platform Installer from the Web Platform Installer website: “The Web Platform Installer (Web PI) is a simple tool that installs Microsoft's entire Web Platform, including IIS, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web Platform Installer’s user interface, you can choose to install either specific products or the entire Microsoft Web Platform onto your computer. The Web PI also helps keep your products up to date by always offering the latest additions to the Web Platform.“ I tried it out and was...
Debugging A Web Site With A Host Header
If you have downloaded the RTM version of SP1 for Visual Studio 2008, you may get an error when trying to debug a Web Site with a host header on IIS 6 or IIS 5.1. The error message reads: "Unable to start debugging on the web server. An authentication error occurred while communicating with the web server. Please see Help for assistance." (Figure 1: Error Message when debugging a Web Site with a host header. In this case, the host header is www.test.com ) Scope This issue only appears on Web Sites configured with a host header on machines with IIS 6 or IIS 5.1 and the RTM version of the .Net Framework 3.5 SP1. Background Lukasz Pawlowski, a program mangager on the Reporting Services team, published a great blog post describing the...
More Posts