Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Web.config for beginners
Previous Previous
 
Next Next
New Post 4/8/2006 3:50 AM
User is offline tobby tob
12 posts
10th Ranked


Web.config for beginners 

Hello all,

 

Firs of all thanx to DNN developers – including mod. Developers for Great platform!

 

I hope this thread will be useful in the future for all of those who has troubles with setting web.config – after reading carefully installation guide!

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

System req.

winXP corp

service pack 2

 

Visual web developer 2005 Express Edition

SQL Server 2005 \ Express (with a simple SQL Server Configuration Manager)

 

DNN 4x installation Starter kit

 

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

 

I was going by the instructions in installation guide an till I  got to the part about setting up the web.config file

---- this are my actual settings (didn’t’ change any thing – nothing at all as it was in relise.config)

<connectionStrings>

    <!-- Connection String for SQL Server 2005 Express -->

    <add name="SiteSqlServer" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient" />

    <!-- Connection String for SQL Server 2000/2005

    <add

      name="SiteSqlServer"

      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"

      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|Database.mdf;" />

    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=;pwd=;"/>

    -->

    <add key="InstallTemplate" value="DotNetNuke.install.config" />

    <!--  Alternative Install Templates (included in package)

    <add key="InstallTemplate" value="Club.install.config" />

    <add key="InstallTemplate" value="Personal.install.config" />

    <add key="InstallTemplate" value="SmallBusiness.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="InstallationDate" value="4/5/2006" />

  </appSettings>

 

---

Made direct debugging Ctrl + F5

 

Installation was done successfully

And I had my portal running

 

Than I’ve tried to register a new user

And I faced an error – that sad

 

An error has occurred.
Error: Register is currently unavailable.

But New user is written to the DB and can log in….

So I started to figure out why I get this error

Got to the manual installation guide and try to

Configure the way it showed

In  the manual

 

<connectionStrings>

    <!-- Connection String for SQL Server 2005 Express -->

    <add name="DotNetNuke" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" providerName="System.Data.SqlClient" />

 

And

 

<appSettings>

    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->

    <add key="DotNetNuke" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" />

 

-         changed SiteSqlServer to DotNetNuke

 

after debuging I get errors such as

 

Object reference not set to an instance of an object.

 

Stack Trace:

 
[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Common.Utilities.Config.GetConnectionString(String name) +49
   DotNetNuke.Data.SqlDataProvider..ctor() +126
 
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +103
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +261
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +66
   DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) +233
   DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +571
   DotNetNuke.Data.DataProvider.CreateProvider() +39
   DotNetNuke.Data.DataProvider..cctor() +13
 
[TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception.]
   DotNetNuke.Entities.Tabs.TabController.GetTab(Int32 TabId) +40
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalByTab(Int32 TabID, String PortalAlias) +33
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2336
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +138
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +65

 

Than i got back to my old settings

By changing back to SiteSqlServer

And portal has got back to normal fanctualyty – but I still get error whene a new user registerd

 

and in the Admin menu   > Windows Authentication

after setting Windows Authentication (tick) followed by update link

i get

An error has occurred.
Error: Modual Windows Authentication is currently unavailable.

DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Security.Authentication.ADSI.Utilities.AddADSIPath(String Path, Path ADSIPath) at DotNetNuke.Security.Authentication.ADSI.Utilities.GetRootEntry(Path ADSIPath) at DotNetNuke.Security.Authentication.ADSI.Utilities.GetRootEntry() at DotNetNuke.Security.Authentication.ADSIProvider.GetNetworkStatus() at DotNetNuke.Security.Authentication.AuthenticationController.NetworkStatus() at DotNetNuke.Modules.Authentication.AuthenticationSettings.cmdAuthenticationUpdate_Click(Object sender, EventArgs e) in D:\_mydoc\Visual Studio 2005\WebSites\DotNetNuke Website1\admin\Security\AuthenticationSettings.ascx.vb:line 129 --- End of inner exception stack trace ---

 

 

Apart form that errors every thing is working fine and I have no idea why I’m getting that kind of error when new user is registered.

 

Those of you who knows how to set up a web.config

Please explain in details how to setup the file properly

 

Thanx alot and I hope this would be a great help in the future  

 

Tobby_1

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Web.config for beginners
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Viva Portals, L.L.C.
Expert module development and graphic design.
www.continure.com
DNN Photo Gallery
DNN Photo Gallery is a truly unique photo management module released January 1st 2006. With DNN Photo Gallery you can REALLY integrate images into your existing portal and make them look like they were designed for your site.
DNN Photo Gallery
Swirlhost Inc.
Affordable DotNetNuke Hosting, Skin Development, Custom Module Development, and DotNetNuke Consulting. We will install your preference of DNN and now host with us and get a free license for the Swirl AJAX Chatroom Module.
www.swirlhost.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP