Hej
Nu har jeg søgt Nettet og alt hvad jeg kan finde af diskussionsfora (danske og udenlandske) igennem - men stadig uden hjælp. H J Æ L P ........
Jeg har uploadet DotNetNuke 2.1.2 samt DotNetNuke.MySqlProvider_PA_2.1.2 til mit webhotel hos UnoEuro men får følgende fejl når jeg forsøger.
Hvor og hvordan skal jeg rette i min web.config der gengives i dette spørgsmål efter fejlmeddelsen:
UnoEuro oplyser følgende connectionstring til MySql-databaser hos dem:
---------------------------------------------------------------------
<%
SQLserveradr="[mysqlserver]"
SQLdatabase="[mysqldatabase]"
SQLlogin="[brugernavn]"
SQLpassword="password"
Set Conn = Server.CreateObject("ADODB.Connection")
conStr = "driver={MySql};server="& SQLserveradr &";database="& SQLdatabase
conStr = conStr & ";uid="& SQLlogin &";pwd="& SQLpassword & ";OPTION=3"
Conn.Open conStr
%>
---------------------------------------------------------------------
Fejlmeddelse:
-----------------------------------------------------
Se :
http://aagesen.net/DotNetNuke/
-----------------------------------------------------
Filen web.config:
-----------------------------------------------------
<configuration>
<!-- register local configuration handlers -->
<configSections>
<sectionGroup name="dotnetnuke">
<section name="data" type="DotNetNuke.ProviderConfigurationHandler, DotNetNuke" />
<section name="logging" type="DotNetNuke.ProviderConfigurationHandler, DotNetNuke" />
<section name="scheduling" type="DotNetNuke.ProviderConfigurationHandler, DotNetNuke" />
<section name="htmlEditor" type="DotNetNuke.ProviderConfigurationHandler, DotNetNuke" />
</sectionGroup>
</configSections>
<!-- Sql Server connection string for support of pre DNN 2.0 Private Assemblies
The new connection string (for DNN 2.0) is in the section dotnetnuke (providers) -->
<appSettings>
<add key="connectionString" value="Server=localhost;Database=DotNetNuke;uid=;pwd=;" />
</appSettings>
<system.web>
<!-- set debugmode to false for running application -->
<compilation debug="false" />
<!-- permits errors to be displayed for remote clients -->
<customErrors mode="RemoteOnly" />
<!-- Forms or Windows authentication -->
<authentication mode="Forms">
<forms name=".DOTNETNUKE" protection="All" timeout="60" />
</authentication>
<!--
<identity impersonate="true"/>
<authentication mode="Windows">
</authentication>
-->
<!-- allow large file uploads -->
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" />
<!-- GLOBALIZATION
This section sets the globalization settings of the application.
Utf-8 is not supported on Netscape 4.x
If you need netscape compatiblity leave iso-8859-1.
UTF-8 is recommended for complex languages
-->
<globalization culture="en-US" uiCulture="en" requestEncoding="UTF-8" responseEncoding="UTF-8" fileEncoding="UTF-8" />
<!--<globalization culture="en-US" uiCulture="en" fileEncoding="iso-8859-1" requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>-->
<!-- page level options -->
<pages validateRequest="false" enableViewStateMac="true" />
</system.web>
<dotnetnuke>
<htmlEditor defaultProvider="FtbHtmlEditorProvider" >
<providers>
<clear/>
<add name = "FtbHtmlEditorProvider"
type = "DotNetNuke.HtmlEditor.FtbHtmlEditorProvider, DotNetNuke.FtbHtmlEditorProvider"
providerPath = "~\Providers\HtmlEditorProviders\FtbHtmlEditorProvider\"
/>
</providers>
</htmlEditor>
<data defaultProvider="AccessDataProvider" >
<providers>
<clear/>
<add name = "SqlDataProvider"
type = "DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider"
connectionString = "Server=localhost;Database=DotNetNuke;uid=;pwd=;"
providerPath = "~\Providers\DataProviders\SqlDataProvider\"
objectQualifier = ""
databaseOwner = "dbo"
upgradeConnectionString = ""
/>
<add name = "AccessDataProvider"
type = "DotNetNuke.Data.AccessDataProvider, DotNetNuke.AccessDataProvider"
connectionString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;"
providerPath = "~\Providers\DataProviders\AccessDataProvider\"
objectQualifier = "DotNetNuke"
databaseFilename = "DotNetNuke.mdb.resources"
/>
</providers>
</data>
<logging defaultProvider="XMLLoggingProvider" >
<providers>
<clear/>
<add name = "XMLLoggingProvider"
type = "DotNetNuke.Logging.XMLLoggingProvider, DotNetNuke.XMLLoggingProvider"
configfilename="LogConfig.xml.resources"
providerPath = "~\Providers\LoggingProviders\XMLLoggingProvider\"
/>
</providers>
</logging>
<scheduling defaultProvider="DNNScheduler" >
<providers>
<clear/>
<add name = "DNNScheduler"
type = "DotNetNuke.Scheduling.DNNScheduler, DotNetNuke.DNNScheduler"
providerPath = "~\Providers\SchedulingProviders\DNNScheduler\"
debug="false"
maxThreads="-1"
enabled="true"
/>
</providers>
</scheduling>
</dotnetnuke>
</configuration>
-----------------------------------------------------