YAFLogo

yafisgreat
  • yafisgreat
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Good morning,

After several hours of searching and more trial and error than i care to admit; I need some additional guidance.

We are trying to use an existing ASPNETDB.mdf [in this case for the club site starter kit . I've been through billyboy's 1.9.3 integration guide  and haven't had any luck with adding our ASPNETDB.mdf to the membership provider.

We have tried copying the ASPNETDB file from our existing site and placing it into an App_Data folder. We have been able to run the site after making those changes but we aren't able to login.

Has anyone been able to integrate an ASPNETDB membership db? Would you please share your sucess story with the Padawan learners?

We would like to have a single membership database so we don't have to require our users to login to the club site and then have separate login credentials for the forum.

Here is our web.config. Have we missed something?

   <roleManager enabled="true" defaultProvider="YafRoleProvider">
      <providers>
        <clear/>
        <add connectionStringName="ASPNETDB" applicationName=""
        name="YafRoleProvider" type="System.Web.Security.SqlRoleProvider"/>
      </providers>
    </roleManager>
    <membership defaultProvider="YafMembershipProvider" hashAlgorithmType="SHA1">
      <providers>
        <clear/>
        <add connectionStringName="ASPNETDB" applicationName=""
        name="YafMembershipProvider" requiresUniqueEmail="true" 
        type="System.Web.Security.SqlMembershipProvider"/>
      </providers>
    </membership>

And the db.config connection string.

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

Any guidance you can provide will be fantastic. What are we missing? Does it matter that our existing web app is in VB? We are trying to avoid using this alternative .

THANK YOU!

Sponsor
Pisteuon
  • Pisteuon
  • 50.6% (Neutral)
  • YAF Forumling
16 years ago
I dont think it will actually work with the built in membership system, I tried every suggestion I found in these forums, alot of which seem to suggest the opposite of each other.:evil: I have just implemented the other forum you mentioned, and it was quite easy.:p
yafisgreat
  • yafisgreat
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Pisteuon. Thank you for your quick reply. I'm sorry that you did not have any luck. I'm not quite willing to give up yet though. Has anybody been able to setup this up properly?
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
yafisgreat... How is it failing? What is not working?
wesclyburn
yafisgreat
  • yafisgreat
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
16 years ago
Jaben,

Well the errors shown are haven't been all that helpful. Using the production web.config we get an error that says a serious error has occurred. Then while using the developer.config the program hangs... no page, no errors.

Are there additional steps other than changing the web.config file to look at the new aspnetdb membership db? Do we need edit the aspnetdb in anyway (add new fields)? Has anybody had any luck with this and would like to share their web.config?

Thank you in advance for any additional guidance!

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
16 years ago
We see your role and membership -- What does your profile configuration look like?
wesclyburn
16 years ago
I tested an integration with this kit using the same config posted in the other integration thread, and it works for me.