FormatException after switching server

Vote:
 

Hi!

We've made a copy of our EPiServer site (5.2.375.133) and moved it to a new server (64-bit, IIS7).

However, when we try to view a page in edit mode we get the following format exception:

[FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
   System.Guid..ctor(String g) +2959
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.BindRecipientContainers() +169
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.InitializeRecipientsSection() +675
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.Page_Init(Object sender, EventArgs e) +55
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnInit(EventArgs e) +132
   System.Web.UI.Control.InitRecursive(Control namingContainer) +143
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477

If we deactivate EPiServer Mail (EditPanel) in module EPiServer Mail EPiServer CMS GUI Integration Assembly 4.4.343.20 the error doesn't appear.

Any idea on what could be wrong?


//Marcus

#47490
Jan 31, 2011 9:01
Vote:
 

Managed to solve it on my own!

Removed "EPiServer.Mail.Sources.EPiServerCommunity.dll" from the bin-folder.

 

//Marcus

#47495
Jan 31, 2011 9:25
Vote:
 

I’m encountering some kind of similar issue after migrating Relate+ 1.0 to Relate+ 2.0

Server Error in '/' Application.


Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

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.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

Source Error:

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.


Stack Trace:

[FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).]
   System.Guid..ctor(String g) +2486
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.BindRecipientContainers() +117
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.InitializeRecipientsSection() +515
   EPiServer.Mail.Core.EP.Web.ComposeNewMailControl.Page_Init(Object sender, EventArgs e) +49
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnInit(EventArgs e) +99
   System.Web.UI.UserControl.OnInit(EventArgs e) +77
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Control.InitRecursive(Control namingContainer) +210
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

This error occurs in the right frame when entering EPiServer’s edit-mode.  It’s "solved" by deleting EPiServer.Mail.Sources.EPiServerCommunity.dllfrom the \bin folder. However this .dll is included in a standard installation of Relate+ 2.0 so I doubt this is a valid solution. I've utilized Reflector and it seems that the constructor assigns a valid GUID so I'm a bit stuck. Any ideas?

#51759
Jun 21, 2011 16:46
Vote:
 

Hi,

 

Did anyone actually get a solution for this issue ? I believe deleting a DLL is a temporary workaround. 

 

Kr!s

#52965
Aug 23, 2011 11:25
Vote:
 

Not to my knowledge.. Maby it should be reported as a bug?

#53373
Sep 06, 2011 10:58
Vote:
 

If you go to the EPiServer Mail tab in the edit tree, can access any of "Compose new mail", "Manage recipients" or "Sent mailings" without encontering a similar error? If so, can you see anything in the "Source" dropdown?

I would expect this behaviour if you had no recipient sources at all loaded. Therefore it is very odd that it happens when you add one or two sources. The default source should always be loaded. But perhaps there's an exception loading the sources in this DLL which prevents the standard source from being loaded. It could be that you are missing an additional dll or your assembly redirects point to the same version.

Anything in the log pointing to assembly bind errors ("could not load assembly xxx or one of its dependencies" etcetera)?

#53386
Sep 06, 2011 14:03
Vote:
 

Or perhaps something like this in the log:

"GetInstancesOfBaseType: Unable to load types from assembly x, missing references?"  where x is likely EPiServer.Mail.Sources.EPiServerCommunity or EPiServer.Mail.Sources.Internal.

#53387
Sep 06, 2011 14:08
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.