I’m developing an MVC 3 app. I only have 3 things registered at this point, controller factory, log4net facility and an interface that binds to a generated service implementation.
This is the error I’m getting:
“No Source Available”
Castle.Windsor.DLL!Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance(System.Type
implType, object[] arguments, System.Type[] signature) Line 198 + 0x10
bytesLocating source for
‘e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs’.
Checksum: MD5 {b0 a6 78 c5 e8 59 ee 2f 72 e3 ed b 54 48 4 39} The file
‘e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs’
does not exist. Looking in script documents for
‘e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs’…
Looking in the projects for
‘e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs’.
The file was not found in a project. Looking in directory ‘C:\Program
Files\Microsoft Visual Studio 10.0\VC\crt\src\’… Looking in
directory ‘C:\Program Files\Microsoft Visual Studio
10.0\VC\atlmfc\src\mfc\’… Looking in directory ‘C:\Program
Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\’… Looking in
directory ‘C:\Program Files\Microsoft Visual Studio
10.0\VC\atlmfc\include\’… The debug source files settings for the
active solution indicate that the debugger will not ask the user to
find the file:
e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs.
The debugger could not locate the source file
‘e:\OSS.Code\Castle.Windsor\src\Castle.Windsor\MicroKernel\ComponentActivator\DefaultComponentActivator.cs’.
This started happening after I added the registration installer for my service interface which looks like this:
public class MyServiceInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Component.For<IServiceBinding>().ImplementedBy<RemoteService>());
}
}
I’ve got the bootstrap method setup in the global.asax as well. As I said castle was working fine until I added this installer, so I’m guessing I’m doing something wrong with the installer. Anyone seen this before?
I was able to resolve this by replacing my Castle assemblies with the latest version. I’m not sure what caused the error, but it’s no longer occurring.