Ben Griswold on January 7th, 2010

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 string [...]

Continue reading about Getting Started with ASP.NET Membership, Profile and RoleManager

Ben Griswold on December 23rd, 2009

By default, the ReSharper cache is stored in the solution folder.  It’s one extra folder and one extra .user file.  It’s no big deal but it does clutter up your solution a bit – especially since the files provide no real value.

I prefer to store the ReSharper cache in the system Temp folder.  This [...]

Continue reading about ReSharper File Location

Ben Griswold on April 1st, 2009

If you have been following along with ASP.NET MVC, you know testability is a big part of the story. This fact is really driven home when the option to create a test project immediately follows that of a ASP.NET MVC Web Application. This is all really cool – especially the flexible test project templates.
Out of [...]

Continue reading about ASP.NET MVC Test Template Project for NUnit and Moq

Ben Griswold on February 18th, 2009

ClickOnce is pretty simple to get going once you know where to click (no pun intended.)  Here’s a down and dirty, quick start guide on how to implement ClickOnce in your application:
First, create a sample application in Visual Studio.  The attached sample is a WPF application using VS 2008.  ClickOnce configuration is managed through the [...]

Continue reading about ClickOnce Getting Started Sample

Ben Griswold on February 18th, 2009

Though the ability to debug Javascript in Visual Studio is great, perhaps you’ve noticed this feature can grind your development/debugging to a near halt.  Well, here’s what you need to do if you wish to be productive again.

Enable the following IE setting and you too can save yourself hours of debugging time:
IE  > Tools [...]

Continue reading about Visual Studio and Anonymous Code

Ben Griswold on January 6th, 2009

Late yesterday afternoon, I updated my project source and was met with the following error when attempting to build the solution:
The target “RunCodeAnalysis” does not exist in the project.   
If you have encountered this error, you know the Error List provides little help as the error description isn’t accompanied by a filename, line number or [...]

Continue reading about RunCodeAnalysis Does Not Exist

Ben Griswold on December 11th, 2008

I’ve publicly praised SubSonic and SSMS Tools Pack, but I haven’t posted adequate information on how one installs and uses the tools for their own development.  A colleague of mine was lucky enough to inherit my application recently and having this information documented would have come in really handy.  All the same, I gave a [...]

Continue reading about More on SubSonic and SSMS Tools Pack