jglisson / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

System.Data.SQLite assembly not found after adding ELMAH.SQLite package #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Checkout branch RB-1.2-NuGet
2. Run pack.cmd in the root of the working directory.
3. Launch VS 2010.
4. Select File, then New, then Project, then ASP.NET Web Application (C#).
5. Select the web application project node in the Solution Explorer, then Add 
Library Reference Package.
6. Select Settings.
7. In Available package sources list, add one named ELMAH where Source points 
to the local directory where the packages are located. Click OK.
8. Again, select the web application project node in the Solution Explorer, 
then Add Library Reference Package.
9. In the Add Library Reference Package, select Online on the left and then 
ELMAH.
10. Select the ELMAH.SQLite package and click Install.
11. Press F5 to run the web application.

What is the expected output? What do you see instead?

Expected to see the default home page of the web application. Instead the 
following error occurs (see attachment also for details):

[FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, 
Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of 
its dependencies. The system cannot find the file specified.]
   Elmah.SQLiteErrorLog.InitializeDatabase() +0
   Elmah.SQLiteErrorLog..ctor(IDictionary config) +56

[TargetInvocationException: Exception has been thrown by the target of an 
invocation.]
   System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) +0
   System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType) +15
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +281
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
   Elmah.SimpleServiceProviderFactory.CreateFromConfigSection(String sectionName) +218
   Elmah.ErrorLog.GetDefaultImpl(HttpContext context) +119
   Elmah.ServiceContainer.GetService(Type serviceType) +51
   Elmah.ServiceCenter.FindService(Object context, Type serviceType) +25
   Elmah.ServiceCenter.GetService(Object context, Type serviceType) +14
   Elmah.ErrorLog.GetDefault(HttpContext context) +22
   Elmah.ErrorPageBase.get_ErrorLog() +32
   Elmah.ErrorLogPage.OnLoad(EventArgs e) +308
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

Additional information:

OS: Windows 7 Ultimate
ASP.NET: v4.0
Visual Studio: 2010 SP1
Web Server: ASP.NET Development Server
Revision: r799

Original issue reported on code.google.com by azizatif on 10 Mar 2011 at 11:09

Attachments:

GoogleCodeExporter commented 8 years ago
I'm attaching three additional details:

package-manager-output.txt: Output from the Package Manager after installing 
ELMAH.SQLite.

post-build-event.txt: Content of the Post-build event command line under Build 
Events in web application project proprties.

build.txt: Output from build when launching the web application.

Original comment by azizatif on 10 Mar 2011 at 11:21

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by jamesdriscoll71 on 11 Mar 2011 at 2:24

GoogleCodeExporter commented 8 years ago

Original comment by jamesdriscoll71 on 13 Mar 2011 at 9:29

GoogleCodeExporter commented 8 years ago
Can you cross-reference the revision that fixes this issue? For an example, see:
http://code.google.com/p/elmah/issues/detail?id=176#c5

Original comment by azizatif on 13 Mar 2011 at 9:57

GoogleCodeExporter commented 8 years ago
Fixed in r809.

Original comment by jamesdriscoll71 on 13 Mar 2011 at 10:06