Failed to access IIS metabase.

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/20/2009 12:51:23 PM
Gravatar
Total Posts 13

Failed to access IIS metabase.

(I didn't see a way to search the forums so I don't know if this was answered already).

I downloaded and unzipped the latest version of mojoPortal.

When I run

http://localhost/MojoPortal/wwwroot/Setup/Default.aspx

I get:

"Failed to access IIS metabase.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.Hosting.HostingEnvironmentException: Failed to access IIS metabase.

 The process account used to run ASP.NET must have read access to the IIS metabase (e.g. IIS://servername/W3SVC). For information on modifying metabase permissions, please see http://support.microsoft.com/?kbid=267904."

 

I went to the Microsoft web site per the link in the error message, downloaded the MetaAcl.vbs tool, ran the tool with these parametsrs:

mtaacl.vbs IIS://LOCALHOST/W3SVC "Ed Swartz" RW

I got a dialog box stating the changes were applied to my account.

I refreshed the page and I get the same error.

Any ideas?

 

Ed

11/20/2009 1:03:51 PM
Gravatar
Total Posts 18439

Re: Failed to access IIS metabase.

Hi,

You did not mention how you configured IIS.

mojoPortal can run as a root site at http://localhost or it can run as an application in a 1 level deep virtual directory like http://localhost/mojoportal/ but it cannot run in deeper nested folders like http://localhost/mojoportal/wwwroot/.

The wwwroot folder in the download contains the files that should be in the root of the mojoportal site. So to run at http://localhost/ localhost must map to the wwwroot folder, or to run at http://localhost/mojoportal/ the contents of the wwwroot folder should be placed in the mojoportal folder.

Hope it helps,

Joe

11/20/2009 1:40:57 PM
Gravatar
Total Posts 13

Re: Failed to access IIS metabase.

Joe,

I removed the files to start fresh.

I created a folder: c:\inetpub\wwwroot\MojoPortal.

I copied the files under wwwroot in the ZIP to the above folder.

I surfed to http://localhost/MojoPortal/Setup/Default.aspx

I got an error Server Application Unavilable.

I went to IIS and created a Virtual Directory on c:\inetpub\wwwroot\MojoPortal folder.

I refresh the page for Default.aspx.

I get Failed to Access Metabase error.

 

Ed

 

11/20/2009 1:45:49 PM
Gravatar
Total Posts 18439

Re: Failed to access IIS metabase.

What OS and what version of IIS?

Do you have .NET 3.5 SP1 installed?

Are you running any other .NET apps on the machine?

Is there another app running at http://localhost/ ?

11/20/2009 2:06:09 PM
Gravatar
Total Posts 13

Re: Failed to access IIS metabase.

XP Pro SP 2

ASP.NET 3.5 SP1 Yes installed

In C:\inetpub\wwwroot\ I have dozens of subfolders with ASP.NET applications for all of my clients.

re: Is there another app running at http://localhost/ ?

It's possible I configured something under that url awhile back.

I looked under Default Web Site in IIS and clicked on Remove button for the Default app in Home Directory tab.

 

Ed

11/20/2009 2:18:38 PM
Gravatar
Total Posts 18439

Re: Failed to access IIS metabase.

I think you need to run aspnetregiis as described in this forum thread on asp.net forums

Hope it helps,

Joe

11/20/2009 3:01:29 PM
Gravatar
Total Posts 13

Re: Failed to access IIS metabase.

Before I posted my question I found suggestions to do the following which is supposed to grant access to the meta base:

 

aspnet_regiis -ga "Account"

aspnet_regiis -ga "Ed Swartz" (which is the account I login and am trying to run mojo Setup\Default.aspx

That didn't help.

 

I tried: aspnet_regiis -i

The install was successful but I got the same "Failed to Access Metabase" error.

Any other ideas?

Ed

11/20/2009 3:07:17 PM
Gravatar
Total Posts 18439

Re: Failed to access IIS metabase.

Are you using Windows Authentication?

If not, it's not your user who needs access, its the user that the web process runs as, on XP this is typically the aspnet_machine name user I think or maybe it's just aspnet I can't remember. In any case its the user configured as the identity on the application pool.

You should configure IIS under the directory security tab for anonymous and windows, and mojoportal by default will use forms authentication not windows auth.

Hope it helps,

Joe

11/20/2009 3:17:52 PM
Gravatar
Total Posts 13

Re: Failed to access IIS metabase.

How about if I donate $25 and then if you could access my computer via Crossloop.com and see if you can fix the problem?

I have to leave at 4:30 PM EST for an errand. I'm not suggesting you work on Sat but if you're available I can spend a few

minutes then to work with you on this issue.

 

Ed

11/23/2009 9:12:55 AM
Gravatar
Total Posts 13

Re: Failed to access IIS metabase.

Joe,

Just wondering if you'd be willing to take a look at my installation problems today per my last reply?

I do have a 10:30 AM EST call with a client but will be available after 11:30 AM.

Ed

11/24/2009 11:23:27 AM
Gravatar
Total Posts 18439

Re: Failed to access IIS metabase.

Hi,

Sorry, but I'm not sure I could solve the problem at all much less quickly enough that $25 would be a motivator for me to try it. I've seen cases where things are so messed up it would take re-paving to solve it, not saying this is for sure one of those cases but I have no way of knowing. This is really not a mojoPortal issue at all, its an issue of setting up an XP machine for ASP.NET.

I also would not want to install any software to be able to access your machine. If it was a server on the internet and I could just use the windows remote desktop client I'd be more inclined to take a look and try to help, but trying to fix a developer xp desktop remotely is a different situation.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.