#region init dynamicwebuser & process. Dynamicweb.Modules.UserManagement.User u = new Dynamicweb.Modules.UserManagement.User(); u.UserName = tbEmail.Text; u.Type = Dynamicweb.Modules.UserManagement.UserType.ExtranetUser; u.ValidFrom = DateTime.Now; u.ValidTo = DateTime.Now.AddYears(1000); u.Name = tbName.Text; u.Company = tbCompany.Text; u.Phone = tbPhone.Text; u.Email = tbEmail.Text; u.AllowBackend = false; u.AddToGroup(261); u.Save(); #endregion
Developer forum
E-mail notifications
Oh user where have you gone :) (DW8)
Replies
The Save method returns a boolean indicating whether user has been successfully saved. Could you check the return value? If it's "false" then it's probably due to non-unique username.
-- Pavel
Dynamicweb.Modules.UserManagement.User u = new Dynamicweb.Modules.UserManagement.User(tbEmail.Text); if(u.IsUserNameValid()) { u.Type = Dynamicweb.Modules.UserManagement.UserType.ExtranetUser; u.ValidFrom = DateTime.Now; u.ValidTo = DateTime.Now.AddYears(1000); u.Name = tbName.Text; u.Company = tbCompany.Text; u.Phone = tbPhone.Text; u.Email = tbEmail.Text; u.AllowBackend = false; u.AddToGroup(261); if (u.Save()) { SendReceipt(tbEmail.Text); } else { throw new Exception("Error something went wrong when saving user"); } } else { throw new Exception("Invalid username in user (" + tbEmail.Text + ")"); }
Triede to insert with <!--@LoadControl and also the module to load ascx controls i mean it loads the control but it parses it wrong it seems
Thank you for your message and sorry for the late answer.
I confirm that the "LoadControl" functionality doesn't work as it should in DW8. We will fix this issue as soon as possible. The bug number is #7709 ("LoadControl: Server-side events are not being fired").
-- Pavel
What is the status on this bug? When will it be fixed? Our solution (clienti.dk) has been updated to DW8 and i really need to use the LoadControl feature - but I don't want to "downgrade" to an older version :-)
Hope it will soon be fixed.
/ René
Just checked the status of the item - one of our developers is working on it. The fix will be in the next service release. In case it's very urgent and you need a hotfix, I'd suggest you to contact the support.
-- Pavel
I have installed the 8.0.2.0 version and i cant get the @loadcontrol tag in the paragraph editor to work.
Can you please check this stat us again.
Is there no hotfix ready yet ?
I can see that the problem with server-side events not being fired is fixed in version 8.0.2.0. What kind of issues are you experiencing? Could you give us more details and provide with the URL (if possible) of the page where we can see the problem.
-- Pavel
Im only running it on an offline server a the moment.
If im using i.e. <!--@LoadControl(/CustomModules/InvoiceManagement/InvoiceManagementArchives.ascx)--> in paragraph editor im getting an "Website cannot been shown".
If im using DW ascx module provided with LoadControl parameter value above the websites shows no content at all.
Event log shows this (in danish):
Hændelseskode: 3005
Hændelsesmeddelelse: Der opstod en undtagelse, der ikke blev behandlet.
Hændelsestidspunkt: 19-04-2012 14:48:08
Hændelsestidspunkt (UTC): 19-04-2012 12:48:08
Hændelses-id: 6d515dcaae334e7c900022faa6cf68e9
Hændelsessekvens: 790
Hændelsesforekomst: 4
Hændelsesdetaljekode: 0
Programoplysninger:
Programdomæne: /LM/W3SVC/16/ROOT-4-129793126369898000
Tillidsniveau: Full
Virtuel programsti: /
Programsti: C:\inetpub\wwwroot\Solutions\dw8\nema.fo\
Computernavn: MAGNIHANSEN-PC
Procesoplysninger:
Proces-id: 3040
Procesnavn: w3wp.exe
Kontonavn: IIS APPPOOL\dw8.nema
Undtagelsesoplysninger:
Undtagelsestype: NullReferenceException
Undtagelsesmeddelelse: Objektreferencen er ikke indstillet til en forekomst af et objekt.
ved Dynamicweb.Admin.ParagraphEditModule.GetModules(String typeName)
ved Dynamicweb.Admin.ParagraphEditModule.ListModules()
ved Dynamicweb.Admin.ParagraphEditModule.Page_Load(Object sender, EventArgs e)
ved System.Web.UI.Control.OnLoad(EventArgs e)
ved System.Web.UI.Control.LoadRecursive()
ved System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Anmodningsoplysninger:
URL-adresse for anmodning: http://dw8.nema/Admin/Content/ParagraphEditModule.aspx?ID=2&PageID=2&ShowToolbar=False&OnLoadCallback=ParagraphModule_toggleLoading&OnCompleteCallback=ParagraphModule_onSettingsChanged&OnRemoveCallback=ParagraphModule_onModuleRemoved
Anmodningssti: /Admin/Content/ParagraphEditModule.aspx
Værtsadresse for bruger: 127.0.0.1
Bruger:
Er godkendt: False
Godkendelsestype:
Kontonavn for tråd: IIS APPPOOL\dw8.nema
Trådoplysninger:
Tråd-id: 9
Kontonavn for tråd: IIS APPPOOL\dw8.nema
Repræsenterer: False
Staksporing: ved Dynamicweb.Admin.ParagraphEditModule.GetModules(String typeName)
ved Dynamicweb.Admin.ParagraphEditModule.ListModules()
ved Dynamicweb.Admin.ParagraphEditModule.Page_Load(Object sender, EventArgs e)
ved System.Web.UI.Control.OnLoad(EventArgs e)
ved System.Web.UI.Control.LoadRecursive()
ved System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Brugerdefinerede hændelsesdetaljer:
Content version | 20.0.2.0 |
Assembly versions |
Dynamicweb.dll 8.0.2.0
8.0.2.0 Dynamicweb, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
Dynamicweb.Admin.dll 8.0.2.0
Dynamicweb.Admin, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
Dynamicweb.Controls.dll 8.0.2.0
Dynamicweb.Controls, Version=8.0.0.0, Culture=neutral, PublicKeyToken=null
|
Build-dagur | ma, 02 apr 2012 10:03 |
.NET Runtime version | v4.0.30319 |
Application bit version | 32Bit |
OS type | x86 (Microsoft Windows NT 6.1.7601 Service Pack 1) |
I have one solution (7.something) with the usercontrol rendering just like it's supposed
And I have another solution (8.0.2.2) with the same usercontrol (the only difference is version of the .NET framework). The LoadControl renders nothing. When I view the source of the page the LoadControl tag is still there. I've put the LoadControl tag in a paragraph in the editor. I've also tried to put it in a paragraph template and to use the Insert ascx module - same problem :(
I hope I'm just blind and doing something wrong - then it should be easy to fix ;-) But i can't really get it working.
Btw. when i look at your bugfix list for 8.0.2 (http://developer.dynamicweb-cms.com/releases/dynamicweb-8.0/bug-fixes-8.0.2.aspx) it says:
"7709: Bug
Area: Dynamicweb CMS
Title: LoadControl: Server-side events are not being fired
Description: Problem with double firing of some custom modules has been solved.
Workaround: None"
The original problem was "Server-side events are not being fired" and the solution description is "Problem with dobule firing...". That's not the same ;-)
I've got no problem with a simple usercontrol with just a button and a label that changes when i click the button - so the original problem with serverside events not firing is fixed.
Now I've got to create the "real" control. I hope and think i won't be experiencing any problems :-)
Im having the same problem now René, so please post what blinded you.
Posting a problem, and also the solution when its found, is always good on forums like these. Most people searching forums are looking for answers :) "No reason to tell what was wrong" dosent help much :)
agree, what a useless answer in a forum.
/J
You must be logged in to post in the forum