Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help with DNN moveHelp with DNN move
Previous
 
Next
New Post
10/23/2017 12:38 AM
 

I moved a DNN 7.3.2 site from a Windwows 2008r2 server with SQL Server 2008r2, IIS 7.5 and ASP.NET 4.0.30319.42000.

I moved to a Windows 2012 Standard server, SQL Server, SQL Server 2012, IIS 8, ASP.NET 4.0.30319.42000.

On the new server, the site runs, but every module fails to load with a message similar to this:

 

Error: is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent' threw an exception. ---> System.Security.SecurityException: The source was not found, but some or all event logs could not be searched. To create the source, you need permission to read all event logs to make sure that the new source name is unique. Inaccessible logs: Security. at System.Diagnostics.EventLog.FindSourceRegistration(String source, String machineName, Boolean readOnly, Boolean wantToCreate) at System.Diagnostics.EventLog.SourceExists(String source, String machineName, Boolean wantToCreate) at System.Diagnostics.EventLogInternal.VerifyAndCreateSource(String sourceName, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type) at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.PerformanceCounterInstances.ReportCounterFailure(String message) at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.PerformanceCounterInstances..ctor(String categoryName, String counterName, Boolean createNewInstance) at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.InstrumentedEvent.AddPerformanceCounter(String category, String[] counterNames, Boolean createNewInstance) at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.InstrumentedEvent.Initialize(String counterCategory, String[] counterNames, Boolean createNewInstance, String eventLogSource, EventLogIdentifier[] eventIds) at Microsoft.Practices.EnterpriseLibrary.Common.Instrumentation.InstrumentedEvent..ctor(String counterCategory, String[] counterNames, Boolean createNewInstance, String eventLogSource, EventLogIdentifier[] eventIds) at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataServiceEvent..ctor(String[] counterNames, EventLogIdentifier[] eventLogIds) at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent..ctor(String[] counterNames, EventLogIdentifier[] eventLogIDs) at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent..cctor() --- End of inner exception stack trace --- at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataConnectionFailedEvent.Fire(String connectionString) at Microsoft.Practices.EnterpriseLibrary.Data.Instrumentation.DataInstrumentationFacade.ConnectionFailed(String connectionString) at Microsoft.Practices.EnterpriseLibrary.Data.Database.OpenConnection() at Microsoft.Practices.EnterpriseLibrary.Data.Database.ExecuteReader(DBCommandWrapper command) at TAC.DNN.Modules.XYZSQL.SQLDataProvider.SqlClient.SqlXYZ_contentProviderBase.GetByModuleID(TransactionManager transactionManager, Int32 moduleID, Int32 start, Int32 pageLength) at TAC.DNN.Modules.XYZSQL.SQLDataProvider.Bases.XYZ_contentProviderBase.GetByModuleID(Int32 moduleID) at TAC.DNN.Modules.TAC_XYZContent.TAC_XYZContent.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

 

The connection strings use the "sa" account, so there should be no permission issue, but this message seems to be all about permission.

 

Can anyone help?





Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
10/23/2017 3:13 PM
 

Joe, is this a custom module throwing this error?  It looks like they are using the EnterpriseLibrary, which can have all sorts of issues with security.  Though it appears to be a database permission issue, it may very well be a DLL permissions issue.  Is the site running under a dedicated app pool?  If so, does that user have the appropriate file/folder permissions?



nvisionative, Inc.
Corporate Website  |  Facebook Page  |  Twitter Page
 
New Post
10/23/2017 9:00 PM
 
Yes, one of a number of custom modules, about which I know nothing and on which the site is built.

This runs with a custom app pool, and the identity has full permissions on the directory.

What else should I know?

(The site otherwise runs just fine, including all of the admin and host pages and modules.)



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
10/23/2017 9:25 PM
 
Here is an interesting thread on a very similar issue. http://geekswithblogs.net/shahed/arch...


nvisionative, Inc.
Corporate Website  |  Facebook Page  |  Twitter Page
 
New Post
10/23/2017 9:28 PM
 
Joe, by the way, the EventLog in this trace stack is not referring to the DNN EventLog. Does this server have earlier versions of .NET installed? If not, that could be the problem. If memory serves correctly, this library is from .NET 1.1. :)


nvisionative, Inc.
Corporate Website  |  Facebook Page  |  Twitter Page
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Help with DNN moveHelp with DNN move


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out