Rank: Newbie
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
|
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/3/2006(UTC) Posts: 348 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 |
|
|
|
Rank: Newbie
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!
|
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/3/2006(UTC) Posts: 348 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 |
|
|
|
Rank: Newbie
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!
|
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/3/2006(UTC) Posts: 348 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 MsSqlConnectionPlease try it and let me know... :) |
Noman Dormosh
HostingFest |
|
|
|
Rank: Administration
Groups: Administration, Member Joined: 1/3/2006(UTC) Posts: 348 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 |
|
|
|
Rank: Newbie
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?
|
|
|
|
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.
Important Information:
The HostingFest Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close