Windows Vista All Shiny New 

Sunday, February 04, 2007 9:48:50 AM
Rate this Content 0 Votes

I spent most of the day yesterday backing up my main development machine and then upgrading to Windows Vista and reinstalling all of my development tools. I'm finally setup to continue working on mojoPortal under Vista. After many years of working under XP, its nice to have a shiny new interface.

There were a few things I encountered while setting up the web app under IIS7 that are worth keeping in mind.. You don't actually need IIS because you can use the VS Web server but I like to setup IIS and make sure things work as expected.

The first thing to know is that you need to make sure you install the IIS Metabase and IIS 6 configuration compatibility as noted in this helpful blog post.  I'm still learning where they moved my cheese but I found the IIS Management tools by right clicking My Computer and choosing Manage. You could get there that way in XP as well but it was more common to go to Administrative Tools > Internet Information Server.. under XP or Win 2003 Server.

Instead of adding a Virtual Directory, you right click and choose Add Application to setup a Virtual Directory configured for ASP.NET.

I also had to give permission because it couldn't read the Web.config file. So I gave permission to the aspnet user and the IIS_WPG account

Then I got an error about the configuration:


Server Error in Application "Default Web Site/mojo"
HTTP Error 500.0 - Internal Server Error

Description: This application is running in an application pool that uses the Integrated .NET mode. This is the preferred mode for running ASP.NET applications on the current and future version of IIS.

In this mode, the application should not specify ASP.NET module components in the <system.web>/<httpModules> configuration section. Instead, it should use the <system.webServer>/<modules> configuration section to load ASP.NET module components. You have the following options:
1) Migrate the application to work with the Integrated .NET mode (PREFERRED).
You can migrate the application configuration, including the contents of the <httpModules> configuration section, by using the following from a command line window (the window must be running as Administrator):

%systemroot%\system32\inetsrv\APPCMD.EXE migrate config "Default Web Site/mojo"

After you migrate your application, it will run in both Classic and Integrated .NET modes, as well as on downlevel platforms.
2) Move this application to an application pool using the Classic .NET mode.
You can move the application to the default application pool using the Classic .NET mode by running the following from an command line window (the window must be running as Administrator):

%systemroot%\system32\inetsrv\APPCMD.EXE set app "Default Web Site/mojo" /applicationPool:"Classic .NET AppPool"

Alternatively, you can use any other application pool on your system that is running in the Classic .NET mode. You can also use the IIS Administration tool to move this application to another application pool.

It is preferred that you migrate this application by using option 1 to take advantage of the benefits provided by the Integrated .NET mode.

Error Code: 0x80070032

Notification: BeginRequest

Module: ConfigurationValidationModule



So I changed the AppPool to use the "Classic .NET AppPool", since I want to keep mojoPortal compatible with IIS 6 and Mono xsp2

and now its working fine.

Speaking of Mono, progress is being made to get mojoPortal 2.x working under Mono. This week we got past this bug that was blocking progress for us. Big thanks to Marek, Paolo, and Miguel for all their help! We still have some issues to work through but I have a feeling we're getting much closer to working now.

I remember that magic feeling when I got the first version of mojoPortal working on linux with Mono, when the latest 2.0 ASP.NET version of mojoPortal works I think I'm going to feel it again.

Share This Using Popular Bookmarking Services
Copyright 2003-2010 Joe Audette

re: Windows Vista All Shiny New

Wednesday, February 07, 2007 3:28:02 PM Chris Hynes

Just FYI, for larger uploads you'll also need to remove the RequestFilteringModule or set it's maxAllowedContentLength property. I ran into this problem as I was testing SlickUpload with Vista. Something like:

 

 

<

 

system.webServer>
    <modules>
        <
remove name="RequestMonitorModule" />
        <
remove name="RequestFilteringModule" />
    </
modules>
</
system.webServer>

 


re: Windows Vista All Shiny New

Friday, February 09, 2007 8:55:27 PM Joe Audette
Good to know, thanks Chris!

Cheers,

Joe

re: Windows Vista All Shiny New

Tuesday, February 27, 2007 4:59:04 AM iii_thebest

Hi,

Appreciate for your help on the below problem, i can't even get default web site (http://localhost) to work after enabled asp and asp.net on vista:

Server Error in Application "Default Web Site"

---------------------------------------------------------------------------------------

HTTP Error 500.0 - Internal Server Error
Description: calling GetProcAddress on ISAPI filter "c:\windows\system32\inetsrv\asp.dll" failed

Error Code: 0x8007007f

Notification: Unknown

Module: IIS Web Core

Requested URL: http://localhost:80/

Physical Path: c:\inetpub\wwwroot

Logon User: Not yet determined

Logon Method: Not yet determined

Failed Request Tracing Log Directory: c:\inetpub\logs\FailedReqLogFiles

Handler: StaticFile

Most likely causes:

The ISAPI Filter has dependencies that are not available on the Web server.
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
IIS was not able to process configuration for the Web site or application.
The authenticated user does not ahve permission to use this DLL.

....................

 


re: Windows Vista All Shiny New

Tuesday, February 27, 2007 9:43:52 AM Joe Audete
I think you just need to right click the folder with your web and choose peoperties > Security tab
Click the Edit button ,then the Add button, then the Advanced button, then the Find Now button

Find the IIS_WPG user and give it at least read permission to the whole folder so it can read the web.config and other files.
Depending on your app some folders you may need to give write permission or full control.

Hope it helps,

Joe

Comments are closed on this post.
Donate Money to support the mojoPortal Project. View Joe Audette's profile on LinkedIn View Joe Audette's profile on The Guild of Accessible Web Designers site