Posts
822
Comments
686
Trackbacks
1
ASP.NET
Fix: Getting rid of weird Asp.Net MVC 3 “?area=” links

This is potentially a fix without a problem, but… Using syntax like this (I’m using T4MVC here): .ActionLink("Home", MVC.Home.Index()) I expect to have the link rendered as: http://localhost/ Yet, sometimes, it would render as: http://localhost/?area= WTF?  What’s with that?  There is (AFAIKT) no functional difference between them, but I found it annoying. My google-fu failed me for quite a while until I saw a random comment in some post and found that if I used this syntax: Home I always got the right rendered link. Why?  I...

posted @ Sunday, January 22, 2012 12:27 AM | Feedback (1)
The item 'T4MVC1.cs' cannot be deleted

I ran into this problem about a month or two ago, and don’t remember how I fixed it. Every time I build my solution which uses T4MVC, I get this error unless I manually delete the file.  Also, note that it is “T4MVC1” and not “T4MVC.”  This happened the last time as well, where somehow the solution thinks it needs to name the file differently. I will post the solution whenever I figure out what it is so that it is documented for myself the next time it happens.

posted @ Sunday, February 06, 2011 3:13 PM | Feedback (2)
Where and What is WebResource.axd?

I’ve always wondered about this.  Scott Mitchell gives the answer here. Snippet: “WebResource.axd is an HTTP Handler that is part of the .NET Framework that does one thing and one thing only – it is tasked with getting an embedded resource out of a DLL and returning its content.”

posted @ Thursday, October 28, 2010 2:17 PM | Feedback (0)
How to manage user stories?

Scott Bellware has a post about user stories in which he discusses a very obvious, but not obviously manageable, issue.  Since being ‘kicked to the curb’ so to speak from the MVP C# program, it’s easy to dismiss a lot of what Scott says as sour grapes.  Given our past lack of sympatico, so to speak, it would be easy to for me to dismiss a lot of what he says as someone grasping onto Ruby as a reaction to particular events.  But, I think that would be a mistake. When using a tool/language/whatever approach like I...

posted @ Tuesday, October 05, 2010 11:35 PM | Feedback (0)
T4MVC methods can only be passed pseudo-action calls (e.g. MVC.Home.About()), and not real action calls.

I’ve run into this error before when using T4MVC, and I posted on the Alt.NET yahoo group at the time.  I don’t recall if I ever explained the cause for this, and since I momentarily forgot about the resolution, I’m posting it here again, as much so that I know it will be lodged in my brain. When using T4MVC, there is a T4MVC.tt file that is added to your Visual Studio project/solution that generates related .cs files to enable T4MVC functionality.  If you change a controller to add a method that returns an ActionResult, and add code in...

posted @ Thursday, September 16, 2010 8:35 PM | Feedback (3)
A description of a not entirely ideal software development project

Names and places are changed to protect…well, to protect against any personal liability.  You can guess the rest. The first thing you will note about a project like this is that the actual end user and/or business requirements are not really defined until you are at least 75% through the development of the software that is supposed to support the requirements.  An important thing to highlight here is that the actual end user requirements and the business requirements are not necessarily the same.  No, it would be folly to think that they were. Another fine point is when...

posted @ Friday, June 18, 2010 7:21 PM | Feedback (0)
Windows 7 /Vista – Can’t Edit or Save Files in C:\Inetpub

I rarely ever put any code in C:\Inetpub, but some applications will put their websites there by default. And you may find yourself surprised when, even when using an Administrator account, you don’t have permissions to update files or save files under that location. Turns out it is an UAC issue.  From Thomas Deml, a Program Manager for IIS at Microsoft, in this post: Here is an easy fix. Run the following command from an elevated command prompt (right click the "command prompt" icon and select "Run as Administrator"). icacls %systemdrive%\inetpub /grant  %userdomain%\%username%:(OI)(CI)(F) /grant %userdomain%\%username%:F...

posted @ Sunday, November 22, 2009 7:06 PM | Feedback (16)
The new VisiCalc

Though I sometimes feel like it, I’m not actually old enough to know what VisiCalc was, but Joe Stagner wrote a post in which he made an analogy between the two: VisiCalc was THE spreadsheet of the day !  It might have done 2% of what Excel 2010 does, but when it was released it was an AMAZING innovation…ASP.NET/Web Forms was a perfect match for the skill set of the day (2001/2002) and was exactly what the industry needed at the time. I don’t know that I would say it was a *perfect* match, but I generally agree...

posted @ Tuesday, September 01, 2009 10:21 PM | Feedback (0)
Alt.NET Baby-ism

So, Ayende wrote a post criticizing some API related stuff about the ASP.NET MVC Framework. Phil Haack had a reply that dealt with why the design was done the way it was done, which contained the following funny comment: “We spent a lot of time thinking about these design decisions and trade-offs, but it goes without saying that it will invite blanket criticisms. Fortunately, part of my job description is to have a thick skin. ;) In part, by favoring usability in this case, we’ve added a bit of friction for those who are just starting out...

posted @ Thursday, November 06, 2008 7:31 PM | Feedback (3)
Visual Studio 2008 - Vista SP 1: IIS 7 Debugging No Longer Works After SP Install

Now, to be clear, I believe that I am still working in classic mode and running VS 2008 as Administrator to get around all the issues that came up when Vista came out, so this may not apply to you. But, after installing SP1 for Vista, I could no longer debug my web applications running on IIS7.  I worried about some major problem that would take hours if not days to fix. As it turns out, the WAS service was not set to auto-start, which prevented any of the application pools from starting, which prevented the WWW service...

posted @ Friday, February 22, 2008 8:02 PM | Feedback (0)
Full ASP.NET Archive