Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Sudden Error in DNN: Could not load file or assembly Sudden Error in DNN: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider'
Previous
 
Next
New Post
8/17/2006 1:00 PM
 
Hi,

My Configuration is:

Windows Server 2003
Sql Server 2005
DNN: 4.0.3

The site was up and running perfectly yesterday but when I hit it this morning the following error showed up:

Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

Nothing has changed on the server since yesterday.  And checking the \bin directory this file does exist. And the permissions have not changed either. The Network Services user does have access to it.

Thanks for you help.
~cang

Server Error in '/' Application.

Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

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.BadImageFormatException: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)

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 'DotNetNuke.Modules.Survey.SqlDataProvider' 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:

[BadImageFormatException: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)]

[BadImageFormatException: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider, Version=1.0.1841.39609, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32

[ConfigurationErrorsException: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider, Version=1.0.1841.39609, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3479033
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +347
System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +125
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +378

[HttpException (0x80004005): Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider, Version=1.0.1841.39609, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456

[HttpException (0x80004005): Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider, Version=1.0.1841.39609, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3426839
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +149


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

 
New Post
8/18/2006 4:32 AM
 
I assume you did change something you were not aware of, or the server crashed and corrupted the file. Either way, I would try uploading the dll via FTP to fix this problem.

Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
8/24/2006 11:54 AM
 

During that time nothing was changed I only accessed the server via the web browser and made no changes.

The server may have crashed, I'm not certain.

I tried reuploading both dlls and the same problem persists. To be safe I re-uploaded all the dll files for dnn as well. with no luck. Are there any other dll's this module depends on?

Thanks.

 
New Post
8/24/2006 2:45 PM
 

Nothing was changed on the server that I am aware of. 

I reuploaded the dlls for the survey module. This did not work, so I reuploaded all the dnn core dlls as well and that has not helped.

I have turned on the binding log and here is its output:

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = DotNetNuke.Modules.Survey.SqlDataProvider
 (Partial)
LOG: Appbase = file:///C:/DotNetNuke_2/Website/
LOG: Initial PrivatePath = C:\DotNetNuke_2\Website\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\DotNetNuke_2\Website\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5f2e4ce7/dea98c21/DotNetNuke.Modules.Survey.SqlDataProvider.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5f2e4ce7/dea98c21/DotNetNuke.Modules.Survey.SqlDataProvider/DotNetNuke.Modules.Survey.SqlDataProvider.DLL.
LOG: Attempting download of new URL file:///C:/DotNetNuke_2/Website/bin/DotNetNuke.Modules.Survey.SqlDataProvider.DLL.
LOG: Using application configuration file: C:\DotNetNuke_2\Website\web.config
LOG: Using host configuration file: \\?\c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
ERR: Failed to complete setup of assembly (hr = 0x80070003). Probing terminated.

 

thanks

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Sudden Error in DNN: Could not load file or assembly Sudden Error in DNN: Could not load file or assembly 'DotNetNuke.Modules.Survey.SqlDataProvider'


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out