Adsense

Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Tuesday, June 26, 2007

Vista, IIS7 & DotNetNuke - NullReferenceException at GetEnabledLocales()

Upgraded to Vista with IIS7 and started getting an error when trying to run an existing DotNetNuke ASP.Net project I've been working on.

Here's a snippet from the stack trace...

DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.Localization.Localization.GetEnabledLocales()

Was able to figure this one out after playing with the IIS7 settings for a while. You need to update your IIS application to use a different application pool than the default. Right click on your application in IIS and select Advanced Settings. Under Behavior change the Application Pool from DefaultAppPool to Classic .NET AppPool.

That should clear up this issue for you.

Monday, June 25, 2007

Installing Infragistics on Vista Ultimate with IIS 7.0

I just upgraded to Windows Vista this weekend and am trying to get my development box up and running. We us Infragistics in a couple of our ASP.Net projects and I'm finding that it's not quite as straight forward to install it on Vista.

I found a great site with a walk-through of how to setup your Vista and IIS to allows Infragistics to install correctly.

Basically you need to do the following...

  • Disable User Account Control (UAC)
  • Restart your machine
  • Edit the path of your IIS WWWRoot folder in the registry
    • Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\PathWWWRoot
    • Change "%SystemDrive%\inetpub\wwwroot" to "C:\inetpub\wwwroot"
  • Enable IIS 6.0 Compatibility in the "Turn Windows features on or off" section of the Programs menu (make sure to check all the child boxes)

That should allow you to get your infragistics installed on Windows Vista Ultimate and IIS 7.0.

Sunday, March 04, 2007

"Unrecognized configuration section 'connectionStrings'" .Net 2.0

If you get the following error when trying to bring up your IIS hosted web page, you might need to configure IIS to use .Net 2.0 instead of 1.1.

""Unrecognized configuration section 'connectionStrings'" .Net 2.0"

You can do this through the Internet Information Services configuration. (click on RUN from the start menu, type in 'inetmgr' and hit enter.)

Bring up the properties for your web page or virtual directory and click on the ASP.NET tab. Change your ASP.NET version to the appropriate value and try again.