maoyuan121 / elmah

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

MDB creation script error after adding ELMAH.Access 1.2 NuGet package #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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.Access package and click Install.
11. Press F5.
12. When the browser finshes launching the home page, go to the address bar and 
type in the URL to the error log page, which should be something along the 
lines of http://localhost:PORT/elmah.axd (replace PORT with actual port number).

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

Expected to the see an empty error log page where the footer indicates the MS 
Access Error Log as being the backing store for the log. Instead an error 
occurs with the following details (see also attachment):

[Exception: The Microsoft Access database creation script failed with exit code 
1.]
   Elmah.AccessErrorLog.InitializeDatabase() +911
   Elmah.AccessErrorLog..ctor(IDictionary config) +208

[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
   System.Activator.CreateInstance(Type type, Object[] args) +19
   Elmah.SimpleServiceProviderFactory.CreateFromConfigSection(String sectionName) +311
   Elmah.ErrorLog.GetDefaultImpl(HttpContext context) +132
   Elmah.ServiceContainer.GetService(Type serviceType) +120
   Elmah.ServiceCenter.FindService(Object context, Type serviceType) +101
   Elmah.ServiceCenter.GetService(Object context, Type serviceType) +42
   Elmah.ErrorLog.GetDefault(HttpContext context) +71
   Elmah.ErrorPageBase.get_ErrorLog() +63
   Elmah.ErrorLogPage.OnLoad(EventArgs e) +392
   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 10:45

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 10 Mar 2011 at 10:48

GoogleCodeExporter commented 9 years ago
A bug in AccessErrorLog hanging over from r398!!
If the path to your website has spaces in it, the Access .mdb creation fails.

Original comment by jamesdriscoll71 on 11 Mar 2011 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 11 Mar 2011 at 6:52

GoogleCodeExporter commented 9 years ago
Fixed in r804 and probably needs to be merged into RB-1.2-NuGet to pick up the 
change there for further testing of packages.

Original comment by azizatif on 11 Mar 2011 at 8:05