chrisodonnell
  • Posts: 4
  • Joined: 13/08/2012
I'm trying to integrate YAF with an exisitng NOPcommerce site.

The membership is in 1 database, and YAF is running in another.

I took the recommended web.config and added the membership and roles from the existing.

I've been able to use the existing memebership for username & password, but then I get a "There's been a system error processing your request. Please contact the forum admin explaining what you were doing when it happened.".

I setup a Guest user (ours was guest) and changing it to Guest solved 1 problem.

Any advice would be appreciated.

Here's my web config:
<?xml version="1.0" encoding="utf-8"?>
<!-- YAF -->
<configuration>
<configSections>
<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="false"/>
<xhtmlConformance mode="Transitional"/>
<customErrors defaultRedirect="Error.aspx" mode="Off"/>
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
<authentication mode="Forms">
<forms name=".BDS_Authentication" cookieless="UseCookies" loginUrl="/Login.aspx" protection="All"

timeout="240" slidingExpiration="true" path="/" />
</authentication>
<authorization>
<allow users="*" />
</authorization>
<!-- Set debug to "true" to test out the system in development -->
<compilation defaultLanguage="c#" debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0,

Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0,

Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Windows.Forms, Version=2.0.0.0,

Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=b77a5c561934e089"/>
<add assembly="System.ServiceModel.Web, Version=3.5.0.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=3.5.0.0,

Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0,

Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd"

type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=31BF3856AD364E35" validate="false"/>
<add verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory, AjaxPro.2"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule,

System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule,

YAF.Classes.Core"/>
<add name="UrlRewriter"

type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter"/>
</httpModules>
<pages validateRequest="false" smartNavigation="false">
<controls>
<add tagPrefix="DotNetAge" namespace="DNA.UI.JQuery"

assembly="DNA.UI.JQuery"/>
<add tagPrefix="DotNetAge" namespace="DNA.UI" assembly="DNA"/>
<add tagPrefix="asp" namespace="System.Web.UI"

assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls"

assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=31BF3856AD364E35"/>
<!-- 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.Core"

assembly="YAF.Classes.Core"/>
<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.Classes.Core" />
<add tagPrefix="YAF" namespace="YAF.Controls.Statistics" /-->
<add tagPrefix="YAF" namespace="YAF.Classes"/>
<add tagPrefix="YAF" namespace="YAF"/>
</controls>
<namespaces>
<add namespace="YAF"/>
<add namespace="YAF.Classes.UI"/>
<add namespace="YAF.Classes.Utils"/>
<add namespace="YAF.Classes.Core"/>
<add namespace="YAF.Controls"/>
<add namespace="YAF.Classes.Data"/>
</namespaces>
</pages>
<membership defaultProvider="NopMembershipSqlProvider" userIsOnlineTimeWindow="15">
<providers>
<remove name="AspNetSqlMembershipProvider" /> <!-- cod development -->
<remove name="NopMembershipSqlProvider" /> <!-- cod development -->
<add name="NopMembershipSqlProvider"
type="NopSolutions.NopCommerce.BusinessLogic.Profile.StoreMembershipProvider, Nop.BusinessLogic"
connectionStringName="ArticulateAppDB" enablePasswordReset="true" requiresQuestionAndAnswer="false"
applicationName="NopCommerce" requiresUniqueEmail="true" enablePasswordRetrieval="true" />
</providers>
</membership>
<roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="NopRoleManagerSqlProvider"

cookieName=".NopCommerceRoles" cookiePath="/" cookieTimeout="240" cookieRequireSSL="false"

cookieSlidingExpiration="true" createPersistentCookie="true" cookieProtection="All">
<providers>
<remove name="NopRoleManagerSqlProvider" /> <!-- cod development machine -->
<remove name="AspNetSqlRoleProvider" /> <!-- cod development machine -->
<remove name="Nop provider type" /> <!-- cod development machine -->
<add name="NopRoleManagerSqlProvider"

type="NopSolutions.NopCommerce.BusinessLogic.Profile.StoreRoleProvider, Nop.BusinessLogic"

connectionStringName="ArticulateAppDB" applicationName="NopCommerce" />
<add name="NOP provider type"

type="NopSolutions.NopCommerce.BusinessLogic.Profile.StoreRoleProvider, Nop.BusinessLogic,

Version=1.6.0.0, Culture=neutral, PublicKeyToken=null" applicationName="Fluency"

connectionStringName="ArticulateAppDB" />
<add name="YafRoleProvider" connectionStringName="yafnet" applicationName="YetAnotherForum"

type="YAF.Providers.Roles.YafRoleProvider"/>
</providers>
</roleManager>
<profile enabled="true" defaultProvider="YafProfileProvider"

inherits="YAF.Classes.Utils.YafUserProfile">
<providers>
<clear/>
<add connectionStringName="yafnet2"

applicationName="YetAnotherForum" name="YafProfileProvider"

type="YAF.Providers.Profile.YafProfileProvider"/>
</providers>
</profile>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<remove name="ScriptModule"/>
<remove name="YafTaskModule"/>
<remove name="UrlRewriter"/>
<add name="ScriptModule" preCondition="managedHandler"

type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,

PublicKeyToken=31BF3856AD364E35"/>
<add name="YafTaskModule" type="YAF.Classes.Core.YafTaskModule,

YAF.Classes.Core" preCondition="managedHandler"/>
<add name="UrlRewriter"

type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<remove name="ScriptHandlerFactory"/>
<remove name="ScriptHandlerFactoryAppServices"/>
<remove name="ScriptResource"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx"

preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory,

System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*"

path="*_AppService.axd" preCondition="integratedMode"

type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.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=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="AjaxPro" verb="POST,GET,HEAD" path="ajaxpro/*.ashx" type="AjaxPro.AjaxHandlerFactory,

AjaxPro.2"/>
</handlers>
</system.webServer>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"

type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb"

warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="OptionInfer" value="true"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
</configuration>

and my db.config contains the connection strings to both databases

Thanks

Chris
Sponsor
codrir
  • Posts: 1
  • Joined: 26/10/2012
wow hoooo

What's this ? I can not understand !

camiseta de futbol 

camiseta real madrid 
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.

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved