The SDK for the ‘net-1.1′ framework is not available or not configured.

February 5, 2006

I’m in the process of trying to implement NAnt into our build process. Once I got a basic script going for one of our projects, it was fairly trivial to implement it for others up the chain. Trivial until I got to the web project. No surprise there, right? We’ve all lamented about how annoying it is to deal with web projects and the complexities and frustration they introduce.

Anyway, NAnt kept complaining that I was trying to compile a web application and that I needed to use the <WebMap> node to define the relationship between the project file and the web site where it was running. I spent a couple of hours on it to no avail. I tried all sorts of different combinations to get it to work but had no luck. So, I went extreme and decided that once and for all I had had enough of Visual Studio’s web application crap. The NAnt book I’ve been working from (Expert .Net Delivery) actually recommended early on in the process to ditch web projects and referenced Fritz Onion’s page on ASP.NET Applications without Web Projects.

I’ve been aware of the ASP.NET Applications without Web Projects for a long time now but had never taken action on it because from a quick glance, it always seemed that there were lingering issues: loss of design time functionality (Yay!), inability to debug, etc. However, I gave it a pretty thorough read this time and decided that the issues weren’t pervasive and were limited to a few users only. Plus, once I actually read the instructions, I realized that it was pretty trivial to implement and just as trivial to reverse if I had the need to do so. So I spent a little time unhooking everything and held my breath when I ran NAnt against it for the first time. Great. I got past the other errors, but now I was facing: “The SDK for the ‘net-1.1′ framework is not available or not configured.”

I spent an hour or so trying to find the answer to get me past this hurdle, but wasn’t have much luck. I was afraid I was screwed since this would be one of those situations where you can’t get any help because you are doing so many different things at once. I was almost to the point of reversing everything when I gave it one last search and came up with the following thread: Build error when using task. It appears that because of the resource files used in ASP.Net apps, that you need a little more to compile than just the regular old .Net framework. And this would explain my situation. I am running the NAnt scripts on a server which has the minimum amount of application cruft on it as possible. As such, I only installed the .Net Framework and didn’t install the SDK back when I brought it online.

So, I dug around in our MSDN subscription and found the SDK DVD, grabbed the install I needed and installed the SDK on the server. Voila! The NAnt build process ran like a charm. OK, it made it past that error and hung up on another unrelated error. But for the purposes of this article, it installing the SDK got rid of the “The SDK for the ‘net-1.1′ framework is not available or not configured.” I was experiencing with my NAnt script.

Popularity: 4% [?]

Comments

One Response to “The SDK for the ‘net-1.1′ framework is not available or not configured.”

  1. sriram on March 21st, 2006 12:48 pm

    That was really a good post, I liked the way you have explained. This has a saved lot of time to me.

    Thanks
    Sriram

Got something to say?





MyHomePoint

Having trouble keeping track of everything going on at home? Is the refrigerator organizer not cutting it anymore? We feel the same way...
Check out MyHomePoint »

Close
E-mail It