AccessViolationException when calling Assembly.GetFullName on Vist

AccessViolationException when calling Assembly.GetFullName on Vist

am 09.10.2007 14:04:02 von JasonRodman

I have a wierd problem in my application where any call to
Assembly.GetFullName of the currently running assembly fails with an
AccessViolationException. This only happens on windows vista, all editions.
Running the appliction as an administrator does not seem to help. Any idea
what would cause this? Does this have to do with code access security, or
assembly signing? Here is a trace of one exception:

System.TypeInitializationException: The type initializer for
'Syncfusion.CoreAssembly' threw an exception. --->
System.AccessViolationException: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
at System.Reflection.Assembly.GetFullName()
at System.Reflection.Assembly.get_FullName()
at Syncfusion.CoreAssembly..cctor()
--- End of inner exception stack trace ---
at
Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(L icenseContext
context, Type type, Object instance, Boolean allowExceptions)
at
System.ComponentModel.LicenseManager.ValidateInternalRecursi ve(LicenseContext
context, Type type, Object instance, Boolean allowExceptions, License&
license, String& licenseKey)
at System.ComponentModel.LicenseManager.ValidateInternal(Type type,
Object instance, Boolean allowExceptions, License& license)
at System.ComponentModel.LicenseManager.Validate(Type type, Object
instance)
at Syncfusion.Core.Licensing.LicensedComponent..ctor(Type type)
at Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl..ctor()
at GameStreet.GSTalk.frmMessage.InitializeComponent()
at GameStreet.GSTalk.frmMessage..ctor()

RE: AccessViolationException when calling Assembly.GetFullName on Vist

am 12.10.2007 03:46:00 von JasonRodman

Any help guys. I have already released a commercial product that many vista
users cant use because of this problem so it kind of urgent.

"Jason Rodman" wrote:

> I have a wierd problem in my application where any call to
> Assembly.GetFullName of the currently running assembly fails with an
> AccessViolationException. This only happens on windows vista, all editions.
> Running the appliction as an administrator does not seem to help. Any idea
> what would cause this? Does this have to do with code access security, or
> assembly signing? Here is a trace of one exception:
>
> System.TypeInitializationException: The type initializer for
> 'Syncfusion.CoreAssembly' threw an exception. --->
> System.AccessViolationException: Attempted to read or write protected memory.
> This is often an indication that other memory is corrupt.
> at System.Reflection.Assembly.GetFullName()
> at System.Reflection.Assembly.get_FullName()
> at Syncfusion.CoreAssembly..cctor()
> --- End of inner exception stack trace ---
> at
> Syncfusion.Core.Licensing.FusionLicenseProvider.GetLicense(L icenseContext
> context, Type type, Object instance, Boolean allowExceptions)
> at
> System.ComponentModel.LicenseManager.ValidateInternalRecursi ve(LicenseContext
> context, Type type, Object instance, Boolean allowExceptions, License&
> license, String& licenseKey)
> at System.ComponentModel.LicenseManager.ValidateInternal(Type type,
> Object instance, Boolean allowExceptions, License& license)
> at System.ComponentModel.LicenseManager.Validate(Type type, Object
> instance)
> at Syncfusion.Core.Licensing.LicensedComponent..ctor(Type type)
> at Syncfusion.Windows.Forms.HTMLUI.HTMLUIControl..ctor()
> at GameStreet.GSTalk.frmMessage.InitializeComponent()
> at GameStreet.GSTalk.frmMessage..ctor()
>
>