DotNetNuke (dnn) - error on creating pages using version 5.6.3 - dotnetnuke

I have installed DNN version 5.6.3 according to install instructions.
create new folder and copy downloaded content in
set permission for asp user and network service to full permissions on this folder
created a new db in sql server with a login for it as dbo
set the folder containing the site as an application in iis
amended the web.config file to have the correct db connection information in two places
Firstly I tried to install it with the typical settings but this never went any further than updating db (stayed on this for hours).
Therefore I installed it with the auto settings and this went through successfully as I can see.
Now on my new portal I can log in successfully and change my password on the host and admin user but I cannot do anything else, like creating new pages etc.
The error I am getting is this:
Method: System.Net.WebPermission.IsSubsetOf
StackTrace:
Message: System.Web.HttpParseException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies.
Operation is not supported. (Exception from HRESULT: 0x80131515)
---> System.Web.HttpParseException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
---> System.IO.FileLoadException: Could not load file or assembly 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) File name: 'DotNetOpenId, Version=2.4.2.8248, Culture=neutral, PublicKeyToken=2780ccd10d57b246'
---> System.NotSupportedException: Cannot subset Regex. Only support if both patterns are identical. at
System.Net.WebPermission.IsSubsetOf(IPermission target) at
System.Security.PermissionSet.IsSubsetOfHelper(PermissionSet target, IsSubsetOfType type, IPermission& firstPermThatFailed, Boolean ignoreNonCas) at
System.Security.PermissionSet.IsSubsetOf(PermissionSet target) at
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) at
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) at
System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at
System.Reflection.Assembly.Load(String assemblyString) at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail) at
System.Web.UI.TemplateParser.LoadAssembly(String assemblyName, Boolean throwOnFail) at
...
I had this (a previous version of dnn) installed on the same sever for a different client a couple years back and it worked fine, but I can't seem to make it work this time. I compared all the settings and nothing is different.
Has anyone got any experience with this version and an idea how I could progress?
From what I have found Googling, it sounds like it could be a permissioning problem on the server, but not sure where to start since I've given the NETWORKUSER full access to the directory already. Other suggestions seem to point towards .net 3.5 not being available to the website but I already have the framework installed.

Did you install the OpenID Authentication provider? You might need to delete that, or remove any reference to it from the web.config file.
You should also be sure, when you unzip the package for DNN, that Windows isn't blocking any of the files in the ZIP file. Right click on the ZIP file, and choose properties. If you see an "unblock" option do that, then extract the contents and try your installation again.

Related

SSIS execution and deployment error "System.IO.FileLoadException: Could not load file or assembly"

I've a few SSIS deployed to SQL 2012 since last year, all up and running without any issue. This error started to prompt
A .NET Framework error occurred during execution of user-defined routine or aggregate "set_system_informations":
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection'
threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
System.IO.FileLoadException:
at System.Data.SqlClient.SqlConnection..cctor()
System.TypeInitializationException:
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at Microsoft.SqlServer.IntegrationServices.Server.SystemInformations.SetSystemInformations(SqlInt64 operationId)
. Source: .Net SqlClient Data Provider
It just failed to run, I tried to deploy again to SQL and similar error appear as follows
A .NET Framework error occurred during execution of user-defined routine or aggregate "deploy_project_internal":
System.TypeInitializationException: The type initializer for 'System.Data.SqlClient.SqlConnection'
threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The paging file is too small for this operation to complete. (Exception from HRESULT: 0x800705AF)
System.IO.FileLoadException:
at System.Data.SqlClient.SqlConnection..cctor()
System.TypeInitializationException:
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at Microsoft.SqlServer.IntegrationServices.Server.ServerConnectionControl.GetOperationInfo(SqlInt64 operation_id, OperationType type, ServerOperationStatus status, Int64& object_id)
at Microsoft.SqlServer.IntegrationServices.Server.ServerConnectionControl.checkParameters(SqlInt64 object_id, SqlInt64 operation_id, OperationType type)
at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.DeployProjectInternal(SqlInt64 deployId, SqlInt64 versionId, SqlInt64 projectId, SqlString projectName)
. (.Net SqlClient Data Provider)
I've no problem to run the SSIS from the VS2017(SSDT) directly, just can't deploy and get it run on server. I'm not sure what is the root cause of this, all running fine yesterday and start throwing error today.
Anyone encounter this issue before?
You might have referenced a different version of System.Configuration. It could be added as a dependency by another library. It is possible that the version number has jumped during this time and you are referencing older versions. Anyway, you can overwrite the version in your csproj.

TFS Build: System.IO.FileNotFoundException: Could not find file

We have an issue, where developers were Renaming and Deleting files in our Visual Studio SSIS project. Received this error:
System.IO.FileNotFoundException: Could not find file '..SSISPackage.dtsx'
2019-02-07T02:29:05.5297338Z at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
2019-02-07T02:29:05.5297338Z at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Design.Project.IDEProjectStorage.LoadStream(String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadStreamToEnd(IProjectStorage storage, String streamName)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.Project.LoadPackage(IProjectStorage storage, Package package, String streamName, IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.Load(IDTSEvents events)
2019-02-07T02:29:05.5297338Z at Microsoft.SqlServer.Dts.Runtime.PackageItem.get_Package()
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.IncrementalBuildThroughObj(IOutputWindow outputWindow)
2019-02-07T02:29:05.5297338Z at Microsoft.DataTransformationServices.Project.DataTransformationsProjectBuilder.BuildIncremental(IOutputWindow outputWindow)
We went to Visual Studio and Cleaning Solution. --> Clean files and Rebuild Solution. We tried this several times but did not work, so I Closed and Restarted Visual Studio on my desktop and for several developers. The problems and errors went away.
Now we have same issue on TFS 2015 Server. I tried to Clean solution and also Delete the Workspace files in TFS task. It does not work. What is the equivalent of 'Restarting' this on TFS, or how do I clear the memory cache? Our last option is to restart the server, has to be better way.
Create a template empty fake file to replace the missing file and complete your check-in. After the file is checked in, it should build correctly. Then delete the file not required.

Deploying to Azure causes fatal error

I am attempting to publish my demo IdentityServer4 app to Azure web app service for testing.
Everything works beautifully including the app load.
However, no logs are being generated so i got suspicious and checked the diagnostics and found this:
2018-02-28 08:54:21.626 +00:00 [Critical] Microsoft.AspNetCore.Hosting.Internal.WebHost: Hosting startup assembly exception
System.InvalidOperationException: Startup assembly Microsoft.AspNetCore.AzureKeyVault.HostingStartup failed to execute. See the inner exception for more details. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.AspNetCore.AzureKeyVault.HostingStartup, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks, IntPtr ptrLoadContextBinder)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, IntPtr ptrLoadContextBinder)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
Not only are logs not being generated, some of my actions don't work as they should. In this case ability to log in to identityserver4 (i built a custom storage).
Can anyone decipher what i am doing wrong here? Not sure where to start looking.
It looks like you're missing the Microsoft.AspNetCore.AzureKeyVault.HostingStartup assembly.
Can you check that it's definitely part of your deployment package?
The issue seems to relate to the way Azure Web App Service operates.
For some reason or other it is making a call to this assembly for unknown function.
Unfortunately Asp Net Core 2.0 doesn't have this assembly as part of any packages, and from looks of it it doesn't exists in any pre 2.1 libraries.
The solution was to do a dirty installation of the package:
dotnet add package Microsoft.AspNetCore.AzureKeyVault.HostingStartup --version 2.1.0-preview1-27946 --source https://dotnet.myget.org/F/aspnetcore-dev/api/v3/index.json
This essentially deployed the package which wasn't compatible with ASP CORE 2.0, but when published to Azure was picked up, eliminating the problem once and for all.
On that note this package will be part of the Microsot.AspNetCore.All 2.1 that is coming up soon.

dont found package at Visual studio

when I am building universal app ,this problem is occured by visual studio 2015. How can I solve ?
System.Exception
Windows cannot install package 70733c38-2ce9-4c3f-93bb-b44ef99de628 because this package depends on another package that could not be found. This package requires minimum version 14.0.23019.0 of framework Microsoft.VCLibs.140.00.Debug published by CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US to install. Provide the framework along with this package.
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, IIsolationTarget isolationTarget, String baseDirectory)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedObjectFactory.Initialize()
at Microsoft.VisualStudio.DesignTools.DesignerHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry, IServiceProvider serviceOverrides)
at Microsoft.VisualStudio.DesignTools.DesignerContract.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
at Microsoft.VisualStudio.DesignTools.DesignerContract.Isolation.IsolatedTaskScheduler.<>c__DisplayClass10_0`1.b__0()
at System.Threading.Tasks.Task`1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
Create a new fresh universal windows app and install it
It will fix issue with your app.

Windows Azure Error - Could not load file or assembly MFCMIFC80

I have created an Angular/WebAPI/MongoDb project and using StructureMap for dependency injection and I have it published to a private BitBucket account.
I have create an Azure Webapp and set it up to auto deploy whenever I commit a change to my BitBucket repo.
When I run it locally (from Visual Studio) my main page is:
http://localhost:37071/index.html#/
It makes API calls to http://localhost:37071/api/stock?stkSymbol=ORCL successfully.
However, when it is deployed, my page loads successfully at: http://myAzureProject.azurewebsites.net/index.html#/
However, all API calls to: http://myAzureProject.azurewebsites.net/api/stock?stkSymbol=ORCL
Fail with this error message:
Server Error in '/' Application.
Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
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.IO.FileNotFoundException: Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
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.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'MFCMIFC80, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes) +0
System.Reflection.RuntimeAssembly.GetExportedTypes() +21
StructureMap.Graph.TypePool.<.ctor>b__0(Assembly assembly) +10
StructureMap.Util.LightweightCache`2.get_Item(TKey key) +65
StructureMap.Graph.<>c__DisplayClass3.<For>b__2(Assembly x) +37
System.Linq.<SelectManyIterator>d__14`2.MoveNext() +232
StructureMap.StringExtensions.Each(IEnumerable`1 enumerable, Action`1 action) +140
StructureMap.Graph.AssemblyScanner.ScanForTypes(TypePool types, PluginGraph pluginGraph) +128
StructureMap.<>c__DisplayClass2.<RunConfigurations>b__1(AssemblyScanner x) +21
StructureMap.StringExtensions.Each(IEnumerable`1 enumerable, Action`1 action) +131
StructureMap.PluginGraphBuilder.RunConfigurations() +143
StructureMap.PluginGraphBuilder.Build() +13
StructureMap.PipelineGraph.For(Action`1 action) +49
myAzureProject.DependencyResolution.IoC.Initialize() +82
myAzureProject.App_Start.StructuremapMvc.Start() +10
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +192
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +155
WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +57
WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +350
WebActivatorEx.ActivationManager.Run() +78
[InvalidOperationException: The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +547
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +132
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521
[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930568
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36215
I'm not familiar with what MFCMIFC80 is or what I need to do in order to be able to get it deployed to my Azure web app.
Any help would be appreciated.
Thanks!
MFCMIFC80.dll is an MFC library (https://en.wikipedia.org/wiki/Microsoft_Foundation_Class_Library). It most probably is a requirement for your MongoDB drivers. As I do not recall any dependency on MFC for regular Web API als using AngularJS.
You cannot deploy MFC on Azure Web Apps (former Web Sites).
Look for alternative MongoDB drivers which do not have dependencies on MFC.
Another reason for this error could be that in your project you refernece .NET 2.0 assemblies, while your main project targets .NET 4.0. Which may be the case with the MongoDB driver indeed (it may be only compiled against .NET 2.0 and it would cause the issues).
So go through all of your referneces (incl. StructureMap and MongoDB drivers) to make sure that all your refenreced assemblies are targetinng .NET 4.0 and not .NET 2.0.
Note that although .NET 4.0 actually runs in the .NET 2.0 Runtime environment, there still might be issues when referencing .NET 2.0 assemblies from a .NET 4.0 targeted project.
Finally figured it out. In my solution, I have one line to tell structuremap to scan for assemblies from path.
scan.AssembliesFromPath(Environment.CurrentDirectory);
Removing this line resolves the issue.

Resources