| |
Last Post 4/13/2010 3:55:53 PM By lukezy.
12 replies.
12/8/2009 12:42:36 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
User Creation From another Website
|
Hi Luke,
I need to develop a Reguest Handler Service to add verify users in DCS database of Online Store from another website. Which part or source code I can use.
Thanks,
|
12/8/2009 5:08:07 PM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: User Creation From another Website
|
You will need to call both System.Web.Security.Membership.CreateUser and DotShoppingCart.Commercial.Core.User.AddUser to create a user in DSC database.
DotShoppingCart Staff
|
12/9/2009 2:23:39 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
And how about Verify user existance before Adding.?
Regards,
|
12/9/2009 3:03:42 PM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: User Creation From another Website
|
DotShoppingCart Staff
|
4/13/2010 1:15:31 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
in my code The membership part works and user is added to the aspnet_user and aspnet_membership tables but the DSC.adduser does not works.
|
4/13/2010 2:50:44 PM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: User Creation From another Website
|
What doesn't work?
DotShoppingCart Staff
|
4/13/2010 2:51:20 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. </td>
</tr>
</tbody>
</table>
Stack Trace:
<table width="100%" bgcolor="#ffffcc">
<tbody>
<tr>
<td>
[NullReferenceException: Object reference not set to an instance of an object.]
DotShoppingCart.Commercial.Base.DSC..cctor() +116
[TypeInitializationException: The type initializer for 'DSC' threw an exception.]
DotShoppingCart.Commercial.Base.SiteNavigation.GetHost() +18
DotShoppingCart.Commercial.HttpModules.UrlRewriterHttpModule.get_DynamicPages() +49
DotShoppingCart.Commercial.HttpModules.UrlRewriterHttpModule.BeginRequest(Object sender, EventArgs e) +375
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
</td>
</tr>
</tbody>
</table>
|
4/13/2010 2:59:20 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
The previous thread shows the error message when using DSC.User in a code. The web.config is the same as the website.
|
4/13/2010 3:00:04 PM |
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
|
Re: User Creation From another Website
|
Already replied in this thread. Why are you posting the duplicate again?
DotShoppingCart Staff
|
4/13/2010 3:14:10 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
I did according to that thread, copied web.config of DCS to the app config file. but this error raise.
|
4/13/2010 3:16:21 PM |
Bahram
Posts: 878
Joined: 12/8/2008
Location:Vancouver, BC Canada
|
Re: User Creation From another Website
|
what do you mean by app.config: web.config or DSC.config
|
| | |
|