I contributed a Getting Started Guide to the open source jQuery Code Snippets project earlier today. Honestly, it doesn’t take much to install the bits and reap the benefits of the snippet collection, but I ran into a minor snag (as did another commenter) and I figured that documentation couldn’t hurt. Of course, the jury [...]
Continue reading about jQuery Code Snippets for Visual Studio
I have previously explained how to properly configure your web deployment projects to replace web.config sections. The example I used was pretty standard – swap out connection strings to support the specific deployment environment. It worked great, right? Well, today this technique complete fell short for me as I was dealing with a custom section. [...]
Continue reading about Web Deployment Projects and WebConfigReplacementFiles for Custom Sections
I’ve been using the T4Toolbox to help generate my ASP.NET MVC models and scaffolding for a while now. Another developer tried using my generator project last week and ran into troubles due to a breaking change around the RenderCore() and TransformText() methods in support for VS 2010. If you upgraded to the latest version of [...]
ASPX and ASCX files are compiled on the fly when they are requested on the web server. This means it’s possible that you aren’t catching compile errors associated with your views when you build your ASP.NET MVC project in Visual Studio. Unless you’re willing to click through your entire application, rendering each view looking for [...]
Continue reading about Uncovering Compiler Errors in ASP.NET MVC Views
Noah and I continue our screencast series by sharing our approach to managing external dependencies referenced within a .NET solution. This is another introductory episode but you might find a hidden gem in the short 4-minute clip. ELMAH (Error Logging Modules and Handlers) is the external dependencies we are focusing on in the presentation. If [...]
In this screencast, Noah and I demonstrate preferred practices around .NET solution setup, naming conventions and version control. I consider this an introductory video. If you’ve been around the block, you might want to skip this episode but if you’re a .NET/Visual Studio newbie, it may be worth a look. YouTube – Visual Studio [...]
One may quickly build and deploy an ASP.NET web application via the Publish option in Visual Studio. This option works great for most simple deployment scenarios but it won’t always cut it. Let’s say you need to automate your deployments. Or you have environment-specific configuration settings. Or you need to execute pre/post build operations when [...]
Continue reading about Deploy ASP.NET Web Applications with Web Deployment Projects
A new ASP.NET MVC project includes preconfigured Membership, Profile and RoleManager providers right out of the box. Try it yourself – create a ASP.NET MVC application, crack open the web.config file and have a look. First, you’ll find the ApplicationServices database connection: <connectionStrings> <add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/> </connectionStrings> Notice the connection [...]
Continue reading about Getting Started with ASP.NET Membership, Profile and RoleManager