Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install after compile #888

Open
johnmhe opened this issue Jun 11, 2021 · 0 comments
Open

Install after compile #888

johnmhe opened this issue Jun 11, 2021 · 0 comments

Comments

@johnmhe
Copy link

johnmhe commented Jun 11, 2021

Hi
I have installed the downloaded version as a test and it works fine. After getting the repo and modifying it. After compile it refuses to run. The only error message I get that's worth reading is in the Event viewer: I googled this and it seems that the problem is likely not the sqlite.interop.dll so any help tracing the issue would be good. As a side note, my modified version runs perfectly in the IDE. I see the sqlite error floating by in the runtime output but it doesn't cause a failure.

As for my modification. I simply added a controller to provide a page containing a list of repo's for a backup utility that we are developing. Its unobtrusive and doesn't hook into any of the other project files except for one small static helper function in the Global.asax.cs file which retrieves a folder location for me.

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 6/10/2021 7:55:01 PM
Event time (UTC): 6/10/2021 5:55:01 PM
Event ID: 7126254aba5941408fa0d33d1f3188d6
Event sequence: 2
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/1/ROOT-4-132678212970214453
Trust level: Full
Application Virtual Path: /
Application Path: C:\inetpub\wwwroot\Bonobo.Git.Server\
Machine name: MHESERVER

Process information:
Process ID: 996
Process name: w3wp.exe
Account name: IIS APPPOOL.NET v4.5

Exception information:
Exception type: HttpException
Exception message: Exception has been thrown by the target of an invocation.
at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Exception has been thrown by the target of an invocation.
at System.RuntimeFieldHandle.GetValue(RtFieldInfo field, Object instance, RuntimeType fieldType, RuntimeType declaringType, Boolean& domainInitialized)
at System.Reflection.RtFieldInfo.UnsafeGetValue(Object obj)
at System.Reflection.RtFieldInfo.GetValue(Object obj)
at System.Data.Common.DbProviderFactories.GetFactory(DataRow providerRow)
at System.Data.Entity.Infrastructure.DependencyResolution.DefaultProviderFactoryResolver.GetService(Type type, Object key, Func3 handleFailedLookup) at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory) at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate)
at System.Data.Entity.Infrastructure.DependencyResolution.RootDependencyResolver.GetService(Type type, Object key)
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at System.Data.Entity.Infrastructure.DependencyResolution.CompositeResolver2.GetService(Type type, Object key)
at System.Data.Entity.Infrastructure.DependencyResolution.DbDependencyResolverExtensions.GetService[T](IDbDependencyResolver resolver, Object key)
at System.Data.Entity.Internal.LazyInternalConnection.CreateConnectionFromProviderName(String providerInvariantName)
at System.Data.Entity.Internal.LazyInternalConnection.InitializeFromConnectionStringSetting(ConnectionStringSettings appConfigConnection)
at System.Data.Entity.Internal.LazyInternalConnection.TryInitializeFromAppConfig(String name, AppConfig config)
at System.Data.Entity.Internal.LazyInternalConnection.Initialize()
at System.Data.Entity.Internal.LazyInternalConnection.get_Connection()
at Bonobo.Git.Server.Data.Update.AutomaticUpdater.DoUpdate(BonoboGitServerContext ctx)
at Bonobo.Git.Server.Data.Update.AutomaticUpdater.UpdateDatabase()
at Bonobo.Git.Server.MvcApplication.Application_Start()

The type initializer for 'System.Data.SQLite.SQLiteFactory' threw an exception.

Unable to load DLL 'SQLite.Interop.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at System.Data.SQLite.UnsafeNativeMethods.sqlite3_config_none(SQLiteConfigOpsEnum op)
at System.Data.SQLite.SQLite3.StaticIsInitialized()
at System.Data.SQLite.SQLiteLog.Initialize()
at System.Data.SQLite.SQLiteFactory..cctor()

Request information:
Request URL: http://localhost/
Request path: /
User host address: ::1
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL.NET v4.5

Thread information:
Thread ID: 26
Thread account name: IIS APPPOOL.NET v4.5
Is impersonating: False
Stack trace: at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)

Custom event details:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant