Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Running 32 bit app on 64 bit machine - Gigaspaces .Net

Hi GigaBonds

Using - Gigaspace 6.6.2_b3100

I am trying to run Win32 app on 64 bit machine but I am not able to get it running.
Getting following exception. Any inputs would be great.

I copied all required dll's to the folder. Same works fine on 32Bit machine.

C:\Users\gunnu\gs6.5_662\TestGS64Bit\bin\Release>TestGS64Bit.exe

Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error
 occurred creating the configuration section handler for GigaSpaces: Could not l
oad file or assembly 'GigaSpaces.NetToJava, Version=6.6.2.3100, Culture=neutral,
 PublicKeyToken=94297b57ee0e4ad5' or one of its dependencies. An attempt was mad
e to load a program with an incorrect format. ---> System.BadImageFormatExceptio
n: Could not load file or assembly 'GigaSpaces.NetToJava, Version=6.6.2.3100, Cu
lture=neutral, PublicKeyToken=94297b57ee0e4ad5' or one of its dependencies. An a
ttempt was made to load a program with an incorrect format.
File name: 'GigaSpaces.NetToJava, Version=6.6.2.3100, Culture=neutral, PublicKey
Token=94297b57ee0e4ad5'
   at System.Reflection.CustomAttribute._GetPropertyOrFieldData(IntPtr pModule,
Byte* ppBlobStart, Byte pBlobEnd, String& name, Boolean& bIsProperty, Type& ty
pe, Object& value)
   at System.Reflection.CustomAttribute.GetPropertyOrFieldData(Module module, In
tPtr& blobStart, IntPtr blobEnd, String& name, Boolean& isProperty, Type& type,
Object& value)
   at System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModu
le, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterTyp
e, Boolean mustBeInheritable, IList derivedAttributes)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo
property, RuntimeType caType)
   at System.Attribute.InternalGetCustomAttributes(PropertyInfo element, Type ty
pe, Boolean inherit)
   at System.Attribute.GetCustomAttribute(MemberInfo element, Type attributeType
, Boolean inherit)
   at System.Configuration.ConfigurationElement.CreateConfigurationPropertyFromA
ttributes(PropertyInfo propertyInformation)
   at System.Configuration.ConfigurationElement.CreatePropertyBagFromType(Type t
ype)
   at System.Configuration.ConfigurationElement.PropertiesFromType(Type type, Co
nfigurationPropertyCollection& result)
   at System.Configuration.ConfigurationElement.CreateConfigurationPropertyFromA
ttributes(PropertyInfo propertyInformation)
   at System.Configuration.ConfigurationElement.CreatePropertyBagFromType(Type t
ype)
   at System.Configuration.ConfigurationElement.PropertiesFromType(Type type, Co
nfigurationPropertyCollection& result)
   at System.Configuration.ConfigurationElement.CreateConfigurationPropertyFromA
ttributes(PropertyInfo propertyInformation)
   at System.Configuration.ConfigurationElement.CreatePropertyBagFromType(Type t
ype)
   at System.Configuration.ConfigurationElement.PropertiesFromType(Type type, Co
nfigurationPropertyCollection& result)
   at System.Configuration.ConfigurationElement.get_Properties()
   at System.Configuration.ConfigurationElement.Reset(ConfigurationElement paren
tElement)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactor
y.CreateSectionImpl(RuntimeConfigurationRecord configRecord, FactoryRecord facto
ryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlReader read
er)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactor
y.CreateSectionWithFullTrust(RuntimeConfigurationRecord configRecord, FactoryRec
ord factoryRecord, SectionRecord sectionRecord, Object parentConfig, ConfigXmlRe
ader reader)
   at System.Configuration.RuntimeConfigurationRecord.CreateSection(Boolean inpu
tIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object par
entConfig, ConfigXmlReader reader)
   at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inp
utIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object pa
rentConfig, ConfigXmlReader reader, String filename, Int32 line)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\M
icrosoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure lo
gging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus
ion!EnableLog].

- End of inner exception stack trace -
   at System.Configuration.BaseConfigurationRecord.CallCreateSection(Boolean inp
utIsTrusted, FactoryRecord factoryRecord, SectionRecord sectionRecord, Object pa
rentConfig, ConfigXmlReader reader, String filename, Int32 line)
   at System.Configuration.BaseConfigurationRecord.CreateSectionDefault(String c
onfigKey, Boolean getRuntimeObject, FactoryRecord factoryRecord, SectionRecord s
ectionRecord, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String co
nfigKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Bool
ean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String co
nfigKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Bool
ean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String co
nfigKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Bool
ean requestIsHere, Object& result, Object& resultRuntimeObject)
   at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
   at System.Configuration.ClientConfigurationSystem.System.Configuration.Intern
al.IInternalConfigSystem.GetSection(String sectionName)
   at System.Configuration.ConfigurationManager.GetSection(String sectionName)
   at GigaSpaces.Core.GigaSpacesFactory.Initialize(String customConfigFile, Bool
ean initProvider)
   at GigaSpaces.Core.SpaceProxyProviderFactory..ctor()
   at GigaSpaces.Core.SpaceProxyProviderFactory.get_Instance()
   at TestGS64Bit.Program.Main(String args) in C:\Users\gunnu\gs6.5_662\TestGS
64Bit\Program.cs:line 50

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2009-06-29 09:31:53 -0600

venkatg gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

You are supposed to use the 64bit installation of GigaSpaces on 64bit machines since some of the libraries are unmanaged.

Eitan

answered 2009-06-29 10:00:54 -0600

eitany gravatar image
edit flag offensive delete link more

Comments

Thanks for the reply Eitan
looks like there is some issue with my application specific dependency libraries. No issues with gigaspace thanks.

venkatg gravatar image venkatg  ( 2009-06-30 12:51:09 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-06-29 09:31:53 -0600

Seen: 214 times

Last updated: Jun 29 '09