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 ...DNN 4.8.1 Install without dbo / Null Argument ExceptionDNN 4.8.1 Install without dbo / Null Argument Exception
Previous
 
Next
New Post
3/26/2008 12:04 PM
 
Hi,
I need your advice on this particulat problem.
My DBA tells me I can't create a DB Login for my DNN 4.8.1 install with db_owner permissions. Ok, so I have a document to help with the install (as I'm fairly green at this):
DotNetNuke Installation Guide v 1.0.03 (C. Nurse), Nov. 28, 2005
At the bottom of page 8, top of page 9, it is mentioned that db_owner is not actually required for the installation. Later, on pages 14 and 15, in the Data Provider Settings section, is mentioned minimum permisions required are :
  • db_datawriter
  • db_datareader
  • db_ddladmin
  • db_securityadmin
I cannot, for the life of me, get DNN 4.8.1 to install with only these permissions. I managed to install it but only after going to the Securables section for the DB User and granting Explicit Permissions for Execute on my DB object.

 

Also, during the DB Connection Test of the Installation Wizard, I always have to check the "Execute queries as DB Onwer" option other wise I get an "Object already exists" error the second time I run the test (or click the Next button). What exactly does "Execute queries as DB Onwer" mean as the user is clearly not the dbo?

 

Finally, when installation completes and probably unrelated to the dbo issue, I get the following Null Argument Exception  (in french): 


La valeur ne peut pas être null.
Parameter name: path1
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.ArgumentNullException: La valeur ne peut pas être null.
Parameter name: path1

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.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:

[ArgumentNullException: La valeur ne peut pas être null.
Parameter name: path1]
   System.IO.Path.Combine(String path1, String path2) +2686595
   DotNetNuke.UI.Skins.SkinDefaults..ctor(SkinDefaultType DefaultType) +127
   DotNetNuke.Common.Globals.get_DefaultSkin() +31
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +2812
   DotNetNuke.Common.Globals.GetHostPortalSettings() +216
   DotNetNuke.Common.Globals.GetPortalSettings() +79
   DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.Init(HttpApplication application) +198
   System.Web.HttpApplication.InitModulesCommon() +66
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +814
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +243
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +340
 

Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

I install all Modules, all Auth services, no optional skins or containers, and no language packs. 

My environment:

  • Windows XP Pro SP2 (IIS 5.1)
  • SQL Server 2005
  • DNN 4.8.1

Any feedback is greatly appreciated.

 R3T
 
 

RadSrag
 
New Post
4/4/2008 8:28 AM
 

I found the answer to the NullArgument error, however I still have no solution for the DB Login permissions (as posted above):

My DBA tells me I can't create a DB Login for my DNN 4.8.1 install with db_owner permissions. Ok, so I have a document to help with the install (as I'm fairly green at this):

DotNetNuke Installation Guide v 1.0.03 (C. Nurse), Nov. 28, 2005
At the bottom of page 8, top of page 9, it is mentioned that db_owner is not actually required for the installation. Later, on pages 14 and 15, in the Data Provider Settings section, is mentioned minimum permisions required are :
  • db_datawriter
  • db_datareader
  • db_ddladmin
  • db_securityadmin

I cannot, for the life of me, get DNN 4.8.1 to install with only these permissions. I managed to install it but only after going to the Securables section for the DB User and granting Explicit Permissions for Execute on my DB object. Is this a necessary grant? Can someone please offer some explanation, and possibly a "best practice" scenario?

My environment:

  • Windows XP Pro SP2 (IIS 5.1)
  • SQL Server 2005
  • DNN 4.8.1

Thanks again

Rad


RadSrag
 
New Post
4/5/2008 6:06 AM
 

I suggest to use dbowner permission, AFAIK those are needed now, however there is an option to use those for installation only, please check out the "Hardening DotNetNuke Security" guide.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/16/2008 12:48 PM
 

Since SQL Server 2005, objects are owned by a schema, not a user as they were in SQL Server 2000. The schema is owned by a user.

The DB user used to login (the one defined in the web.config connectionString) only requires ddladmin, datareader,datawriter, and securityadmin. However, the user's schema must grant EXECUTE permission to the user.

That's all!


RadSrag
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 4.8.1 Install without dbo / Null Argument ExceptionDNN 4.8.1 Install without dbo / Null Argument Exception


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