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