1. Stack Trace:
[FileNotFoundException: Could not load file or assembly
'System.ServiceModel' or one of its dependencies. The system cannot
find the file specified.]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMark& stackMark) +64
System.RuntimeType.PrivateGetType(String typeName, Boolean
throwOnError, Boolean ignoreCase, Boolean reflectionOnly,
StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName, Boolean throwOnError, Boolean
ignoreCase) +65
Castle.Windsor.Installer.DefaultComponentInstaller.ObtainType
(String typeName) +74
[ConfigurationErrorsException: The type name
System.ServiceModel.Description.IServiceBehavior, System.ServiceModel
could not be located]
Castle.Windsor.Installer.DefaultComponentInstaller.ObtainType
(String typeName) +164
Castle.Windsor.Installer.DefaultComponentInstaller.SetUpComponents
(IConfiguration[] configurations, IWindsorContainer container) +283
Castle.Windsor.Installer.DefaultComponentInstaller.SetUp
(IWindsorContainer container, IConfigurationStore store) +121
Castle.Windsor.WindsorContainer.RunInstaller() +76
Castle.Windsor.WindsorContainer..ctor(IConfigurationInterpreter
interpreter) +144
Castle.Windsor.WindsorContainer..ctor(String xmlFile) +61
Site.Global.Application_Start(Object sender, EventArgs e) in C:
\Development\Djenne\Dev\Core\TradeServer\Site\Global.asax.cs:29
Assembly Load Trace: The following information can be helpful to
determine why the assembly 'System.ServiceModel' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = System.ServiceModel
(Partial)
LOG: Appbase = file:///C:/Development/Djenne/Dev/Core/TradeServer/Site/
LOG: Initial PrivatePath = C:\Development\Djenne\Dev\Core\TradeServer
\Site\bin
Calling assembly : Castle.Windsor, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=407dd0808d44fbdc.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Development\Djenne\Dev
\Core\TradeServer\Site\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET
\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private,
custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary
ASP.NET Files/root/2ec7d594/f5851cc8/System.ServiceModel.DLL.
LOG: Attempting download of new URL
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary
ASP.NET Files/root/2ec7d594/f5851cc8/System.ServiceModel/
System.ServiceModel.DLL.
LOG: Attempting download of new URL
file:///C:/Development/Djenne/Dev/Core/TradeServer/Site/bin/System.ServiceModel.DLL.
LOG: Attempting download of new URL
file:///C:/Development/Djenne/Dev/Core/TradeServer/Site/bin/System.ServiceModel/System.ServiceModel.DLL.
LOG: Attempting download of new URL
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary
ASP.NET Files/root/2ec7d594/f5851cc8/System.ServiceModel.EXE.
LOG: Attempting download of new URL
file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/Temporary
ASP.NET Files/root/2ec7d594/f5851cc8/System.ServiceModel/
System.ServiceModel.EXE.
LOG: Attempting download of new URL
file:///C:/Development/Djenne/Dev/Core/TradeServer/Site/bin/System.ServiceModel.EXE.
LOG: Attempting download of new URL
file:///C:/Development/Djenne/Dev/Core/TradeServer/Site/bin/System.ServiceModel/System.ServiceModel.EXE.
2. I have 3 class :
a. MyRepository
b. MySecurityTokenManager that inherits
ServiceCredentialsSecurityTokenManager that inherits
SecurityTokenManager (That composite MyRepository)
c. MyServiceCredentials that inherits ServiceCredentials (That
composite MySecurityTokenManager)
if i am using wcf configuration it's looks like this:
<serviceCredentials type="MyServiceCredentials ">
<serviceCertificate findValue="test"
storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectName" />
</serviceCredentials>
But i cannot inject MyRepository to MySecurityTokenManager .
The other option is windsor configuration that looks like this:
<component id="MyServiceCredentials"
service="System.ServiceModel.Description.IServiceBehavior,
System.ServiceModel"
type="MyServiceCredentials">
</component>
how can i config the serviceCertificate ?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---