Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...I need help badlyI need help badly
Previous
 
Next
New Post
10/25/2006 12:21 PM
 
I am tring to install a DNN website for the first time (my company has a site so I want to know how to do it).  I will later need to know how to move a site to another.  I have searched high and low and came up with nothing but vaugness.  I am going through the steps from the site and the book to no prevail.  I seem to get a different error on each PC I try it on (all windows professional btw).  One PC is that it cant connect to the SQL db and i use the cmd line:  SQLCMD -S (local)\SQLEXPRESS -E then I typed CREATE DATABASE DNN then GO.  It creates the dd, I change it in the web.config (changed from release.config) and I get the failure to connect to the DB.  I try it on a fress PC that has never had DNN on it and I go through the same process and I get this:


Server Error in '/DNN' Application.

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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HostingEnvironmentException: Failed to access IIS metabase.]
System.Web.Configuration.MetabaseServerConfig.MapPathCaching(String siteID, VirtualPath path) +3500378
System.Web.Configuration.MetabaseServerConfig.System.Web.Configuration.IConfigMapPath.MapPath(String siteID, VirtualPath vpath) +9
System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) +163
System.Web.CachedPathData.GetConfigPathData(String configPath) +382
System.Web.CachedPathData.GetConfigPathData(String configPath) +243
System.Web.CachedPathData.GetApplicationPathData() +68
System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) +3393699


System.Web.Configuration.RuntimeConfig.GetLKGRuntimeConfig(VirtualPath path) +189


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210





It is kinda of frustrating that I can not find a noob guide (since that is what I am).  Everything assumes that I have done this before and skips out of the what to do to set it up.  Can someone please help me??!!??

 
New Post
10/25/2006 1:07 PM
 

Your comments do not indicate anything about IIS, although the error message does. So.... do you have IIS installed on the machine? And is it working? Also, the error msg shows that the .NET Framework version is 2.x .... which version of DNN did you download -- 4.3.x or 3.3.x, and "source" or "install"?  I think you should be using 4.3.x "install" version....

Next, regarding the database: Do you have SQL Express Administrator (free -- I think that is the name) or SQL Enterprise Manager or some other tool that can connect to the db and display the objects?  Can you create an ODBC connection to the db? 

Bottom line: you need to make sure SQL and IIS are working correctly before you attempt to install the correct version of DNN...If you've done that, pls post additional info about your configuration.

Good luck!

 
New Post
10/25/2006 3:20 PM
 
Ok, I forgot to mention the part of the IIS.  I have it installed on all the machines I tried.  I also have the 4.3 install that I am using and the command line is with the express edition, the only way I seem to know how to do it.   The third machine I tried it on gave me some weird error about machine key.


IIS:

I created a new virtual directory and then gave it premission as a website via the properties of the windows exporer.  I then set the asp to 2.0 and removed the documents and replaced them with Default.aspx.  I also made it run scripts and exicutables.


Full sql cmds:

SQLCMD - S (local)\SQLEXPRESS -E
CREATE DATABASE DNN
GO
CREATE LOGIN DNN WITH PASSWORD='DotNetNuke2',DEFAULT_DATABASE=DNN
GO
USE DNN
CREATE USER DNN FOR LOGIN DNN
GO
EXEC SP_ADDROLEMEMBER N'db_owner', n'DNN'
GO

web.config (well the part that I changed):

<connectionStrings>
    <!-- Connection String for SQL Server 2005 Express
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DNN.mdf;"
      providerName="System.Data.SqlClient" /> -->
    <!-- Connection String for SQL Server 2000/2005 -->
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DNN;uid=DNN;pwd=DotNetNuke2;"
      providerName="System.Data.SqlClient" />
  
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules 
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DNN.mdf;"/> -->
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
    <add key="SiteSqlServer" value="Server=(local);Database=DNN;uid=DNN;pwd=DotNetNuke2;"/>
  
    <add key="InstallTemplate" value="DotNetNuke.install.config" />
    <add key="AutoUpgrade" value="true" />
    <add key="InstallMemberRole" value="true" />
    <add key="ShowMissingKeys" value="false" />
    <add key="EnableWebFarmSupport" value="false" />
    <add key="EnableCachePersistence" value="false"/>
    <add key="HostHeader" value="" /><!-- Host Header to remove from URL so "www.mydomain.com/johndoe/Default.aspx" is treated as "www.mydomain.com/Default.aspx" -->
    <add key="RemoveAngleBrackets" value="false" /><!--optionally strip angle brackets on public login and registration screens-->
    <add key="PersistentCookieTimeout" value="0" /><!--use as persistent cookie expiration. Value is in minutes, and only active if a non-zero figure-->
  </appSettings>


 
New Post
10/26/2006 9:50 AM
 

Sounds like this may be your problem: http://blog.devstone.com/Aaron/archive/2006/05/16/1586.aspx

(solution: open a cmd prompt and type: aspnet_regiis -i <enter>)

Also, make sure the account running the asp.net process has read & write access to the webfolder and sub-folders. (For a dev machine, the easiest thing to do is grant 'Everyone' the Modify right).

 
New Post
10/26/2006 10:00 AM
 
that cmd



C:\>aspnet_regiis -i
'aspnet_regiis' is not recognized as an internal or external command,
operable program or batch file.




 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...I need help badlyI need help badly


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out