Welcome Guest Search | Active Topics | Log In | Register

2 Pages 12>
connection string placement in web.config? Options · View
ericbourland
#1 Posted : Wednesday, December 03, 2008 2:10:57 PM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
YAF Version 1.9.1.8
ASP.NET v2.0
Windows Server 2003
MS SQL Server 2005

Hi there. YAF looks like a great product and I look forward to getting it set up for my client on my server.

If you have time, may I ask of some expert here a few questions?

1. If I want to use YAF 1.9.1.8 for several web sites, not just one site, do I need to install YAF 1.9.1.8 in the web root of each web site on my server? Or can I install it in one central location and have each web site refer to it as needed?

2. I've been starting at web.config for a while. I am not sure where to add the connection string.

I read the installation instructions: http://wiki.yetanotherfo...ion%20Instructions.ashx

I have reviewed connection strings for SQL Server 2005: http://www.connectionstrings.com/sql-server-2005

I have also looked at at web.config files in this forum.

But I do not see the place where I should add the connection string.

My SQL Server 2005 database is called: ebwebwork

I know the admin username and password for this database ebwebwork.

I am very grateful for any hints.

Thanks very much for your time.

Eric Bourland


web.config:

<?xml version="1.0"?>
<configuration>
<configSections>
<section name="yafnet" type="yaf.SectionHandler,yaf"/>
<section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>

<yafnet configSource="yafnet.config"/>
<rewriter configSource="urlrewriter.config"/>

<system.web>
<httpModules>
<add type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" name="UrlRewriter" />
</httpModules>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<compilation defaultLanguage="c#" debug="false"/>
<pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>
<authentication mode="Forms">
<forms name=".YAFNET_Authentication" timeout="525600" />
</authentication>
<customErrors defaultRedirect="error.aspx" mode="RemoteOnly"/>
<!--trace enabled="true" pageOutput="true"/-->
<xhtmlConformance mode="Legacy"/></system.web>
</configuration>
mddubs
#2 Posted : Wednesday, December 03, 2008 5:42:08 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
If starting from scratch I would consider the latest version 1.9.3. It's still in the RC phase but it's stable for production and when the final version is released it will be easier to upgrade from 1.9.3RC2 than from 1.9.1.8.

1. Depends on what you mean by different sites. Completely different servers? Yes, you'll need to install the app on each server. Different applications (sites) on the same server? There may be some fancy IIS settings to share common code between different applications but if I were to do it, I'd install YAF in each application. Different "sites" on the same application? If you have a "members" site and a "guests" site on the same application, you can setup separate boards with a single YAF installation.

2. I've never worked with 1.9.1.8 but I doubt connection strings have changed much. The latest version places connection strings in a separate "db.config" file, which is linked to the root web.config file by this line of code:
<connectionStrings configSource="db.config"/>

Just global search until you find it.
ericbourland
#3 Posted : Wednesday, December 03, 2008 8:01:48 PM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
mddubs,

Thanks very much for this helpful answer.

I meant: same server, multiple sites. However, I gather that it will be easier to simply install new instances of YAF inside each web root.

So, there is no need to edit web.config at all? This seems contrary to the instructions I read at http://wiki.yetanotherfo...on%20Instructions.ashx:

"Modify the Web.config file (on the server) you just unzipped. If Web.Config is not present you can copy default.config and rename to web.config, then modify.

"Modify connstr to the valid connection string value. For examples of connection strings visit http://www.connectionstrings.com/. The database pointed to by can be an already existing database, or you can create a new database to install to. Hint: If upgrading, use your current web.config values in the new web.config."

However, it sounds like I should go with 1.9.3RC2 and simply edit the "db.config" file .... I will try that.

Thanks very much for your help.

Best from Eric
mddubs
#4 Posted : Wednesday, December 03, 2008 8:21:11 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
Yeah there's definitely a little confusion here. If you are going to use YAF as a stand-alone site, then there isn't much to configure, probably only the connection strings which I thought you were having trouble finding.

However, if you're incorporating YAF into an existing application you need to merge your existing web.config with YAF's webconfig. This can be a bit time-consuming and a little difficult if you're completely unfamiliar with web config files. If you're taking this route, you might find my notes on this process helpful...
http://bunkerhollow.com/...et-site-from-source.aspx
ericbourland
#5 Posted : Thursday, December 04, 2008 1:29:22 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
Hi, mddubs,

Thanks for your helpful note, and for the shout-out. =)

I am going to set up YAF 1.9.3 as a standalone forum. It will be incorporated with the web site guardianhelp.org. So, it sounds like my only task is to configure the connection string.

I have a couple of questions -- do you have time to assist me? (Again, I'm very grateful for your help. I understand you are a volunteer and I do not take you for granted.)

I unzipped the YAF 1.9.3 BIN file. I uploaded the contents of the ZIP file to my web server at IP 76.12.181.86. (I host the guardianhelp.org site on this server, and I will incorporate YAF 1.9.3 into the guardianhelp.org site.)

1. I notice there was no default.config or web.config at all in the YAF 1.9.3 BIN file. Should there be? I copied the web.config file from the YAF 1.9.1.8 .. is that OK? Or do I not need a web.config file if I use YAF 1.9.3?

2. Next, I opened db.config and I see that it contains only this code:

<connectionStrings>
<add name="yafnet" connectionString="data source=(local);initial catalog=yafnet;integrated security=SSPI" />
</connectionStrings>

That looks simple enough. However, I do not see where to enter the database name (ebwebwork) or the username and password for the ebwebwork database.

According to http://www.connectionstrings.com/, the connection string that I should use is:

Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase; Uid=myUsername;Pwd=myPassword;

How do I incorporate this line of code into db.config?

I am looking around in the documentation for answers to these questions but I don't see the answers that I need -- or maybe the answers are there and I am just not seeing them. Forgive my obtuseness. I'm very grateful for any help.

Hope you're great.

Eric
mddubs
#6 Posted : Thursday, December 04, 2008 2:00:02 AM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
ericbourland wrote:

I am going to set up YAF 1.9.3 as a standalone forum. It will be incorporated with the web site guardianhelp.org.


Standalone or incorporated?

This is an example of a stand-alone site: http://www.ciscopakistan.net/

This is an example of an incorporated site: http://forum.yetanotherforum.net/

If you do a stand-alone you'll use the web.config that comes with YAF. If you integrate into an existing site, then you'll already have your own web.config and you'll have to merge the two.

Give it some time and effort. You'll figure it out. If you have other questions remember to search the forums or post a new thread if you can't find the answer.

Good luck!
ericbourland
#7 Posted : Thursday, December 04, 2008 2:18:26 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
mddubs,

I found the recommended dev-recommended-web.config in the webconfigs folder. I'll use that one.

I'll tinker with db.config and see what I can do with it. I'm looking for other db.config files that I can emulate.

I think this will be a standalone application, because:

1. guardianhelp.org is actually a ColdFusion site, that I built. It has no web.config file at all. The only web.config file that I will use is the one that is required for YAF.

2. The URL of the forum will be www.guardianhelp.org/forum/ ... that is my goal.

So, the two tasks that I face are: figure out the correct syntax for db.config; and figure out how to make this forum manifest in the correct URL, www.guardianhelp.org/forum/.

I'll work on this for a while. I am confident that I can make some progress. Thanks very much, again.

Eric
mddubs
#8 Posted : Thursday, December 04, 2008 2:32:48 AM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
OK great, I think we're on the same page now.

1. Don't use a DEV config unless you're compiling and making changes. Pick a more appropriate one, rename it web.config and move that to the root directory. Web.config must be in the root.

2. Since you're putting your forum in a subdirectory, modify the root key in the app.config file, yours would look like this:
<add key="root" value="/forum" />

3. Those crazy connection strings always vary, but what YAF has by default is what I see most common these days. This format is definitely on that connection string website you referred to earlier. "Data source" is the name/IP of the server. "Initial Catalog" will be the name of the database you create for YAF. You should use "Integrated Security" if possible but if not you can use "User Id=xxxxx" and "Password=xxxxxx" instead.
ericbourland
#9 Posted : Thursday, December 04, 2008 2:40:42 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
It's making a lot more sense now. I think I have got web.config and db.config ready to go. I am going to try the install wizard. I'll check in here, in a while. Thanks again.
ericbourland
#10 Posted : Thursday, December 04, 2008 3:09:47 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
Hey there mddubs,

I'm installing YAF at this URL:

http://www.guardianhelp....um/install/default.aspx

I have copied all unzipped YAF files to http://www.guardianhelp.org/forum/. I took the folder /bin/ and moved it to web root, so that it appears here: http://www.guardianhelp.org/bin/

Is that correct?

Also, the instructions tell me to add to web.config a reference to /forum/ ... but I do not see where, in web.config, I should add that reference, or what syntax I should use. Do you have any advice for me? I append my web.config file below.

Thanks very much for your help. I owe you beer (or the poison of your choice). =)

Eric

"If YetAnotherForumNET isn't installed at the root directory of your web server or host, make sure the files in the bin directory of the zip file is copied to /bin on your web server. Also you'll need to add the element to the web.config to point to the correct URL. Example: If you have install the forum in the directory "http://www.yoursite.com/forum/yaf/" you will need to add /forum/yaf/ to web.config."

web.config:
Code:

<?xml version="1.0" encoding="utf-8"?>
<configuration>

    <configSections>
        <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
            <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
                <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
                    <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
                    <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
                    <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false"/>
                </sectionGroup>
            </sectionGroup>
        </sectionGroup>
        <section name="rewriter" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" requirePermission="false"/>
    </configSections>

    <connectionStrings configSource="db.config"/>
    <appSettings configSource="app.config"/>
    <rewriter configSource="URLRewriter.config" />

    <system.net>
        <mailSettings>
            <smtp configSource="mail.config"/>
        </mailSettings>
    </system.net>

    <system.web>

        <trace enabled="true" pageOutput="true" requestLimit="1000" />
        <xhtmlConformance mode="Transitional" />
        <customErrors defaultRedirect="Error.aspx" mode="Off" />

        <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

        <authentication mode="Forms">
            <forms name=".YAFNET_Authentication" protection="All" timeout="43200" cookieless="UseCookies"/>
        </authentication>

        <!-- Set debug to "true" to test out the system in development -->
        <compilation defaultLanguage="c#" debug="true">
            <assemblies>
                <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
                <add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            </assemblies>
        </compilation>

        <httpHandlers>
            <remove verb="*" path="*.asmx"/>
            <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
        </httpHandlers>

        <httpModules>
            <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="YafInitModule" type="YAF.Classes.Base.YafInitModule, YAF.Classes.Base"/>
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" />
        </httpModules>

        <pages validateRequest="false" smartNavigation="false">
            <controls>
                <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
                <add tagPrefix="ajaxToolkit" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>

                <!-- Default: use non-dynamic (compiled classes) in YAF -->
                <add tagPrefix="YAF" namespace="YAF.Classes.UI" assembly="YAF.Classes.UI" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Utils" assembly="YAF.Classes.Utils" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Data" assembly="YAF.Classes.Data" />
                <add tagPrefix="YAF" namespace="YAF.Controls" assembly="YAF.Controls" />
                <add tagPrefix="YAF" namespace="YAF.Controls.Statistics" assembly="YAF.Controls" />

                <!-- Optional: use dynamic classes in YAF by moving all the YAF.x directories (YAF.Classes.*, YAF.Providers)
                        into the App_Code\YAF directory. Delete the associated .dll files from the \bin directory. Comment out the above
                        "non-dynamic" namespaces above and enable these:
                -->

                <!--add tagPrefix="YAF" namespace="YAF.Classes.UI" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Utils" />
                <add tagPrefix="YAF" namespace="YAF.Classes.Data" />
                <add tagPrefix="YAF" namespace="YAF.Controls" />
                <add tagPrefix="YAF" namespace="YAF.Controls.Statistics" /-->

                <add tagPrefix="YAF" namespace="YAF.Classes" />
                <add tagPrefix="YAF" namespace="YAF"/>
                <add tagPrefix="editor" namespace="YAF.Editor"/>

            </controls>
            <namespaces>
                <add namespace="YAF" />
                <add namespace="YAF.Classes.UI" />
                <add namespace="YAF.Classes.Utils" />
                <add namespace="YAF.Controls" />
                <add namespace="YAF.Classes.Data" />
            </namespaces>
        </pages>

        <roleManager enabled="true" defaultProvider="YafRoleProvider">
            <providers>
                <clear/>
                    <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafRoleProvider" type="YAF.Providers.Roles.YafRoleProvider"/>
            </providers>
        </roleManager>
        <membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
            <providers>
                <clear/>
                <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafMembershipProvider" requiresUniqueEmail="true" useSalt="true" type="YAF.Providers.Membership.YafMembershipProvider"/>
            </providers>
        </membership>
        <profile enabled="true" defaultProvider="YafProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
            <providers>
                <clear/>
                <add connectionStringName="yafnet" applicationName="YetAnotherForum" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider"/>
            </providers>
        </profile>

    </system.web>

    <system.web.extensions>
        <scripting>
            <webServices>
                <!-- Uncomment this line to customize maxJsonLength and add a custom converter -->
                <!--
         <jsonSerialization maxJsonLength="500">
            <converters>
               <add name="ConvertMe" type="Acme.SubAcme.ConvertMeTypeConverter"/>
            </converters>
         </jsonSerialization>
         -->
                <!-- Uncomment this line to enable the authentication service. Include requireSSL="true" if appropriate. -->
                <!--
         <authenticationService enabled="true" requireSSL = "true|false"/>
         -->
                <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved
                 and modified in ASP.NET AJAX applications, you need to add each property name to the readAccessProperties and
                 writeAccessProperties attributes. -->
                <!--
         <profileService enabled="true"
                                 readAccessProperties="propertyname1,propertyname2"
                                 writeAccessProperties="propertyname1,propertyname2" />
         -->
            </webServices>
            <!--
      <scriptResourceHandler enableCompression="true" enableCaching="true" />
      -->
        </scripting>
    </system.web.extensions>

    <system.webServer>
        <validation validateIntegratedModeConfiguration="false"/>
        <modules>
            <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="YafInitModule" type="YAF.Classes.Base.YafInitModule, YAF.Classes.Base"/>
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler" />
        </modules>
        <handlers>
            <remove name="WebServiceHandlerFactory-Integrated"/>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
            <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
        </handlers>
    </system.webServer>

</configuration>



db.config:
Code:

<connectionStrings>
    <add name="yafnet" connectionString="Driver={SQL Native Client};Server=76.12.39.88;Database=ebwebwork; Uid=xxxxxxxx;Pwd=xxxxxxxx;" />
</connectionStrings>

mddubs
#11 Posted : Thursday, December 04, 2008 3:46:12 AM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
You gotta read what I wrote a little more closely... The root key is in the app.config file. Re-read that part and make those changes.

All config files must be in the root. You can see in the web.config that some sections are linked to external files (app.config, db.config etc). This is done for organization and re-use. These files must exist where ever the web.config is pointing to, by default it is the same directory, the root.

Mmmmm... beeer...
ericbourland
#12 Posted : Thursday, December 04, 2008 4:57:16 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
Hey, mddubs,

Thanks for the note. I read what you wrote:

Since you're putting your forum in a subdirectory, modify the root key in the app.config file, yours would look like this:
<add key="root" value="/forum" />

This makes sense. And I did that b/c I believe you know what you are talking about. However, the documentation says something contrary:

"If YetAnotherForumNET isn't installed at the root directory of your web server or host, make sure the files in the bin directory of the zip file is copied to /bin on your web server. Also you'll need to add the element to the web.config to point to the correct URL. Example: If you have install the forum in the directory "http://www.yoursite.com/forum/yaf/" you will need to add /forum/yaf/ to web.config."

According to this instruction I need to add "http://www.guardianhelp.org/forum/" somewhere in web.config. At least that is how I read it.

However, I am going to go with your advice, and disregard the instructions which I am starting to think are maybe a little suspect.

I added <add key="root" value="/forum" /> to app.config. I think I have it all set up correctly. At my setup page:

http://www.guardianhelp....um/install/default.aspx

I am getting an error: Execute Forbidden. So I am going to go into IIS 6 and enable program execution in the install folder.

Is this a common or normal occurrence and is it a security risk?

Peace.

Eric
ericbourland
#13 Posted : Thursday, December 04, 2008 5:52:30 AM
Rank: Advanced Member


Joined: 12/3/2008
Posts: 34
Location: Chicago
It's alive! It's throwing an error when I enter the Configuration password, but I am on the right track.

I moved all config files to "/" (root). That helped a lot.

Now this page is active: http://www.guardianhelp....um/install/default.aspx

But when I enter a config password I get this error, below.

I made sure to give user ASPNET write access / full control over file app.config.

What do you think I have done wrong?

You're so getting beer, on me. =)



Quote:

Server Error in '/' Application.


Cannot save the configPassword to the app.config file. Please verify that the ASPNET user has write access permissions to the app.config file. Or modify the app.config "configPassword" key with a plaintext password and try again.
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.Exception: Cannot save the configPassword to the app.config file. Please verify that the ASPNET user has write access permissions to the app.config file. Or modify the app.config "configPassword" key with a plaintext password and try again.

Source Error:


Line 199: {
Line 200: // just a warning now...
Line 201: throw new Exception( "Cannot save the configPassword to the app.config file. Please verify that the ASPNET user has write access permissions to the app.config file. Or modify the app.config \"configPassword\" key with a plaintext password and try again." );
Line 202: }
Line 203:


Source File: c:\websites\guardianhelp.org\forum\install\default.aspx.cs Line: 201

Stack Trace:


[Exception: Cannot save the configPassword to the app.config file. Please verify that the ASPNET user has write access permissions to the app.config file. Or modify the app.config "configPassword" key with a plaintext password and try again.]
YAF.Install._default.Wizard_NextButtonClick(Object sender, WizardNavigationEventArgs e) in c:\websites\guardianhelp.org\forum\install\default.aspx.cs:201
System.Web.UI.WebControls.Wizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746





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

logan
#14 Posted : Thursday, December 04, 2008 2:25:28 PM
Rank: Advanced Member



Joined: 3/16/2008
Posts: 72
Location: Las Vegas, NV USA
open app.config and manually insert a password - upload and re attempt install.



<appSettings>
<!--
******************************************************************
** ConfigPassword Key ** Defaults to: Empty (not installed) **

Password to run configuration (/install/default.aspx) for the forum.
If you cannot set write permissions on this file (app.config)
you can enter manually enter a plain text password here that will
be required when you attempt to run the configuration. A config
password is required for security reasons.
-->
<add key="configPassword" value="PASSWORD" />
<!--
mddubs
#15 Posted : Thursday, December 04, 2008 4:03:47 PM

Rank: YAF Developer



Joined: 8/7/2008
Posts: 164
Location: Chicagoland
Yep, Logan's right. And that should do it!

One thing you should understand though, is that app.config IS the web.config. All the config files that are linked to the web.config could just as easily be incorporated into the web.config itself. For example, a simple web.config will looks like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings>
<key name="root" value="/forum" />
</appSettings>
</configuration>

But a lot of people will have a ton of app setting keys and will prefer to put it into an external file like this:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<appSettings configSource="app.config" />
</configuration>

But it is still correct to refer to changing a config key in the web.config, even if it's located in a separate config file. This is true with any config file linked to the web.config.
Users browsing this topic
Guest
2 Pages 12>
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.248 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET