logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
dtran  
#1 Posted : Thursday, April 13, 2006 7:42:30 PM(UTC)
dtran
Rank: Newbie

Reputation:

Groups: Member
Joined: 4/13/2006(UTC)
Posts: 3
Location: US

Hi i created a custom roleprovider and all that other good stuff so that i can have user authentication on my site. The reason I did that is because the default way (using the aspnetdb.mdf) did not work after i published it to your servers. It works fine on my localhost but once published it dies. I think I got the setup correct right now... But I have no clue on how to add/delete users and manage roles for those users... could any please point me in the right direction? On my localhost I used the ASP.NET Web Application Administrator to manage my users and their roles, I can't do that now that i put my site on your servers. Any help would be GREATLY appreciated! Thanks in advance!

Best Regards,
dtran
Smiling4ever  
#2 Posted : Thursday, April 13, 2006 10:11:27 PM(UTC)
Smiling4ever
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/3/2006(UTC)
Posts: 348
Man

Was thanked: 1 time(s) in 1 post(s)
Well, not everything that is working in localhost should work on the server. :) .

For your issue, as a developer i don't use the built in role managments but will do that today and test the way you can do that.

Regards
Noman Dormosh

HostingFest
dtran  
#3 Posted : Friday, April 14, 2006 11:40:56 AM(UTC)
dtran
Rank: Newbie

Reputation:

Groups: Member
Joined: 4/13/2006(UTC)
Posts: 3
Location: US

Senior Developer wrote:
Well, not everything that is working in localhost should work on the server. :) .

For your issue, as a developer i don't use the built in role managments but will do that today and test the way you can do that.

Regards


Thank's for your input, I'm still a beginner so I dont quite know how to create my own yet... =) I mean I tried google'ing up some stuff on that but find it somewhat difficult to understand. I dont know but if I understood you correctly (you are going to use the built-in role management thing to see what I'm talking about) then I appreciate you taking you time and helping me out!

Thanks again!
Smiling4ever  
#4 Posted : Friday, April 14, 2006 7:56:56 PM(UTC)
Smiling4ever
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/3/2006(UTC)
Posts: 348
Man

Was thanked: 1 time(s) in 1 post(s)
ok, please wait for my reply then. I'm going to find a solution for that.:doubt:
Noman Dormosh

HostingFest
dtran  
#5 Posted : Sunday, April 16, 2006 9:48:04 PM(UTC)
dtran
Rank: Newbie

Reputation:

Groups: Member
Joined: 4/13/2006(UTC)
Posts: 3
Location: US

i'll be looking forward to it, but if you cant then it's cool. i'll keep hunting for a solution in the mean time... thanks again!
Smiling4ever  
#6 Posted : Thursday, April 20, 2006 12:31:08 AM(UTC)
Smiling4ever
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/3/2006(UTC)
Posts: 348
Man

Was thanked: 1 time(s) in 1 post(s)
I found a solution for this.

Step (1) : From the SQL managment studio, Generate the sql script for the db (ASPNETDB.MDF). Script everything (tables, sp ..etc)

Step (2) : Execute the SQL script against your db

Step (3) : Open your web.config file and edit the membership tag as the followings

Code:


    <membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add 
          name="SqlProvider" 
          type="System.Web.Security.SqlMembershipProvider" 
          connectionStringName="MsSqlConnection"
          applicationName="MyApplication"
          enablePasswordRetrieval="false"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="true"
          requiresUniqueEmail="true"
          passwordFormat="Hashed" />
      </providers>
    </membership>




Where the connectionstring of the database is MsSqlConnection

Please try it and let me know... :)
Noman Dormosh

HostingFest
Smiling4ever  
#7 Posted : Saturday, April 22, 2006 8:25:06 AM(UTC)
Smiling4ever
Rank: Administration

Reputation:

Groups: Administration, Member
Joined: 1/3/2006(UTC)
Posts: 348
Man

Was thanked: 1 time(s) in 1 post(s)
Or you can get the SQL scripts from the following location

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

File with the .sql extension (install....)

Execute them against the db
Noman Dormosh

HostingFest
Naveed  
#8 Posted : Monday, July 24, 2006 11:36:07 PM(UTC)
Naveed
Rank: Newbie

Reputation:

Groups: Member
Joined: 5/7/2006(UTC)
Posts: 3
Location: UAE Ras AL Khaima

i have the same issu and every thing done on the web hosted db. all the objects of ASPNETDB are created in my db but still i can not get proplogin.

My connection string is as follows.
ConnectionString" connectionString="Data Source=208.101.48.243,1433;Network Library=DBMSSOCN;Initial Catalog=navdata;User ID=naveed;Password=xxxxx;Trusted_Connection=false

further i have add the above mentioned line in my web.config too.

here is code

<membership defaultProvider="SqlProvider" userIsOnlineTimeWindow="30">
<providers>
<clear />
<add name="SqlProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="ConnectionString" applicationName="MyApplication" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" requiresUniqueEmail="true" passwordFormat="Hashed"/>
</providers>
/membership>

i am getting the following error

he SSE Provider did not find the database file specified in the connection string. At the configured trust level (below High trust level), the SSE provider can not automatically create the database file.

Pleae Guide?




Users browsing this topic
Guest (2)
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.