Apr 21, 2009 04:54 PM|jpuckett|LINK
Ok. Couple things and we'll see if we can't fix your issue. Note that Jeff is a LOT more knowledgeable about IIS than I, and as such is certainl far more busy.
That being said:
1. You tried to build your first page and VWD said you were using .NET 2.0. Ok. You got a solution from somewhere that you tried to build that was 3.0 or 3.5. I know this because that's the error you got. That's your first mistake. If you're a newbie
to ASP.NET working off of someone else's solution is generally a bad idea. Start with an ASP.NET Hello World then go from there.
2. Going from 3.5 to 2.0 is generally a bad idea since 3.5 includes AJAX by default, whereas 2.0 does not, among MANY MORE changes. Going DOWN in frameworks is difficult even for someone to do it by hand. The "upgrade/downgrade" framework feature (in my
opinion) has always been a little shaky in Visual Studio, and the fact that you are doing it in the free version certainly doesn't help matters.
3. Failed to initialize AppDomain: .... This is caused by the ASP.NET worker process (W3SVC) not having appropriate permissions on your machine. Goto your c:\inetpub\wwwroot\ directory, right click, hit security, add ASPNET to the white block, click FIND
NAMES, and it should find the IUSR account on your machine. Give it read/execute rights. (You can set write-to rights as needed on a sub directory level).
4. The second "failed to execute" is the result of your issue above. The ASP.NET IUSR account doesn't have permissions.
5. You don't even need to run an ASP.NET web application (in development) in IIS on your local machine. Use the CTRL + F5 shortcut to build and run the application (without debugging) in the VisualStudio webserver that is based on Cassini. It's quick, painless,
and IT WORKS!
6. Don't let this get you turned off of ASP.NET. It's a very fine method of development, and I enjoy what I do every day. IIS is a bit of a bugger to deal with at times, but you get used to the complexity, and as of IIS7 on Server 2k8, it's downright
easy to manipulate and work with. In fact, it's pretty dang speedy on 2k8.
Hope that helps,