This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C60BB5.3B5E26D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

All,

I am running a middle tier component (MarshalByRefObject) as a Windows =
Service (the Windows Service starts a Console Application which hosts =
the Middle Tier component). When the services is running under a =
non-64bit machine, it runs without any problems (accepts client =
connections and API calls).=20

However, when running on a 64bit Win 2003 server, I am getting the the =
"Unable to find the requested .Net Framework Data Provider. It may not =
be installed." error. I am running Microsoft Windows Services 2003 =
Standard x64 Edition. I compiled the software using "Any CPU" setting. I =
am also getting the error if I start the console application directly.

The following contains error information (check InnerException).=20

Error Message:
Exception has been thrown by the target of an invocation.

Error Source:
mscorlib:

Error StackTrace:=20
Server stack trace:=20
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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ellKnownObject(String asmName, String svrTypeName, String URI, =
WellKnownObjectMode mode, Boolean fReplace)
at =
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ellKnownObject(String URI)
at =
System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String uri)
at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
at System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean =
bThrowIfNotResolved)
at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object =
handlerObject, BinaryMethodCallMessage smuggledMsg)
at =
System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray=
(Object[] callA, Object handlerObject)
at =
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(H=
eaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean =
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at =
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserializ=
e(Stream serializationStream, HeaderHandler handler, Boolean fCheck, =
Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at =
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMess=
age(String objectUri, Stream inputStream, Boolean bStrictBinding, =
TypeFilterLevel securityLevel)
at =
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage=
(IServerChannelSinkStack sinkStack, IMessage requestMsg, =
ITransportHeaders requestHeaders, Stream requestStream, IMessage& =
responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)

Exception rethrown at [0]:=20
at =
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage =
reqMsg, IMessage retMsg)
at =
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& =
msgData, Int32 type)
at SAC.DataServices.EventServer.AttachClient(EventClient eventClient)
at SAC.DataServices.EventClient.gI() in =
C:\CSharp\EventServerClient\EventClient.cs:line 22
Inner Exception:
Error Message:
Unable to find the requested .Net Framework Data Provider. It may not =
be installed.

Error Source:=20
System.Data

Error StackTrace:
at System.Data.Common.DbProviderFactories.GetFactory(String =
providerInvariantName)
at =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetD=
efaultMapping(String name, String dbProviderName)
at =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetP=
roviderMapping(String name, String dbProviderName)
at =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateOb=
ject(IBuilderContext context, String name, IConfigurationSource =
configurationSource, ConfigurationReflectionCache reflectionCache)
at =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
ConfiguredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object =
existing, String id)
at =
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=
context, Type typeToBuild, Object existing, String idToBuild)
at =
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=
context, Type typeToBuild, Object existing, String idToBuild)
at =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
ConfigurationNameMappingStrategy.BuildUp(IBuilderContext context, Type =
t, Object existing, String id)
at =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocat=
or locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[] transientPolicies)
at =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator=
locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[] transientPolicies)
at =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IRe=
adWriteLocator locator, String idToBuild, Object existing, PolicyList[] =
transientPolicies)
at =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator, =
IConfigurationSource configurationSource)
at =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T](IConfigurationSource =
configurationSource)
at =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T]()
at =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase=
()
at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()

Please advice, Thanks,

John Yung
------=_NextPart_000_0008_01C60BB5.3B5E26D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>All,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am running a middle tier component=20
(MarshalByRefObject) as a Windows Service (the Windows Service starts a =
Console=20
Application which hosts the Middle Tier component). When the services is =
running=20
under a non-64bit machine, it runs without any problems (accepts client=20
connections and API calls). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>However, when running on a 64bit Win =
2003 server, I=20
am getting the the "Unable to find the requested .Net Framework Data=20
Provider.&nbsp; It may not be installed." error. I am running Microsoft =
Windows=20
Services 2003 Standard x64 Edition. I compiled the software using "Any =
CPU"=20
setting. I am also getting the error if I start the console application=20
directly.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>The following contains error =
information (check=20
InnerException). </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error =
Message:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Exception has been thrown by the target =
of an=20
invocation.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial =
size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error =
Source:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mscorlib:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error StackTrace: =
<BR></STRONG>Server stack=20
trace: <BR>&nbsp;&nbsp; at =
System.RuntimeTypeHandle.CreateInstance(RuntimeType=20
type, Boolean publicOnly, Boolean noCheck, Boolean&amp; canBeCached,=20
RuntimeMethodHandle&amp; ctor, Boolean&amp; =
bNeedSecurityCheck)<BR>&nbsp;&nbsp;=20
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean=20
fillCache)<BR>&nbsp;&nbsp; at =
System.RuntimeType.CreateInstanceImpl(Boolean=20
publicOnly, Boolean skipVisibilityChecks, Boolean =
fillCache)<BR>&nbsp;&nbsp; at=20
System.Activator.CreateInstance(Type type, Boolean =
nonPublic)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ellKnownObject(String=20
asmName, String svrTypeName, String URI, WellKnownObjectMode mode, =
Boolean=20
fReplace)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ellKnownObject(String=20
URI)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String=20
uri)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.Messaging.MethodCall.ResolveType()<BR>&nbsp;&nbsp=
; at=20
System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean=20
bThrowIfNotResolved)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.Messaging.MethodCall..ctor(Object handlerObject, =

BinaryMethodCallMessage smuggledMsg)<BR>&nbsp;&nbsp; at=20
System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray=
(Object[]=20
callA, Object handlerObject)<BR>&nbsp;&nbsp; at=20
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(H=
eaderHandler=20
handler, __BinaryParser serParser, Boolean fCheck, Boolean =
isCrossAppDomain,=20
IMethodCallMessage methodCallMessage)<BR>&nbsp;&nbsp; at=20
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserializ=
e(Stream=20
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean=20
isCrossAppDomain, IMethodCallMessage methodCallMessage)<BR>&nbsp;&nbsp; =
at=20
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMess=
age(String=20
objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel=20
securityLevel)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage=
(IServerChannelSinkStack=20
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream =

requestStream, IMessage&amp; responseMsg, ITransportHeaders&amp;=20
responseHeaders, Stream&amp; responseStream)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Exception rethrown at [0]: =
<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage =
reqMsg,=20
IMessage retMsg)<BR>&nbsp;&nbsp; at=20
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; =

msgData, Int32 type)<BR>&nbsp;&nbsp; at=20
SAC.DataServices.EventServer.AttachClient(EventClient=20
eventClient)<BR>&nbsp;&nbsp; at SAC.DataServices.EventClient.gI() in=20
C:\CSharp\EventServerClient\EventClient.cs:line 22</FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2><STRONG>Inner =
Exception:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error =
Message:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Unable to find the requested .Net =
Framework Data=20
Provider.&nbsp; It may not be installed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error Source: =
</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>System.Data</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>Error =
StackTrace:</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; at=20
System.Data.Common.DbProviderFactories.GetFactory(String=20
providerInvariantName)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetD=
efaultMapping(String=20
name, String dbProviderName)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetP=
roviderMapping(String=20
name, String dbProviderName)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateOb=
ject(IBuilderContext=20
context, String name, IConfigurationSource configurationSource,=20
ConfigurationReflectionCache reflectionCache)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
ConfiguredObjectStrategy.BuildUp(IBuilderContext=20
context, Type t, Object existing, String id)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=
=20
context, Type typeToBuild, Object existing, String =
idToBuild)<BR>&nbsp;&nbsp;=20
at =
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=
=20
context, Type typeToBuild, Object existing, String =
idToBuild)<BR>&nbsp;&nbsp;=20
at=20
=
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
ConfigurationNameMappingStrategy.BuildUp(IBuilderContext=20
context, Type t, Object existing, String id)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocat=
or=20
locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[]=20
transientPolicies)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator=
=20
locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[]=20
transientPolicies)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IRe=
adWriteLocator=20
locator, String idToBuild, Object existing, PolicyList[]=20
transientPolicies)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator=20
locator, IConfigurationSource configurationSource)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T](IConfigurationSource=20
configurationSource)<BR>&nbsp;&nbsp; at=20
=
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
EnterpriseLibraryFactory.BuildUp[T]()<BR>&nbsp;&nbsp;=20
at=20
=
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase=
()<BR>&nbsp;&nbsp;=20
at=20
SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()</FONT></DIV></B=
LOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Please advice, Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>John Yung</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C60BB5.3B5E26D0--

RE: ADO.NET on x64 error: Unable to find the requested .Net Framework by KenTuckerMVP

KenTuckerMVP
Wed Dec 28 13:20:02 CST 2005

Hi,

Sorry there are not any 64bit versions of the odbc drivers. You
need to compile the application for x86 to force the computer to use the
32bit drivers.

I made a suggestion in the msdn product feed back center for a 64bit version
of odbc. Please vote for it.

http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=a533f823-73a1-40e8-9380-d25b58ce8ae8

Ken
http://www.vb-tips.com
---------------------------


"John Yung" wrote:

> All,
>
> I am running a middle tier component (MarshalByRefObject) as a Windows Service (the Windows Service starts a Console Application which hosts the Middle Tier component). When the services is running under a non-64bit machine, it runs without any problems (accepts client connections and API calls).
>
> However, when running on a 64bit Win 2003 server, I am getting the the "Unable to find the requested .Net Framework Data Provider. It may not be installed." error. I am running Microsoft Windows Services 2003 Standard x64 Edition. I compiled the software using "Any CPU" setting. I am also getting the error if I start the console application directly.
>
> The following contains error information (check InnerException).
>
> Error Message:
> Exception has been thrown by the target of an invocation.
>
> Error Source:
> mscorlib:
>
> Error StackTrace:
> Server stack trace:
> 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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWellKnownObject(String asmName, String svrTypeName, String URI, WellKnownObjectMode mode, Boolean fReplace)
> at System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWellKnownObject(String URI)
> at System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String uri)
> at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
> at System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean bThrowIfNotResolved)
> at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object handlerObject, BinaryMethodCallMessage smuggledMsg)
> at System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray(Object[] callA, Object handlerObject)
> at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
> at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
> at System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage(String objectUri, Stream inputStream, Boolean bStrictBinding, TypeFilterLevel securityLevel)
> at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
>
> Exception rethrown at [0]:
> at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
> at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
> at SAC.DataServices.EventServer.AttachClient(EventClient eventClient)
> at SAC.DataServices.EventClient.gI() in C:\CSharp\EventServerClient\EventClient.cs:line 22
> Inner Exception:
> Error Message:
> Unable to find the requested .Net Framework Data Provider. It may not be installed.
>
> Error Source:
> System.Data
>
> Error StackTrace:
> at System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName)
> at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetDefaultMapping(String name, String dbProviderName)
> at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetProviderMapping(String name, String dbProviderName)
> at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateObject(IBuilderContext context, String name, IConfigurationSource configurationSource, ConfigurationReflectionCache reflectionCache)
> at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfiguredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)
> at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)
> at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)
> at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfigurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)
> at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)
> at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)
> at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadWriteLocator locator, String idToBuild, Object existing, PolicyList[] transientPolicies)
> at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator, IConfigurationSource configurationSource)
> at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IConfigurationSource configurationSource)
> at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T]()
> at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase()
> at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()
>
> Please advice, Thanks,
>
> John Yung

Re: ADO.NET on x64 error: Unable to find the requested .Net Framework by John

John
Wed Dec 28 14:52:14 CST 2005

Ken,

I compiled the code under "Any CPU" setting in VS.NET 2005 and our backend
is a MS SQL 2000 with SP4 (32bit) DB. Thus, I don't think it is trying to
use 64bit version of odbc. What makes you think it is trying to use a 64bit
version of odbc?

Thanks,

John Yung

"Ken Tucker [MVP]" <KenTuckerMVP@discussions.microsoft.com> wrote in message
news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com...
> Hi,
>
> Sorry there are not any 64bit versions of the odbc drivers. You
> need to compile the application for x86 to force the computer to use the
> 32bit drivers.
>
> I made a suggestion in the msdn product feed back center for a 64bit
version
> of odbc. Please vote for it.
>
>
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=a533f823-73a1-40e8-9380-d25b58ce8ae8
>
> Ken
> http://www.vb-tips.com
> ---------------------------
>
>
> "John Yung" wrote:
>
> > All,
> >
> > I am running a middle tier component (MarshalByRefObject) as a Windows
Service (the Windows Service starts a Console Application which hosts the
Middle Tier component). When the services is running under a non-64bit
machine, it runs without any problems (accepts client connections and API
calls).
> >
> > However, when running on a 64bit Win 2003 server, I am getting the the
"Unable to find the requested .Net Framework Data Provider. It may not be
installed." error. I am running Microsoft Windows Services 2003 Standard x64
Edition. I compiled the software using "Any CPU" setting. I am also getting
the error if I start the console application directly.
> >
> > The following contains error information (check InnerException).
> >
> > Error Message:
> > Exception has been thrown by the target of an invocation.
> >
> > Error Source:
> > mscorlib:
> >
> > Error StackTrace:
> > Server stack trace:
> > 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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
KnownObject(String asmName, String svrTypeName, String URI,
WellKnownObjectMode mode, Boolean fReplace)
> > at
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
KnownObject(String URI)
> > at
System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String uri)
> > at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
> > at System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean
bThrowIfNotResolved)
> > at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object
handlerObject, BinaryMethodCallMessage smuggledMsg)
> > at
System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray(Ob
ject[] callA, Object handlerObject)
> > at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
> > at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
tream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
> > at
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage
(String objectUri, Stream inputStream, Boolean bStrictBinding,
TypeFilterLevel securityLevel)
> > at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream)
> >
> > Exception rethrown at [0]:
> > at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
> > at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
> > at SAC.DataServices.EventServer.AttachClient(EventClient eventClient)
> > at SAC.DataServices.EventClient.gI() in
C:\CSharp\EventServerClient\EventClient.cs:line 22
> > Inner Exception:
> > Error Message:
> > Unable to find the requested .Net Framework Data Provider. It may not
be installed.
> >
> > Error Source:
> > System.Data
> >
> > Error StackTrace:
> > at System.Data.Common.DbProviderFactories.GetFactory(String
providerInvariantName)
> > at
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetDefa
ultMapping(String name, String dbProviderName)
> > at
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetProv
iderMapping(String name, String dbProviderName)
> > at
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateObjec
t(IBuilderContext context, String name, IConfigurationSource
configurationSource, ConfigurationReflectionCache reflectionCache)
> > at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
figuredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object
existing, String id)
> > at
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild)
> > at
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
context, Type typeToBuild, Object existing, String idToBuild)
> > at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
figurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t,
Object existing, String id)
> > at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies)
> > at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator
locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
transientPolicies)
> > at
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadW
riteLocator locator, String idToBuild, Object existing, PolicyList[]
transientPolicies)
> > at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
erpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator,
IConfigurationSource configurationSource)
> > at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
erpriseLibraryFactory.BuildUp[T](IConfigurationSource configurationSource)
> > at
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
erpriseLibraryFactory.BuildUp[T]()
> > at
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase()
> > at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()
> >
> > Please advice, Thanks,
> >
> > John Yung



Re: ADO.NET on x64 error: Unable to find the requested .Net Framew by JarodCummings

JarodCummings
Wed Dec 28 16:20:01 CST 2005

We're having a similar problem, and if I'm not mistaken the problem lies with
32 bit emulation. Basically with the target cpu set to "any cpu" it tries to
use the 64 bit proc with 32 bit ODBC. If the target cpu is set to x86, it
will force 32 bit emulation with the 32 bit ODBC drivers. Please correct me
if I'm wrong, Ken.

"John Yung" wrote:

> Ken,
>
> I compiled the code under "Any CPU" setting in VS.NET 2005 and our backend
> is a MS SQL 2000 with SP4 (32bit) DB. Thus, I don't think it is trying to
> use 64bit version of odbc. What makes you think it is trying to use a 64bit
> version of odbc?
>
> Thanks,
>
> John Yung
>
> "Ken Tucker [MVP]" <KenTuckerMVP@discussions.microsoft.com> wrote in message
> news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com...
> > Hi,
> >
> > Sorry there are not any 64bit versions of the odbc drivers. You
> > need to compile the application for x86 to force the computer to use the
> > 32bit drivers.
> >
> > I made a suggestion in the msdn product feed back center for a 64bit
> version
> > of odbc. Please vote for it.
> >
> >
> http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=a533f823-73a1-40e8-9380-d25b58ce8ae8
> >
> > Ken
> > http://www.vb-tips.com
> > ---------------------------
> >
> >
> > "John Yung" wrote:
> >
> > > All,
> > >
> > > I am running a middle tier component (MarshalByRefObject) as a Windows
> Service (the Windows Service starts a Console Application which hosts the
> Middle Tier component). When the services is running under a non-64bit
> machine, it runs without any problems (accepts client connections and API
> calls).
> > >
> > > However, when running on a 64bit Win 2003 server, I am getting the the
> "Unable to find the requested .Net Framework Data Provider. It may not be
> installed." error. I am running Microsoft Windows Services 2003 Standard x64
> Edition. I compiled the software using "Any CPU" setting. I am also getting
> the error if I start the console application directly.
> > >
> > > The following contains error information (check InnerException).
> > >
> > > Error Message:
> > > Exception has been thrown by the target of an invocation.
> > >
> > > Error Source:
> > > mscorlib:
> > >
> > > Error StackTrace:
> > > Server stack trace:
> > > 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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
> KnownObject(String asmName, String svrTypeName, String URI,
> WellKnownObjectMode mode, Boolean fReplace)
> > > at
> System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
> KnownObject(String URI)
> > > at
> System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String uri)
> > > at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
> > > at System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean
> bThrowIfNotResolved)
> > > at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object
> handlerObject, BinaryMethodCallMessage smuggledMsg)
> > > at
> System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray(Ob
> ject[] callA, Object handlerObject)
> > > at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean
> isCrossAppDomain, IMethodCallMessage methodCallMessage)
> > > at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
> isCrossAppDomain, IMethodCallMessage methodCallMessage)
> > > at
> System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage
> (String objectUri, Stream inputStream, Boolean bStrictBinding,
> TypeFilterLevel securityLevel)
> > > at
> System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
> erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> requestHeaders, Stream requestStream, IMessage& responseMsg,
> ITransportHeaders& responseHeaders, Stream& responseStream)
> > >
> > > Exception rethrown at [0]:
> > > at
> System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg)
> > > at
> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
> > > at SAC.DataServices.EventServer.AttachClient(EventClient eventClient)
> > > at SAC.DataServices.EventClient.gI() in
> C:\CSharp\EventServerClient\EventClient.cs:line 22
> > > Inner Exception:
> > > Error Message:
> > > Unable to find the requested .Net Framework Data Provider. It may not
> be installed.
> > >
> > > Error Source:
> > > System.Data
> > >
> > > Error StackTrace:
> > > at System.Data.Common.DbProviderFactories.GetFactory(String
> providerInvariantName)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetDefa
> ultMapping(String name, String dbProviderName)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetProv
> iderMapping(String name, String dbProviderName)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateObjec
> t(IBuilderContext context, String name, IConfigurationSource
> configurationSource, ConfigurationReflectionCache reflectionCache)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
> figuredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object
> existing, String id)
> > > at
> Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
> context, Type typeToBuild, Object existing, String idToBuild)
> > > at
> Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
> context, Type typeToBuild, Object existing, String idToBuild)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
> figurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t,
> Object existing, String id)
> > > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator
> locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
> > > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator
> locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
> > > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadW
> riteLocator locator, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator,
> IConfigurationSource configurationSource)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T](IConfigurationSource configurationSource)
> > > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T]()
> > > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase()
> > > at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()
> > >
> > > Please advice, Thanks,
> > >
> > > John Yung
>
>
>

Re: ADO.NET on x64 error: Unable to find the requested .Net Framework by Ken

Ken
Thu Dec 29 19:57:15 CST 2005

Hi,

I am trying to figure out this problem. What version of the
enterprise application blocks are you using?

Ken
------------------
"John Yung" <johny@sac.com> wrote in message
news:uNsXWC$CGHA.2644@TK2MSFTNGP09.phx.gbl...
> Ken,
>
> I compiled the code under "Any CPU" setting in VS.NET 2005 and our backend
> is a MS SQL 2000 with SP4 (32bit) DB. Thus, I don't think it is trying to
> use 64bit version of odbc. What makes you think it is trying to use a
> 64bit
> version of odbc?
>
> Thanks,
>
> John Yung
>
> "Ken Tucker [MVP]" <KenTuckerMVP@discussions.microsoft.com> wrote in
> message
> news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com...
>> Hi,
>>
>> Sorry there are not any 64bit versions of the odbc drivers. You
>> need to compile the application for x86 to force the computer to use the
>> 32bit drivers.
>>
>> I made a suggestion in the msdn product feed back center for a 64bit
> version
>> of odbc. Please vote for it.
>>
>>
> http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=a533f823-73a1-40e8-9380-d25b58ce8ae8
>>
>> Ken
>> http://www.vb-tips.com
>> ---------------------------
>>
>>
>> "John Yung" wrote:
>>
>> > All,
>> >
>> > I am running a middle tier component (MarshalByRefObject) as a Windows
> Service (the Windows Service starts a Console Application which hosts the
> Middle Tier component). When the services is running under a non-64bit
> machine, it runs without any problems (accepts client connections and API
> calls).
>> >
>> > However, when running on a 64bit Win 2003 server, I am getting the the
> "Unable to find the requested .Net Framework Data Provider. It may not be
> installed." error. I am running Microsoft Windows Services 2003 Standard
> x64
> Edition. I compiled the software using "Any CPU" setting. I am also
> getting
> the error if I start the console application directly.
>> >
>> > The following contains error information (check InnerException).
>> >
>> > Error Message:
>> > Exception has been thrown by the target of an invocation.
>> >
>> > Error Source:
>> > mscorlib:
>> >
>> > Error StackTrace:
>> > Server stack trace:
>> > 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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
> KnownObject(String asmName, String svrTypeName, String URI,
> WellKnownObjectMode mode, Boolean fReplace)
>> > at
> System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupWell
> KnownObject(String URI)
>> > at
> System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String uri)
>> > at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
>> > at
>> > System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean
> bThrowIfNotResolved)
>> > at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object
> handlerObject, BinaryMethodCallMessage smuggledMsg)
>> > at
> System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray(Ob
> ject[] callA, Object handlerObject)
>> > at
> System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(Head
> erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean
> isCrossAppDomain, IMethodCallMessage methodCallMessage)
>> > at
> System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(S
> tream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
> isCrossAppDomain, IMethodCallMessage methodCallMessage)
>> > at
> System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMessage
> (String objectUri, Stream inputStream, Boolean bStrictBinding,
> TypeFilterLevel securityLevel)
>> > at
> System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
> erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> requestHeaders, Stream requestStream, IMessage& responseMsg,
> ITransportHeaders& responseHeaders, Stream& responseStream)
>> >
>> > Exception rethrown at [0]:
>> > at
> System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> reqMsg, IMessage retMsg)
>> > at
> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
>> > at SAC.DataServices.EventServer.AttachClient(EventClient
>> > eventClient)
>> > at SAC.DataServices.EventClient.gI() in
> C:\CSharp\EventServerClient\EventClient.cs:line 22
>> > Inner Exception:
>> > Error Message:
>> > Unable to find the requested .Net Framework Data Provider. It may
>> > not
> be installed.
>> >
>> > Error Source:
>> > System.Data
>> >
>> > Error StackTrace:
>> > at System.Data.Common.DbProviderFactories.GetFactory(String
> providerInvariantName)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetDefa
> ultMapping(String name, String dbProviderName)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetProv
> iderMapping(String name, String dbProviderName)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateObjec
> t(IBuilderContext context, String name, IConfigurationSource
> configurationSource, ConfigurationReflectionCache reflectionCache)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
> figuredObjectStrategy.BuildUp(IBuilderContext context, Type t, Object
> existing, String id)
>> > at
> Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
> context, Type typeToBuild, Object existing, String idToBuild)
>> > at
> Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext
> context, Type typeToBuild, Object existing, String idToBuild)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Con
> figurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t,
> Object existing, String id)
>> > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator
> locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
>> > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator
> locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
>> > at
> Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadW
> riteLocator locator, String idToBuild, Object existing, PolicyList[]
> transientPolicies)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator,
> IConfigurationSource configurationSource)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T](IConfigurationSource configurationSource)
>> > at
> Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.Ent
> erpriseLibraryFactory.BuildUp[T]()
>> > at
> Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase()
>> > at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()
>> >
>> > Please advice, Thanks,
>> >
>> > John Yung
>
>



Re: ADO.NET on x64 error: Unable to find the requested .Net Framework by John

John
Fri Dec 30 09:26:56 CST 2005

This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C60D2B.8F527B20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Ken,

I am using Microsoft Enterprise Library November 2005. To makesure I =
could use ClickOnce technology to deploy my WinForm client, I strong =
signed the DLLs.=20

I can install and run the program on a 32bit machine without any =
problems. However, once I copied the program to a 64bit machine, it =
would not run.

I also found more error information:

Unhandled Exception: System.BadImageFormatException: Could not load =
file or asse
mbly 'Microsoft.Practices.EnterpriseLibrary.Logging, =
Version=3D2.0.0.0, Culture=3Dne
utral, PublicKeyToken=3D3fa5b950a3ed0199' or one of its dependencies. =
An attempt w
as made to load a program with an incorrect format.
File name: 'Microsoft.Practices.EnterpriseLibrary.Logging, =
Version=3D2.0.0.0, Cult
ure=3Dneutral, PublicKeyToken=3D3fa5b950a3ed0199'
at SAC.DataServices.CorpAction.WithholdingTax.BizSvr.Finalize()

=3D=3D=3D Pre-bind state information =3D=3D=3D
LOG: User =3D SACCAP\JohnY
LOG: DisplayName =3D Microsoft.Practices.EnterpriseLibrary.Logging, =
Version=3D2.0.0.
0, Culture=3Dneutral, PublicKeyToken=3D3fa5b950a3ed0199
(Fully-specified)
LOG: Appbase =3D file:///C:/Program Files (x86)/SAC Capital/SAC =
DataServices CorpA
ction WithholdingTax BizSvr Host/
LOG: Initial PrivatePath =3D NULL
Calling assembly : SAC.DataServices.CorpAction.WithholdingTax.BizSvr, =
Version=3D1.
1.2189.29367, Culture=3Dneutral, PublicKeyToken=3Dnull.
=3D=3D=3D
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\SAC =
Capital\SA
C DataServices CorpAction WithholdingTax BizSvr =
Host\BizSvr_Host.exe.config
LOG: Using machine configuration file from =
C:\WINDOWS\Microsoft.NET\Framework64\
v2.0.50727\config\machine.config.
LOG: Post-policy reference: =
Microsoft.Practices.EnterpriseLibrary.Logging, Versi
on=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3D3fa5b950a3ed0199
LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAC =
Capital/S
AC DataServices CorpAction WithholdingTax BizSvr =
Host/Microsoft.Practices.Enterp
riseLibrary.Logging.DLL.
ERR: Failed to complete setup of assembly (hr =3D 0x8007000b). Probing =
terminated.

Thanks,

John Yung


"Ken Tucker [MVP]" <vb2ae@bellsouth.net> wrote in message =
news:u%23hbfRODGHA.628@TK2MSFTNGP14.phx.gbl...
> Hi,
>=20
> I am trying to figure out this problem. What version of the=20
> enterprise application blocks are you using?
>=20
> Ken
> ------------------
> "John Yung" <johny@sac.com> wrote in message=20
> news:uNsXWC$CGHA.2644@TK2MSFTNGP09.phx.gbl...
> > Ken,
> >
> > I compiled the code under "Any CPU" setting in VS.NET 2005 and our =
backend
> > is a MS SQL 2000 with SP4 (32bit) DB. Thus, I don't think it is =
trying to
> > use 64bit version of odbc. What makes you think it is trying to use =
a=20
> > 64bit
> > version of odbc?
> >
> > Thanks,
> >
> > John Yung
> >
> > "Ken Tucker [MVP]" <KenTuckerMVP@discussions.microsoft.com> wrote in =

> > message
> > news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com...
> >> Hi,
> >>
> >> Sorry there are not any 64bit versions of the odbc drivers. =
You
> >> need to compile the application for x86 to force the computer to =
use the
> >> 32bit drivers.
> >>
> >> I made a suggestion in the msdn product feed back center for a =
64bit
> > version
> >> of odbc. Please vote for it.
> >>
> >>
> > =
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbacki=
d=3Da533f823-73a1-40e8-9380-d25b58ce8ae8
> >>
> >> Ken
> >> http://www.vb-tips.com
> >> ---------------------------
> >>
> >>
> >> "John Yung" wrote:
> >>
> >> > All,
> >> >
> >> > I am running a middle tier component (MarshalByRefObject) as a =
Windows
> > Service (the Windows Service starts a Console Application which =
hosts the
> > Middle Tier component). When the services is running under a =
non-64bit
> > machine, it runs without any problems (accepts client connections =
and API
> > calls).
> >> >
> >> > However, when running on a 64bit Win 2003 server, I am getting =
the the
> > "Unable to find the requested .Net Framework Data Provider. It may =
not be
> > installed." error. I am running Microsoft Windows Services 2003 =
Standard=20
> > x64
> > Edition. I compiled the software using "Any CPU" setting. I am also=20
> > getting
> > the error if I start the console application directly.
> >> >
> >> > The following contains error information (check InnerException).
> >> >
> >> > Error Message:
> >> > Exception has been thrown by the target of an invocation.
> >> >
> >> > Error Source:
> >> > mscorlib:
> >> >
> >> > Error StackTrace:
> >> > Server stack trace:
> >> > 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.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ell
> > KnownObject(String asmName, String svrTypeName, String URI,
> > WellKnownObjectMode mode, Boolean fReplace)
> >> > at
> > =
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ell
> > KnownObject(String URI)
> >> > at
> > System.Runtime.Remoting.IdentityHolder.CasualResolveIdentity(String =
uri)
> >> > at System.Runtime.Remoting.Messaging.MethodCall.ResolveType()
> >> > at=20
> >> > =
System.Runtime.Remoting.Messaging.MethodCall.ResolveMethod(Boolean
> > bThrowIfNotResolved)
> >> > at System.Runtime.Remoting.Messaging.MethodCall..ctor(Object
> > handlerObject, BinaryMethodCallMessage smuggledMsg)
> >> > at
> > =
System.Runtime.Serialization.Formatters.Binary.BinaryMethodCall.ReadArray=
(Ob
> > ject[] callA, Object handlerObject)
> >> > at
> > =
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(H=
ead
> > erHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean
> > isCrossAppDomain, IMethodCallMessage methodCallMessage)
> >> > at
> > =
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserializ=
e(S
> > tream serializationStream, HeaderHandler handler, Boolean fCheck, =
Boolean
> > isCrossAppDomain, IMethodCallMessage methodCallMessage)
> >> > at
> > =
System.Runtime.Remoting.Channels.CoreChannel.DeserializeBinaryRequestMess=
age
> > (String objectUri, Stream inputStream, Boolean bStrictBinding,
> > TypeFilterLevel securityLevel)
> >> > at
> > =
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage=
(IS
> > erverChannelSinkStack sinkStack, IMessage requestMsg, =
ITransportHeaders
> > requestHeaders, Stream requestStream, IMessage& responseMsg,
> > ITransportHeaders& responseHeaders, Stream& responseStream)
> >> >
> >> > Exception rethrown at [0]:
> >> > at
> > =
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
> > reqMsg, IMessage retMsg)
> >> > at
> > System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> > msgData, Int32 type)
> >> > at SAC.DataServices.EventServer.AttachClient(EventClient=20
> >> > eventClient)
> >> > at SAC.DataServices.EventClient.gI() in
> > C:\CSharp\EventServerClient\EventClient.cs:line 22
> >> > Inner Exception:
> >> > Error Message:
> >> > Unable to find the requested .Net Framework Data Provider. It =
may=20
> >> > not
> > be installed.
> >> >
> >> > Error Source:
> >> > System.Data
> >> >
> >> > Error StackTrace:
> >> > at System.Data.Common.DbProviderFactories.GetFactory(String
> > providerInvariantName)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetD=
efa
> > ultMapping(String name, String dbProviderName)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseConfigurationView.GetP=
rov
> > iderMapping(String name, String dbProviderName)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseCustomFactory.CreateOb=
jec
> > t(IBuilderContext context, String name, IConfigurationSource
> > configurationSource, ConfigurationReflectionCache reflectionCache)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
Con
> > figuredObjectStrategy.BuildUp(IBuilderContext context, Type t, =
Object
> > existing, String id)
> >> > at
> > =
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=

> > context, Type typeToBuild, Object existing, String idToBuild)
> >> > at
> > =
Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext=

> > context, Type typeToBuild, Object existing, String idToBuild)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
Con
> > figurationNameMappingStrategy.BuildUp(IBuilderContext context, Type =
t,
> > Object existing, String id)
> >> > at
> > =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocat=
or
> > locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[]
> > transientPolicies)
> >> > at
> > =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator=

> > locator, Type typeToBuild, String idToBuild, Object existing, =
PolicyList[]
> > transientPolicies)
> >> > at
> > =
Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IRe=
adW
> > riteLocator locator, String idToBuild, Object existing, PolicyList[]
> > transientPolicies)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
Ent
> > erpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator,
> > IConfigurationSource configurationSource)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
Ent
> > erpriseLibraryFactory.BuildUp[T](IConfigurationSource =
configurationSource)
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.=
Ent
> > erpriseLibraryFactory.BuildUp[T]()
> >> > at
> > =
Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase=
()
> >> > at SAC.DataServices.CorpAction.WithholdingTax.BizSvr..ctor()
> >> >
> >> > Please advice, Thanks,
> >> >
> >> > John Yung
> >
> >=20
>=20
>
------=_NextPart_000_000C_01C60D2B.8F527B20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1515" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Ken,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am using Microsoft Enterprise Library =
November=20
2005. To makesure I could use ClickOnce technology to deploy my WinForm =
client,=20
I strong signed the DLLs. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I can install and run the program on a =
32bit=20
machine without any problems. However, once I copied the program to a =
64bit=20
machine, it would not run.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I also found more error =
information:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3D"Courier New" size=3D2>Unhandled Exception:=20
System.BadImageFormatException: Could not load file or asse<BR>mbly=20
'Microsoft.Practices.EnterpriseLibrary.Logging, Version=3D2.0.0.0,=20
Culture=3Dne<BR>utral, PublicKeyToken=3D3fa5b950a3ed0199' or one of =
its=20
dependencies. An attempt w<BR>as made to load a program with an =
incorrect=20
format.<BR>File name: 'Microsoft.Practices.EnterpriseLibrary.Logging,=20
Version=3D2.0.0.0, Cult<BR>ure=3Dneutral,=20
PublicKeyToken=3D3fa5b950a3ed0199'<BR>&nbsp;&nbsp; at=20
=
SAC.DataServices.CorpAction.WithholdingTax.BizSvr.Finalize()</FONT></DIV>=

<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>=3D=3D=3D Pre-bind state =
information=20
=3D=3D=3D<BR>LOG: User =3D SACCAP\JohnY<BR>LOG: DisplayName =3D=20
Microsoft.Practices.EnterpriseLibrary.Logging, Version=3D2.0.0.<BR>0,=20
Culture=3Dneutral,=20
PublicKeyToken=3D3fa5b950a3ed0199<BR>&nbsp;(Fully-specified)<BR>LOG: =
Appbase =3D=20
</FONT><A href=3D"file:///C:/Program"><FONT face=3D"Courier New"=20
size=3D2>file:///C:/Program</FONT></A><FONT face=3D"Courier New" =
size=3D2> Files=20
(x86)/SAC Capital/SAC DataServices CorpA<BR>ction WithholdingTax =
BizSvr=20
Host/<BR>LOG: Initial PrivatePath =3D NULL<BR>Calling assembly :=20
SAC.DataServices.CorpAction.WithholdingTax.BizSvr, =
Version=3D1.<BR>1.2189.29367,=20
Culture=3Dneutral, PublicKeyToken=3Dnull.<BR>=3D=3D=3D<BR>LOG: This =
bind starts in=20
default load context.<BR>LOG: Using application configuration file: =
C:\Program=20
Files (x86)\SAC Capital\SA<BR>C DataServices CorpAction WithholdingTax =
BizSvr=20
Host\BizSvr_Host.exe.config<BR>LOG: Using machine configuration file =
from=20
=
C:\WINDOWS\Microsoft.NET\Framework64\<BR>v2.0.50727\config\machine.config=
.<BR>LOG:=20
Post-policy reference: Microsoft.Practices.EnterpriseLibrary.Logging,=20
Versi<BR>on=3D2.0.0.0, Culture=3Dneutral, =
PublicKeyToken=3D3fa5b950a3ed0199<BR>LOG:=20
Attempting download of new URL </FONT><A =
href=3D"file:///C:/Program"><FONT=20
face=3D"Courier New" size=3D2>file:///C:/Program</FONT></A><FONT=20
face=3D"Courier New" size=3D2> Files (x86)/SAC Capital/S<BR>AC =
DataServices=20
CorpAction WithholdingTax BizSvr=20
Host/Microsoft.Practices.Enterp<BR>riseLibrary.Logging.DLL.<BR>ERR: =
Failed to=20
complete setup of assembly (hr =3D 0x8007000b). Probing=20
terminated.</FONT></DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><BR><FONT face=3DArial size=3D2>John Yung</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"Ken Tucker [MVP]" &lt;</FONT><A=20
href=3D"mailto:vb2ae@bellsouth.net"><FONT face=3DArial=20
size=3D2>vb2ae@bellsouth.net</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote in=20
message </FONT><A =
href=3D"news:u%23hbfRODGHA.628@TK2MSFTNGP14.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:u%23hbfRODGHA.628@TK2MSFTNGP14.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
Hi,<BR>&gt;=20
<BR>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to =
figure out=20
this problem.&nbsp; What version of the <BR>&gt; enterprise application =
blocks=20
are you using?<BR>&gt; <BR>&gt; Ken<BR>&gt; ------------------<BR>&gt; =
"John=20
Yung" &lt;</FONT><A href=3D"mailto:johny@sac.com"><FONT face=3DArial=20
size=3D2>johny@sac.com</FONT></A><FONT face=3DArial size=3D2>&gt; wrote =
in message=20
<BR>&gt; </FONT><A =
href=3D"news:uNsXWC$CGHA.2644@TK2MSFTNGP09.phx.gbl"><FONT=20
face=3DArial =
size=3D2>news:uNsXWC$CGHA.2644@TK2MSFTNGP09.phx.gbl</FONT></A><FONT=20
face=3DArial size=3D2>...<BR>&gt; &gt; Ken,<BR>&gt; &gt;<BR>&gt; &gt; I =
compiled the=20
code under "Any CPU" setting in VS.NET 2005 and our backend<BR>&gt; &gt; =
is a MS=20
SQL 2000 with SP4 (32bit) DB. Thus, I don't think it is trying =
to<BR>&gt; &gt;=20
use 64bit version of odbc. What makes you think it is trying to use a =
<BR>&gt;=20
&gt; 64bit<BR>&gt; &gt; version of odbc?<BR>&gt; &gt;<BR>&gt; &gt;=20
Thanks,<BR>&gt; &gt;<BR>&gt; &gt; John Yung<BR>&gt; &gt;<BR>&gt; &gt; =
"Ken=20
Tucker [MVP]" &lt;</FONT><A=20
href=3D"mailto:KenTuckerMVP@discussions.microsoft.com"><FONT =
face=3DArial=20
size=3D2>KenTuckerMVP@discussions.microsoft.com</FONT></A><FONT =
face=3DArial=20
size=3D2>&gt; wrote in <BR>&gt; &gt; message<BR>&gt; &gt; </FONT><A=20
href=3D"news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com"><FONT =
face=3DArial=20
size=3D2>news:6CF926A3-CB35-48A8-8890-DFDE125A290E@microsoft.com</FONT></=
A><FONT=20
face=3DArial size=3D2>...<BR>&gt; &gt;&gt; Hi,<BR>&gt; &gt;&gt;<BR>&gt;=20
&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sorry there are =
not any=20
64bit versions of the odbc drivers.&nbsp; You<BR>&gt; &gt;&gt; need to =
compile=20
the application for x86 to force the computer to use the<BR>&gt; =
&gt;&gt; 32bit=20
drivers.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; I made a suggestion in the =
msdn=20
product feed back center for a 64bit<BR>&gt; &gt; version<BR>&gt; =
&gt;&gt; of=20
odbc.&nbsp; Please vote for it.<BR>&gt; &gt;&gt;<BR>&gt; =
&gt;&gt;<BR>&gt; &gt;=20
</FONT><A=20
href=3D"http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?f=
eedbackid=3Da533f823-73a1-40e8-9380-d25b58ce8ae8"><FONT=20
face=3DArial=20
size=3D2>http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?=
feedbackid=3Da533f823-73a1-40e8-9380-d25b58ce8ae8</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Ken<BR>&gt; =
&gt;&gt; </FONT><A=20
href=3D"http://www.vb-tips.com"><FONT face=3DArial=20
size=3D2>http://www.vb-tips.com</FONT></A><BR><FONT face=3DArial =
size=3D2>&gt;=20
&gt;&gt; ---------------------------<BR>&gt; &gt;&gt;<BR>&gt; =
&gt;&gt;<BR>&gt;=20
&gt;&gt; "John Yung" wrote:<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; &gt; =
All,<BR>&gt;=20
&gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; I am running a middle tier component =

(MarshalByRefObject) as a Windows<BR>&gt; &gt; Service (the Windows =
Service=20
starts a Console Application which hosts the<BR>&gt; &gt; Middle Tier=20
component). When the services is running under a non-64bit<BR>&gt; &gt; =
machine,=20
it runs without any problems (accepts client connections and API<BR>&gt; =
&gt;=20
calls).<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; &gt; However, when =
running on a=20
64bit Win 2003 server, I am getting the the<BR>&gt; &gt; "Unable to find =
the=20
requested .Net Framework Data Provider.&nbsp; It may not be<BR>&gt; &gt; =

installed." error. I am running Microsoft Windows Services 2003 Standard =

<BR>&gt; &gt; x64<BR>&gt; &gt; Edition. I compiled the software using =
"Any CPU"=20
setting. I am also <BR>&gt; &gt; getting<BR>&gt; &gt; the error if I =
start the=20
console application directly.<BR>&gt; &gt;&gt; &gt;<BR>&gt; &gt;&gt; =
&gt; The=20
following contains error information (check InnerException).<BR>&gt; =
&gt;&gt;=20
&gt;<BR>&gt; &gt;&gt; &gt; Error Message:<BR>&gt; &gt;&gt; &gt; =
Exception has=20
been thrown by the target of an invocation.<BR>&gt; &gt;&gt; =
&gt;<BR>&gt;=20
&gt;&gt; &gt; Error Source:<BR>&gt; &gt;&gt; &gt; mscorlib:<BR>&gt; =
&gt;&gt;=20
&gt;<BR>&gt; &gt;&gt; &gt; Error StackTrace:<BR>&gt; &gt;&gt; &gt; =
Server stack=20
trace:<BR>&gt; &gt;&gt; &gt;&nbsp;&nbsp;&nbsp; at=20
System.RuntimeTypeHandle.CreateInstance(RuntimeType type, =
Boolean<BR>&gt; &gt;=20
publicOnly, Boolean noCheck, Boolean&amp; canBeCached,=20
RuntimeMethodHandle&amp;<BR>&gt; &gt; ctor, Boolean&amp;=20
bNeedSecurityCheck)<BR>&gt; &gt;&gt; &gt;&nbsp;&nbsp;&nbsp; at=20
System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, =
Boolean<BR>&gt; &gt;=20
fillCache)<BR>&gt; &gt;&gt; &gt;&nbsp;&nbsp;&nbsp; at=20
System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, =
Boolean<BR>&gt; &gt;=20
skipVisibilityChecks, Boolean fillCache)<BR>&gt; &gt;&gt; =
&gt;&nbsp;&nbsp;&nbsp;=20
at System.Activator.CreateInstance(Type type, Boolean nonPublic)<BR>&gt; =

&gt;&gt; &gt;&nbsp;&nbsp;&nbsp; at<BR>&gt; &gt;=20
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ell<BR>&gt;=20
&gt; KnownObject(String asmName, String svrTypeName, String URI,<BR>&gt; =
&gt;=20
WellKnownObjectMode mode, Boolean fReplace)<BR>&gt; &gt;&gt;=20
&gt;&nbsp;&nbsp;&nbsp; at<BR>&gt; &gt;=20
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StartupW=
ell<BR>&gt;=20
&gt; KnownObject(String URI)<BR>&gt; &gt;&gt; &gt;&nbsp;&nbsp;&nbsp; =
at<BR>&gt;=20
&a