asp.net - Error when debug c# code in 64 bit environment -
it seems default running environment of visual studio 32 bit. , need run 1 of application in 64 bit mode. did alter in project property 'platform target' 64 bit. not able run application. got error "could not load file or assembly 'myproject' or 1 of dependencies. effort made load programme wrong format."
then tried new blank webapplication. still in there showing same error. remove reference dll files , added dependencies path "c:\windows\microsoft.net\framework64". unfortunately still getting same error.
i changed application pool property of iis (enable 32-bit application = true). tried run in local iis web server didn't worked.
am using windows 7, 64 bit os , visual studio 2010. , when using next c# code find running environment
using (registrykey registrykey = registry.localmachine.opensubkey(@"software\r-core\r")) { var envpath = environment.getenvironmentvariable("path"); string rbinpath = (string)registrykey.getvalue("installpath"); string rversion = (string)registrykey.getvalue("current version"); rbinpath = system.environment.is64bitprocess ? rbinpath + "\\bin\\x64" :rbinpath + "\\bin\\i386"; environment.setenvironmentvariable( "path", envpath + path.pathseparator + rbinpath); } the value of system.environment.is64bitprocess false didn't want follow 64 bit path, if running environment 32 bit. how forcefulness vs run in 64 bit mode?
here shared error response page got. please help me solve issue give thanks you.
here's step step procedure ok vs2013, on 64bits os
create blank app : new project type webapplication > webform (or else) > no authentication
target x64 : debug mode drop downwards list
choose configuration manager choose platform new , select x64 target platformfrom properties of project, in web tab
choose local iis instead of iis express create virtual directory => virtual directory createdlaunch app in debug mode visual studio
asp.net 64bit
No comments:
Post a Comment