Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Unable to generate a temporary class

Vote:
 

Upgrading from CMS 6 to CMS 6R2 and as soon as i fired the installation up im getting the YSOD (Yellow Screen Of Death).

Following is the error:

 


Server Error in '/' Application.


 


Unable to generate a temporary class (result=1).
error CS0012: The
type 'EPiServer.Security.SecurityEntityType' is defined in an assembly that is
not referenced. You must add a reference to assembly 'EPiServer,
Version=6.0.530.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.
error
CS0030: Cannot convert type 'EPiServer.Security.SecurityEntityType []' to
'EPiServer.Security.SecurityEntityType
[c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]'
error
CS0029: Cannot implicitly convert type 'EPiServer.Security.SecurityEntityType
[c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]'
to 'EPiServer.Security.SecurityEntityType []'

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.InvalidOperationException: Unable to generate a temporary class
(result=1).
error CS0012: The type 'EPiServer.Security.SecurityEntityType' is
defined in an assembly that is not referenced. You must add a reference to
assembly 'EPiServer, Version=6.0.530.0, Culture=neutral,
PublicKeyToken=8fe83dea738b45b7'.
error CS0030: Cannot convert type
'EPiServer.Security.SecurityEntityType []' to
'EPiServer.Security.SecurityEntityType
[c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]'
error
CS0029: Cannot implicitly convert type 'EPiServer.Security.SecurityEntityType
[c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]'
to 'EPiServer.Security.SecurityEntityType []'


Source Error:



The source code that generated this unhandled exception can only be
shown when compiled in debug mode. To enable this, please follow one of the
below steps, then request the URL:

1. Add a "Debug=true" directive at the
top of the file that generated the error. Example:

  <%@ Page
Language="C#" Debug="true" %>

or:

2) Add the following section
to the configuration file of your
application:

<configuration>
   <system.web>
       <compilation
debug="true"/>
   </system.web>
</configuration>

Note
that this second technique will cause all files within a given application to be
compiled in debug mode. The first technique will cause only that particular file
to be compiled in debug mode.

Important: Running applications in debug
mode does incur a memory/performance overhead. You should make sure that an
application has debugging disabled before deploying into production
scenario.


Stack Trace:


[InvalidOperationException: Unable to generate a temporary class (result=1).
error CS0012: The type 'EPiServer.Security.SecurityEntityType' is defined in an assembly that is not referenced. You must add a reference to assembly 'EPiServer, Version=6.0.530.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.
error CS0030: Cannot convert type 'EPiServer.Security.SecurityEntityType []' to 'EPiServer.Security.SecurityEntityType [c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]'
error CS0029: Cannot implicitly convert type 'EPiServer.Security.SecurityEntityType [c:\Windows\assembly\GAC_MSIL\EPiServer.Framework\6.2.267.1__8fe83dea738b45b7\EPiServer.Framework.dll]' to 'EPiServer.Security.SecurityEntityType []'
]
   System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence) +1267
   System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies) +2890
   System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence) +125
   System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace) +144
   System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace) +545
   Dropit.Extension.Core.Serializer.Deserialize(String xml) +221
   Dropit.Extension.Controllers.PageDataManager.LoadSpecializedCommonData(PageReference rootLink) +164
   Dropit.Extension.Common.CategoryStorage.Load() +50
   Dropit.Extension.Controllers.CategoryManager.get_ExtensionCategories() +50
   Dropit.Extension.Controllers.CategoryManager.Initialize() +56
   Dropit.Extension.Common.GlobalSettings.InitializeSettings() +73
   Dropit.Extension.Handlers.InitializationModule.Initialize(InitializationEngine context) +32
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +859
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +115
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +227
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +56
   EPiServer.Global..ctor() +76
   ASP.global_asax..ctor() +9

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) +146
   System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) +298
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +79
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +10362891
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +258
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +382

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11305670
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4342340

 

I think its strange that it says i need to reference to a old dll file since i upgraded it. I got the correct dll files from the upgrade in my solution to...

#49971
Apr 07, 2011 9:13
Vote:
 

Clearification: Its after the installation im getting YSOD, when i enter the site...

 

By the way epidevs. we can see the epirightclick menu when we right click on this page....

#49973
Edited, Apr 07, 2011 9:20
Vote:
 

I had the same problem. In my case the reson was EPiServer Composer still in 4.0 version (thus referance EPiServer 6.0.xxx).

From your stack trace I can see you also have Composer module.

 

Solution:

Upgrade your Composer to 4.1 version. Below you find a link describing how to do it:

http://world.episerver.com/Documentation/Items/Installation-Instructions/EPiServer-Composer/Installation-Instructions---EPiServer-Composer-4-R2/

 

Piotr

#50119
Apr 13, 2011 14:49
Vote:
 

Thnx Piotr for the assistans. Ive already solved the problem and have been a bit of a snoozer when it comes to updating this thread. The solutíon was like you said, updating to 4.1

#50121
Apr 13, 2011 14:54
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.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.