Support Forums

Server Error
 
Notifications
Clear all

[Solved] Server Error

5 Posts
2 Users
0 Likes
8,647 Views
0
Topic starter

Looks like I’m the problem child of the month….

(This is a pretty long entry)

I believe this is related to the two DLL files that you had me switch out for the contact import error, but now when just going to the login page get this error:

?

Server Error in ‘/CloudPanel’ Application.

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
? 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.NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

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:

?

[NotSupportedException: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.]

[FileLoadException: Could not load file or assembly ‘CloudPanel.Exchange, Version=3.1.1510.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)]
?? System.AppDomain.Load(AssemblyName assemblyRef) +0
?? Nancy.AppDomainAssemblyCatalog.LoadNancyReferencingAssemblies(IEnumerable`1 loadedAssemblies) +618
?? Nancy.AppDomainAssemblyCatalog.GetAvailableAssemblies() +21
?? System.Lazy`1.CreateValue() +709
?? System.Lazy`1.LazyInitValue() +191
?? Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type) +30
?? System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) +84
?? Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type, TypeResolveStrategy strategy) +147
?? Nancy.Bootstrapper.<>c.<get_Default>b__1_0(ITypeCatalog typeCatalog) +196
?? Nancy.Bootstrapper.NancyBootstrapperBase`1.GetInitializedInternalConfiguration() +60
?? Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise() +60
?? Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor() +44

[TypeInitializationException: The type initializer for ‘Nancy.Hosting.Aspnet.NancyHttpRequestHandler’ threw an exception.]
?? Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor() +0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
?? System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
?? System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +138
?? System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
?? System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1499
?? System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +191
?? System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
?? System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
?? System.Web.Configuration.HandlerFactoryCache..ctor(String type) +58
?? System.Web.HttpApplication.GetFactory(String type) +104
?? System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +262
?? System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +157
?

and the event log error is:

Log Name:????? Application
Source:??????? ASP.NET 4.0.30319.0
Date:????????? 2/13/2017 9:41:41 AM
Event ID:????? 1309
Task Category: Web Event
Level:???????? Warning
Keywords:????? Classic
User:????????? N/A
Computer:????? QTHAPP01.QuotientHosting.local
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2/13/2017 9:41:41 AM
Event time (UTC): 2/13/2017 3:41:41 PM
Event ID: c745ec1ee3cd4be781dd0a5c290d3d8e
Event sequence: 20
Event occurrence: 7
Event detail code: 0
?
Application information:
??? Application domain: /LM/W3SVC/1/ROOT/CloudPanel-1-131314724024114488
??? Trust level: Full
??? Application Virtual Path: /CloudPanel
??? Application Path: C:\Program Files (x86)\Know More IT\CloudPanel\
??? Machine name: QTHAPP01
?
Process information:
??? Process ID: 3624
??? Process name: w3wp.exe
??? Account name: QUOTIENTHOSTING\rtp-domainadmin
?
Exception information:
??? Exception type: TypeInitializationException
??? Exception message: The type initializer for ‘Nancy.Hosting.Aspnet.NancyHttpRequestHandler’ threw an exception.
?? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor()

Could not load file or assembly ‘CloudPanel.Exchange, Version=3.1.1510.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
?? at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
?? at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
?? at System.AppDomain.Load(AssemblyName assemblyRef)
?? at System.AppDomain.Load(AssemblyName assemblyRef)
?? at Nancy.AppDomainAssemblyCatalog.LoadNancyReferencingAssemblies(IEnumerable`1 loadedAssemblies)
?? at Nancy.AppDomainAssemblyCatalog.GetAvailableAssemblies()
?? at System.Lazy`1.CreateValue()
?? at System.Lazy`1.LazyInitValue()
?? at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type)
?? at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
?? at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type, TypeResolveStrategy strategy)
?? at Nancy.Bootstrapper.NancyInternalConfiguration.<>c.<get_Default>b__1_0(ITypeCatalog typeCatalog)
?? at Nancy.Bootstrapper.NancyBootstrapperBase`1.GetInitializedInternalConfiguration()
?? at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise()
?? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor()

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

?
?
Request information:
??? Request URL: http://localhost/cloudpanel/admin/settings
??? Request path: /cloudpanel/admin/settings
??? User host address: ::1
??? User:?
??? Is authenticated: False
??? Authentication Type:?
??? Thread account name: QUOTIENTHOSTING\rtp-domainadmin
?
Thread information:
??? Thread ID: 26
??? Thread account name: QUOTIENTHOSTING\rtp-domainadmin
??? Is impersonating: False
??? Stack trace:??? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor()
?
?
Custom event details:

Event Xml:
<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
? <System>
??? <Provider Name=”ASP.NET 4.0.30319.0″ />
??? <EventID Qualifiers=”32768″>1309</EventID>
??? <Level>3</Level>
??? <Task>3</Task>
??? <Keywords>0x80000000000000</Keywords>
??? <TimeCreated SystemTime=”2017-02-13T15:41:41.000000000Z” />
??? <EventRecordID>8929</EventRecordID>
??? <Channel>Application</Channel>
??? <Computer>QTHAPP01.QuotientHosting.local</Computer>
??? <Security />
? </System>
? <EventData>
??? <Data>3005</Data>
??? <Data>An unhandled exception has occurred.</Data>
??? <Data>2/13/2017 9:41:41 AM</Data>
??? <Data>2/13/2017 3:41:41 PM</Data>
??? <Data>c745ec1ee3cd4be781dd0a5c290d3d8e</Data>
??? <Data>20</Data>
??? <Data>7</Data>
??? <Data>0</Data>
??? <Data>/LM/W3SVC/1/ROOT/CloudPanel-1-131314724024114488</Data>
??? <Data>Full</Data>
??? <Data>/CloudPanel</Data>
??? <Data>C:\Program Files (x86)\Know More IT\CloudPanel\</Data>
??? <Data>QTHAPP01</Data>
??? <Data>
??? </Data>
??? <Data>3624</Data>
??? <Data>w3wp.exe</Data>
??? <Data>QUOTIENTHOSTING\rtp-domainadmin</Data>
??? <Data>TypeInitializationException</Data>
??? <Data>The type initializer for ‘Nancy.Hosting.Aspnet.NancyHttpRequestHandler’ threw an exception.
?? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor()

Could not load file or assembly ‘CloudPanel.Exchange, Version=3.1.1510.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
?? at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
?? at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
?? at System.AppDomain.Load(AssemblyName assemblyRef)
?? at System.AppDomain.Load(AssemblyName assemblyRef)
?? at Nancy.AppDomainAssemblyCatalog.LoadNancyReferencingAssemblies(IEnumerable`1 loadedAssemblies)
?? at Nancy.AppDomainAssemblyCatalog.GetAvailableAssemblies()
?? at System.Lazy`1.CreateValue()
?? at System.Lazy`1.LazyInitValue()
?? at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type)
?? at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
?? at Nancy.DefaultTypeCatalog.GetTypesAssignableTo(Type type, TypeResolveStrategy strategy)
?? at Nancy.Bootstrapper.NancyInternalConfiguration.&lt;&gt;c.&lt;get_Default&gt;b__1_0(ITypeCatalog typeCatalog)
?? at Nancy.Bootstrapper.NancyBootstrapperBase`1.GetInitializedInternalConfiguration()
?? at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise()
?? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..cctor()

An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.

</Data>
??? <Data> http://localhost/cloudpanel/admin/settings</Data>
??? <Data>/cloudpanel/admin/settings</Data>
??? <Data>::1</Data>
??? <Data>
??? </Data>
??? <Data>False</Data>
??? <Data>
??? </Data>
??? <Data>QUOTIENTHOSTING\rtp-domainadmin</Data>
??? <Data>26</Data>
??? <Data>QUOTIENTHOSTING\rtp-domainadmin</Data>
??? <Data>False</Data>
??? <Data>?? at Nancy.Hosting.Aspnet.NancyHttpRequestHandler..ctor()
</Data>
? </EventData>
</Event>

?

Since I was done importing contacts (until my next migration) I put the original DLL files back and was able to open up cloudpanel and login.

Let me know if you would like me to do any sort of testing or anything. this looks to be a .net issue (just guessing) but not sure why I was able to work the first time I swapped to the other DLL files.

?

Thanks

-steve

3 Answers
0
Topic starter

thanks, I tried both of those options earlier but can’t remember the order. Since I have a client actually using cloudpanel right now I’ll re-add the new dll’s later and try again.

Will update you later,

thanks

-steve

Jacob Dixon 2017-02-17 09:46

Steve did you get this working?

0
Topic starter

Sorry Jacob, I’m still on the original DLLs, I haven’t switched back yet. We’re moving our last client this week and haven’t had to do any contact imports since last time so I haven’t had a need to change it.

But I will get back to that once the migrations are done.

Thanks

steve

0

Since those files were “over the internet” you probably need to right click both DLL files and choose properties and click Unblock.

Jacob Dixon 2017-02-13 11:13

Also when you unblock them you will probably need to recycle the CloudPanel application pool.

Share: