Error on first load…
 
Notifications
Clear all

Error on first load Server Error in '/CloudPanel' Application.

9 Posts
2 Users
0 Reactions
8,448 Views
Posts: 0
Topic starter
Joined: 1 second ago

I am getting the below error after install http://localhost/CloudPanel/admin/setup

 

Server Error in ‘/CloudPanel’ Application.
Sequence contains more than one matching element
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: Sequence contains more than one matching element

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[InvalidOperationException: Sequence contains more than one matching element]
System.Linq.Enumerable.SingleOrDefault(IEnumerable`1 source, Func`2 predicate) +364
Nancy.ViewEngines.Razor.RazorAssemblyProvider.GetDefaultAssemblies() +288
Nancy.ViewEngines.Razor.RazorAssemblyProvider.GetAllAssemblies() +126
System.Lazy`1.CreateValue() +236
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Lazy`1.get_Value() +14620009
Nancy.ViewEngines.Razor.RazorAssemblyProvider.GetAssemblies() +54
Nancy.ViewEngines.Razor.RazorViewEngine.<GetMetadataReferences>b__16_0() +71
System.Lazy`1.CreateValue() +708
System.Lazy`1.LazyInitValue() +184
Nancy.ViewEngines.Razor.RazorViewEngine.GenerateRazorViewFactory(IRazorViewRenderer renderer, GeneratorResults generatorResults, Type passedModelType, ViewLocationResult viewLocationResult) +671
Nancy.ViewEngines.Razor.RazorViewEngine.GetCompiledViewFactory(TextReader reader, Type passedModelType, ViewLocationResult viewLocationResult) +217
Nancy.ViewEngines.Razor.<>c__DisplayClass22_0.<GetOrCompileView>b__0(ViewLocationResult x) +145
Nancy.ViewEngines.<>c__DisplayClass3_0`1.<GetOrAdd>b__0(ViewLocationResult x) +18
System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +87
Nancy.ViewEngines.DefaultViewCache.GetOrAdd(ViewLocationResult viewLocationResult, Func`2 valueFactory) +195
Nancy.ViewEngines.Razor.RazorViewEngine.GetOrCompileView(ViewLocationResult viewLocationResult, IRenderContext renderContext, Type passedModelType) +283
Nancy.ViewEngines.Razor.RazorViewEngine.GetViewInstance(ViewLocationResult viewLocationResult, IRenderContext renderContext, Object model) +1736
System.Dynamic.UpdateDelegates.UpdateAndExecute4(CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) +274
Nancy.ViewEngines.Razor.<>c__DisplayClass9_0.<RenderView>b__0(Stream stream) +622
Nancy.Hosting.Aspnet.<ProcessRequest>d__2.MoveNext() +378
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +31
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +60
System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar) +59
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648
System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0

8 Replies
Posts: 1600
Admin
Noble Member
Joined: 10 years ago

We are aware of this issue on certain operating systems (especially with .NET 4.7) which is why we took down the 3.2.075.1000 build. Please download the latest published version: v3.2.0256.0

http://knowmoreit.com/releases/

Reply
Posts: 0
Topic starter
Joined: 1 second ago

Thanks that has worked now, i must have done the download when it was still up.

 

I am having a problem with the scheduler now, i will post the error here but if you want a new topic i will create

 

2018-08-30 11:07:46,803 [4] ERROR CPService.CPService Error getting settings: System.Data.SqlClient.SqlException (0x80131904): Cannot open database “CloudPanel10” requested by the login. The login failed.
Login failed for user ‘MY DOMAIN\administrator’.

 

Regards

 

Michael

Reply
1 Reply
Admin
Joined: 10 years ago

Noble Member
Posts: 1600

When you installed did you use SQL authentication or Windows Authentication? That basically is saying that MY DOMANI\administrator doesn’t have rights to the CoudPanel10 database in SQL. You can use SQL Server Management Studio to fix that.

Reply
Posts: 0
Topic starter
Joined: 1 second ago

I used mixed mode on install, my Domain admin has DBO access to the couldpanel database

Reply
Posts: 0
Topic starter
Joined: 1 second ago

Full Log Below

2018-08-30 16:51:56,656 [4] ERROR CPService.CPService Error getting settings: System.Data.SqlClient.SqlException (0x80131904): Cannot open database “CloudPanel10” requested by the login. The login failed.
Login failed for user ‘Domain\administrator’.
at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user)
at System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe()
at System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode()
at System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
at System.Data.Linq.Table`1.GetEnumerator()
at System.Data.Linq.Table`1.System.Collections.Generic.IEnumerable<TEntity>.GetEnumerator()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at CPService.ServiceSettings.ReadSettings()
ClientConnectionId:327ad602-e0af-4421-8abb-04f2624d50c7
Error Number:4060,State:1,Class:11

Reply
Page 1 / 2
Share: