Interested in Sitecore?

Apply for our Mentorship Program by emailing your resume to chris.williams@techguilds.com. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Thursday, February 14, 2008

Visual Studio Goes Off In Limbo

AutoRecover is a feature in VS 2005, which used for automatically saving work on a regular basis. This will be helpful when power failure or system crash. Anyway, we could turn off it in VS 2005 optionsEnviornmentAutoRecover http://msdn2.microsoft.com/en-us/vstudio/aa718517.aspx [AutoRecover in the IDE] If you go into Tools/Options and click on the environment tab you may see an option for AutoRecover.If not there is a checkbox at the bottom that says show all options then it will show up.When you click on AutoRecover you will notice that it tries to save your work every 5 minutes.

Friday, February 1, 2008

Trouble installing Visual Studio or .net Framework

I was having trouble installing Visual Studio 2008 after installing earlier betas of it.
Unfortunately the uninstall in add/remove programs was broken. I came across this tool and used it to remove the older frameworks. I thought I would pass it on:

http://blogs.msdn.com/astebner/archive/2005/04/08/406671.aspx

Wednesday, January 23, 2008

Setting User Control Properties in Repeaters

The way microsoft parses this is kind of silly but you need to ensure that you use a single quote to wrap your property values. You CANNOT place any text between the ' and < % or it will fail.

'< % # String.Format( "xsl/nav/{0}_config.xml" , DataBinder.Eval(Container.DataItem, "MenuItem_Name" )) % >'

Friday, December 14, 2007

Could not load file or assembly Access is denied

Microsoft in its wisdom does some silly things. Sometimes some machines will have this set
and other machines not by default. In any case, if you do not have this set it will not allow you
to include projects inside another tfs project.

This may also cause this to occur in other circumstances. If you get this error here is the solution.

  • Use windows explorer to go to C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
  • Right click on the Temporary ASP.NET Files and click properties
  • On the securities tab give User full control

See article below:

Could not load file or assembly Access is denied

http://blogs.msdn.com/sayanghosh/archive/2007/04/21/solution-to-could-not-load-file-or-assembly-or-one-of-its-dependencies-access-is-denied.aspx

Hope this article is helpful. If you run across any issue that you fixed or found a link to a useful solution or tip email me at chrisw_88@hotmail.com or susan@clinchportal.com

Saturday, November 17, 2007

Subsonic - All your Databases Belong To Us

Recently a colleague of mine introduced me to an amazing technology. Subsonic is a tool that integrates closely with Visual Studio 2005 and will generate an object model for your database at compile time based on the database connection in your web.config.

This greatly simplifies your code as all the connection logic, proc calls with types etc all disappear into a couple lines of code. Its amazing. You should really look into it. I have provided a couple links here to get you started.\\

Here is the main site for the project: http://www.subsonicproject.com/
You will also want the tools that integrate with Visual Studio 2005 available at:
http://www.codeplex.com/subsonictools

If you have any cool links about subsonic post comments here with them or email them to me at chris@clinchportal.com or chrisw_88@hotmail.com

Thursday, September 20, 2007

Enumerating SQL Servers from .NET 2.0

I ran into a situation where I was not sure of the name of the SQL Server I would be using on a hosted site. I found this code that helped to find a list of them all.

http://dotnetslackers.com/SQL/re-20320_Enumerating_SQL_Servers_from_NET_2_0.aspx

Hope this helps you too.

Thursday, August 9, 2007

Name/Value Collections

I noticed a few people are looking for information on name/value collections so I did a search and have posted a few links I have found here:

Name Value Collection Example: http://www.dotnet247.com/247reference/System/Collections/Specialized/NameValueCollection.aspx

How to convert NameValue Collection when using ViewState http://www.thescripts.com/forum/thread114883.html

name value collection in a web service:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=188315&SiteID=1

How this changes in Orca:
http://weblogs.asp.net/scottgu/archive/2007/03/08/new-c-orcas-language-features-automatic-properties-object-initializers-and-collection-initializers.aspx