Open GoogleCodeExporter opened 9 years ago
Hello,
Does this error occur immediately after consuming the API or does it happen
after an exception occurs? That class does contain a DoAdd Implementation. Can
you please check this in reflector.
Thanks
-Blake Niemyjski
Original comment by bniemyjski
on 11 Jan 2011 at 10:22
I think we need a little more info. How are you using Nettiers? Are you using
the ServiceLayer, UI components, or just the data layer. Also, you might post
a copy of your app/web.config and entlib.config files. You can remove any
sensitive appsettings / connection strings.
We just need to try and reproduce this. If I generate, and run the admin
website nettiers generates, I don't get this error. That leads me to think
something might be different with your setup.
jeff
Original comment by jmhin...@gmail.com
on 11 Jan 2011 at 10:32
Just for background:
My project is WPF4 using the MVVM pattern backed by Prism.
I've had a play for a few minutes and it seems something to do with Prism and
when it enumerates DLLs during the bootstrap. Think I need to get the source
of Prism hooked in so I can do some debugging to be sure.
Original comment by james.pa...@gmail.com
on 12 Jan 2011 at 10:28
Managed to repro with only a console app. All you need to do is replace
C:\xxxxx.Data.dll with the path to your nettiers data dll.
Hopefully you will see the problem then. My research has pointed towards
references but I'm still no further forward.
==========
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Assembly ass = Assembly.ReflectionOnlyLoadFrom(@"C:\xxxxx.Data.dll");
AppDomain.CurrentDomain.ReflectionOnlyAssemblyResolve += new ResolveEventHandler(CurrentDomain_ReflectionOnlyAssemblyResolve);
foreach (Type t in ass.GetExportedTypes())
{
Console.WriteLine(t);
}
}
static Assembly CurrentDomain_ReflectionOnlyAssemblyResolve(object sender, ResolveEventArgs args)
{
return System.Reflection.Assembly.ReflectionOnlyLoad(args.Name);
}
}
}
Original comment by james.pa...@gmail.com
on 13 Jan 2011 at 5:30
Original comment by bniemyjski
on 13 Jan 2011 at 7:08
Original comment by bniemyjski
on 13 Jan 2011 at 7:39
It is possible to just exclude FileConfigurationSouce.cs and
FileConfigurationSouceElement.cs and things behave themselves. That is a quick
stop gap for me until it can be explained why the exception occurs.
Original comment by james.pa...@gmail.com
on 14 Jan 2011 at 1:49
Original issue reported on code.google.com by
james.pa...@gmail.com
on 11 Jan 2011 at 9:14