|
i get this when i load the wpf form. i have used the deven thing and this is what i got. vista 64 bit visual studio pro 2008. Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) at System.Activator.CreateInstance(String assemblyName, String typeName) at System.AppDomain.CreateInstance(String assemblyName, String typeName) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identity, AssemblyReferenceProvider assemblyReferences, IEnumerable`1 assemblyFolders) at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences) at MS.Internal.Providers.VSDesignerContext.Initialize(IServiceProvider provider, IVsHierarchy hierarchy, UInt32 itemid, Object docDataObj) at MS.Internal.Providers.VSDesignerContext..ctor(IServiceProvider provider, IVsWindowFrame frame, Object docDataObj) at MS.Internal.Providers.VSDesignerContext.GetContext(IServiceProvider services, IVsWindowFrame frame, Boolean createIfNotExist) at MS.Internal.Designer.DesignerPane.InitializeDesigner()
- Edited byDarenRR Thursday, August 13, 2009 1:10 AM
-
| | DarenRR Thursday, August 13, 2009 1:07 AM | You need to install the CLR hotfix KB963676 to fix this issue. 1.Visit https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16827&wa=wsignin1.0 (this is a temporary download page pending the release of the final KB article text for the CLR hotfix) 2.Download the correct version of the patch for your system (this is very important): a.For Windows Vista or Windows Server 2008 32 bit systems choose Windows6.0-KB963676-x86.msu b.For Windows Vista or Windows Server 2008 x64 bit systems choose Windows6.0-KB963676-x64.msu c.For Windows Vista or Windows Server 2008 ia64 bit systems choose Windows6.0-KB963676-ia64.msu d.For Windows XP or Windows Server 2003 32 bit systems choose NDP20SP2-KB963676-x86.exe e.For Windows XP or Windows Server 2003 x64 bit systems choose NDP20SP2-KB963676-x64.exe f.For Windows XP or Windows Server 2003 ia64 bit systems choose NDP20SP2-KB963676-ia64.exe g.Note: •There is no Windows 7 version of this Hotfix �the fixis rolled into the version of the .NET framework that ships with Windows 7, but if you are running a prerelease Windows 7 such as the Beta release you will not be able to use this hotfix •The 64 bit installers will automatically patch both 32 and 64 bit versions of the CLR �this is important as the Visual Studio WPF designer is a 32 bit application 3.Install the KB963676 Hotfix you downloaded, and reboot your system 4.Use Visual Studio 2008 SP1 to develop in WPF as usual Thanks Mark Wilson-Thomas
Mark Wilson-Thomas - Program Team - WPF & SL Designer for Visual Studio - posts are provided 'as-is' - Marked As Answer byMark Wilson-ThomasMSFT, ModeratorFriday, August 14, 2009 4:17 AM
-
| | Mark Wilson-Thomas Friday, August 14, 2009 4:17 AM | You need to install the CLR hotfix KB963676 to fix this issue. 1.Visit https://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=16827&wa=wsignin1.0 (this is a temporary download page pending the release of the final KB article text for the CLR hotfix) 2.Download the correct version of the patch for your system (this is very important): a.For Windows Vista or Windows Server 2008 32 bit systems choose Windows6.0-KB963676-x86.msu b.For Windows Vista or Windows Server 2008 x64 bit systems choose Windows6.0-KB963676-x64.msu c.For Windows Vista or Windows Server 2008 ia64 bit systems choose Windows6.0-KB963676-ia64.msu d.For Windows XP or Windows Server 2003 32 bit systems choose NDP20SP2-KB963676-x86.exe e.For Windows XP or Windows Server 2003 x64 bit systems choose NDP20SP2-KB963676-x64.exe f.For Windows XP or Windows Server 2003 ia64 bit systems choose NDP20SP2-KB963676-ia64.exe g.Note: •There is no Windows 7 version of this Hotfix �the fixis rolled into the version of the .NET framework that ships with Windows 7, but if you are running a prerelease Windows 7 such as the Beta release you will not be able to use this hotfix •The 64 bit installers will automatically patch both 32 and 64 bit versions of the CLR �this is important as the Visual Studio WPF designer is a 32 bit application 3.Install the KB963676 Hotfix you downloaded, and reboot your system 4.Use Visual Studio 2008 SP1 to develop in WPF as usual Thanks Mark Wilson-Thomas
Mark Wilson-Thomas - Program Team - WPF & SL Designer for Visual Studio - posts are provided 'as-is' - Marked As Answer byMark Wilson-ThomasMSFT, ModeratorFriday, August 14, 2009 4:17 AM
-
| | Mark Wilson-Thomas Friday, August 14, 2009 4:17 AM | I have done this and this is the result: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) at System.Activator.CreateInstance(String assemblyName, String typeName) at System.AppDomain.CreateInstance(String assemblyName, String typeName) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName) at MS.Internal.Package.VSIsolationProviderService.CreateIsolationProvider(String identity, AssemblyReferenceProvider assemblyReferences, IEnumerable`1 assemblyFolders) at MS.Internal.Providers.VSDesignerContext.GetIsolationProvider(IServiceProvider provider, IVsHierarchy hierarchy, AssemblyReferenceProvider assemblyReferences) at MS.Internal.Providers.VSDesignerContext.Initialize(IServiceProvider provider, IVsHierarchy hierarchy, UInt32 itemid, Object docDataObj) at MS.Internal.Providers.VSDesignerContext..ctor(IServiceProvider provider, IVsWindowFrame frame, Object docDataObj) at MS.Internal.Providers.VSDesignerContext.GetContext(IServiceProvider services, IVsWindowFrame frame, Boolean createIfNotExist) at MS.Internal.Designer.DesignerPane.InitializeDesigner()
| | DarenRR Friday, August 14, 2009 4:15 PM | I got it to work thank you. | | DarenRR Friday, August 14, 2009 4:26 PM | Thanks for letting us know DarenRR; what did you have to do other than installing the Hotfix to make things work? Mark Mark Wilson-Thomas - Program Team - WPF & SL Designer for Visual Studio - posts are provided 'as-is' | | Mark Wilson-Thomas Friday, August 14, 2009 4:38 PM | DarrenRR,
I've got the same issue, can you tell us how to resolve this?
Regards,
Alex | | MIC-Alex Monday, October 05, 2009 1:36 PM |
|