After Update 14.2.507.122 my web app crash with this error:
Same value has already been added.
Type: ArgumentException Message: Same value has already been added. Parameter name: value Data: 1 entries 'ASPIMPERSONATING' '' Stack trace:
at DevExpress.ExpressApp.DC.DCInterfaceWithUniqueValue`1.CheckParameters(Type interfaceType, T value) at DevExpress.ExpressApp.DC.EntitiesToGenerateInfo.OnAdd(Type interfaceType, String entityName) at DevExpress.ExpressApp.DC.DCInterfaceWithUniqueValue`1.AddInternal(Type interfaceType, T value) at DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.RegisterEntity(String entityName, Type interfaceType) at DevExpress.ExpressApp.DC.TypesInfo.RegisterEntity(String name, Type interfaceType) at Xafari.GeneratedXF.GeneratedXFModule.RegisterDC() in c:\Windows\Temp\2f4bkuol.0.cs:line 20 at Xafari.XF.XafariXFModule.GetDeclaredExportedTypes() at DevExpress.ExpressApp.ModuleBase.GetExportedTypes() at DevExpress.ExpressApp.ApplicationModulesManager.CollectDomainComponents() at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo) at DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) at DevExpress.ExpressApp.XafApplication.Setup() at pnc.dgv.cdb.Web.Global.Session_Start(Object sender, EventArgs e) in c:\projects\pnc.dgv.cdb.Web\Global.asax.cs:line 62 at System.Web.SessionState.SessionStateModule.CompleteAcquireState() at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) InnerException is null
next Question:
Why the Xafari.FX use a Output in Windows\temp\ Folder? ( at Xafari.GeneratedXF.GeneratedXFModule.RegisterDC() in c:\Windows\Temp\szpktufs.0.cs:line 20 )
a restart of the Server will get the App online. A normal Restart of IIS ( iisrest ) will not work.
Replies
User
Description
Posted On
Sasha (Xafari Support)Client
Hello Lars,
To start I can advise you to remove the contents of the following folders:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
C:\Users\USER_NAME\AppData\Local\Temp\
C:\Windows\Temp\
Please, inform us of your results.
Thanks, Sasha.
Lars Platzdasch
Hi Sasha,
i get new Details: After the TimeOut raise in WebApp we see additional Errors from your XF Moduls.
at Xafari.GeneratedXF.GeneratedXFModule.RegisterDC() in c:\Windows\Temp\r5izhhis.0.cs:line 20 at Xafari.XF.XafariXFModule.GetDeclaredExportedTypes()
here is the full error Stack: -------------------------------------------------------------------------------- The error occurred:
Type: ArgumentException Message: Same value has already been added. Parameter name: value Data: 1 entries 'ASPIMPERSONATING' '' Stack trace:
at DevExpress.ExpressApp.DC.DCInterfaceWithUniqueValue`1.CheckParameters(Type interfaceType, T value) at DevExpress.ExpressApp.DC.EntitiesToGenerateInfo.OnAdd(Type interfaceType, String entityName) at DevExpress.ExpressApp.DC.DCInterfaceWithUniqueValue`1.AddInternal(Type interfaceType, T value) at DevExpress.ExpressApp.DC.Xpo.XpoTypeInfoSource.RegisterEntity(String entityName, Type interfaceType) at DevExpress.ExpressApp.DC.TypesInfo.RegisterEntity(String name, Type interfaceType) at Xafari.GeneratedXF.GeneratedXFModule.RegisterDC() in c:\Windows\Temp\r5izhhis.0.cs:line 20 at Xafari.XF.XafariXFModule.GetDeclaredExportedTypes() at DevExpress.ExpressApp.ModuleBase.GetExportedTypes() at DevExpress.ExpressApp.ApplicationModulesManager.CollectDomainComponents() at DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo) at DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) at DevExpress.ExpressApp.XafApplication.Setup() at pnc.dgv.cdb.Web.Global.Session_Start(Object sender, EventArgs e) in c:\projects\pnc\pnc.dgv.cdb.tfs\CDB_14.2\pnc.dgv.cdb.Web\Global.asax.cs:line 62 at System.Web.SessionState.SessionStateModule.CompleteAcquireState() at System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) InnerException is null
after i update last XAFARI Version 14.2.607.127 i get a new / old Problem in WEB.APP
this occourse everytime on the same WebServer our WebAPP is installed twice. once a PROD ( different DB ) and once as Test .
Question: WHY your Xafari.XF.EntityGenerator.GetXFAssembly() USE Windows\Temp Folder
instead of ASP.Net temporary C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Folder ? Here the Files live in different Folders for each WebAPPRoot?
I hope for a FAST Fix
Regards Lars
================================================================================ The error occurred:
Type: FileLoadException Message: Die Datei oder Assembly "file:///C:\Windows\TEMP\2fhip113.dll" oder eine Abhängigkeit davon wurde nicht gefunden. Zugriff verweigert Data: 1 entries 'ASPIMPERSONATING' '' Stack trace:
bei System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) bei System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) bei System.Reflection.Assembly.Load(AssemblyName assemblyRef, Evidence assemblySecurity) bei System.CodeDom.Compiler.CompilerResults.get_CompiledAssembly() bei Xafari.XF.EntityGenerator.GetXFAssembly() bei Xafari.EntityFactory.GetEntitiesModuleType(XafApplication application) bei Xafari.XF.XafariXFModule.GetDeclaredExportedTypes() bei DevExpress.ExpressApp.ModuleBase.GetExportedTypes() bei DevExpress.ExpressApp.ApplicationModulesManager.CollectDomainComponents() bei DevExpress.ExpressApp.ApplicationModulesManager.Load(ITypesInfo typesInfo, Boolean loadTypesInfo) bei DevExpress.ExpressApp.XafApplication.Setup(String applicationName, IList`1 objectSpaceProviders, ApplicationModulesManager modulesManager, ISecurityStrategyBase security) bei DevExpress.ExpressApp.XafApplication.Setup() bei pnc.dgv.cdb.Web.Global.Session_Start(Object sender, EventArgs e) bei System.Web.SessionState.SessionStateModule.CompleteAcquireState() bei System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) bei System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() bei System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) InnerException is null
Additionally actions:if you use impersonate=true you have to create windows user group with modify permission on GeneratedAssembly folderand have to add all users (so IUSR) in this group. If you use impersonate=false you have to set modify permissionon GeneratedAssembly folder for user which used in AppPool.