SharePoint web application error
Dear All, I have transferred a web application with content database from one MOSS machine to another. when I try to run the application it gives the following error: Server Error in '/' Application.-------------------------------------------------------------------------------- The specified module could not be found. (Exception from HRESULT: 0x8007007E) 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: The specified module could not be found. (Exception from HRESULT: 0x8007007E) 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: [FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0 System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +43 System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +127 System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +142 System.Reflection.Assembly.Load(String assemblyString) +28 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46 [ConfigurationErrorsException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +613 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +203 System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +105 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178 System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +54 System.Web.Compilation.CodeDirectoryCompiler.GetCodeDirectoryAssembly(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories, Boolean isDirectoryAllowed) +8809426 System.Web.Compilation.BuildManager.CompileCodeDirectory(VirtualPath virtualDir, CodeDirectoryType dirType, String assemblyName, StringSet excludedSubdirectories) +128 System.Web.Compilation.BuildManager.CompileResourcesDirectory() +31 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +304 [HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)] System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +58 System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +512 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +729 [HttpException (0x80004005): The specified module could not be found. (Exception from HRESULT: 0x8007007E)] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8890735 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259Does anyone know about this error: please help me out?Thanks in AdvanceSami
March 3rd, 2010 11:43am

Sami,please check first whether all features (on site/site collection/farm level) that were used on your source site are deployed on your target site, too. The following part of your stacktrace indicates that an assembly could not be loaded: Exception Details: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) 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:[FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)] System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0You can also check trying to open your default.aspx by SPD and figuring out which error is thrown there.
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 12:05pm

Dear Markus,Thanks for your reply.All the features on the target and source machine are the same but I tried to open the site in SharePoint Designer it gives me an error stating:"The folder http://mysiteurl isn't accessible. The folder may be located in a unavaliable location, protected with password or the filename contains / or \"Please suggest me some other solution if you have any?Thanks,Sami
March 3rd, 2010 4:01pm

Go into Central Administration and make sure that "User Permissions for Web Application" and the permission option titled "Use Remote Interfaces - Use SOAP, Web DAV, or SharePoint Designer interfaces to access the Web site" is checked. Same goes with Central Administration -> Application Management ->Authentication Providers where "Enable Client Integration" should be checked.Now try again opening your site (WITHOUT default.aspx in the URL).Are you also sure that the same features are ACTIVATED on both your source as well as on the target web application/site level?
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 4:43pm

Dear Markus,Both the options which you have stated in your reply are checked. Just to let you know that I have to transfered the web app from on server Farm to another in Such a manner that I have taken backup of the content database from from development server and have attached the database on the new production server beacuse the backup and restore option was not restoring the content database.Then I created a new web application and used that content database for it. Since the site was using publishing feature on the dev server therefore I have created the new web app and site collection using the Publishing->Colloboration portal template on the new server.Then I run the restore process and the site was restored and I didn't have to care about the content database because I have already transferrd it through SQL Server.Other than that I have also copied the dlls from the bin folder of the dev server to bin folder of the newly created web app.Please let me know of further suggestions? Thats a life saver task for me?Thanks and Regards,Sami
March 3rd, 2010 5:41pm

your target web app, does it use client integration or form based authentication? If the last one, switch it temporarly to integrated authentication.Now try again opening your site (WITHOUT default.aspx in the URL), in this formhttp://server/siteWhat does your SPD shows to you?
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 6:19pm

I have noted that in source web application I have three authentication providers i.e . for the default zone I have a membershipprovider name which is based on form based authentication while for the Intranet and Extranet zone the membership provider name is just windows. While in the destination I just have one default zone and the membership provider name is windows. I tried to change the authentication provider name to forms based while giving it the same name as given in the source app but still no luck. Should I extend my new web app to include the two zone with the provider name of windows against it? and Why it is not picking these extended web app and zones while I have restored the site from central administration backup and restore capability. Any suggestions?Besides that the spd gives the same previous error.Thanks,Sami
March 4th, 2010 2:46pm

Sami Khan,seems like that error which you provided in original post was taken from event log. Unfortunately it doesn't show name of missing assembly. In order to determine what exact assembly is missing you can do the following:1. First of all see sharepoint logs located in 12/logs folder. These logs can contain name of missing assembly. Most probably here you will have several log files. See log file which corresponds to datetime of occured error, open it and try to search string "Assembly._nLoad". If you will find occurences of this string then most probably you will find assembly name in near lines2. If 1st approach will not give results - try to use Assembly Binding Log Viewer (Fuslogvw.exe) - http://msdn.microsoft.com/en-us/library/e74a18c4(VS.71).aspx. It will show you all errors occured during .net assemblies bindingshttp://sadomovalex.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 4th, 2010 5:29pm

Thank for your reply. After running the Fuslogvw.exe..The following log entry was returned:The operation failed.Bind result: hr = 0x80070002. The system cannot find the file specified.Assembly manager loaded from: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dllRunning under executable c:\windows\system32\inetsrv\w3wp.exe--- A detailed error log follows. === Pre-bind state information ===LOG: User = MOHE\UltimusWFLOG: DisplayName = VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified)LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\4031\binLOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5aa53717LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5aa53717LOG: AppName = 2b850c99Calling assembly : (Unknown).===LOG: This bind starts in default load context.LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\4031\web.configLOG: Using host configuration file: \\?\c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet.configLOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.LOG: Post-policy reference: VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3aLOG: GAC Lookup was unsuccessful.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5aa53717/2b850c99/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5aa53717/2b850c99/VJSharpCodeProvider/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/bin/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/bin/VJSharpCodeProvider/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/_app_bin/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/_app_bin/VJSharpCodeProvider/VJSharpCodeProvider.DLL.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5aa53717/2b850c99/VJSharpCodeProvider.EXE.LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5aa53717/2b850c99/VJSharpCodeProvider/VJSharpCodeProvider.EXE.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/bin/VJSharpCodeProvider.EXE.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/bin/VJSharpCodeProvider/VJSharpCodeProvider.EXE.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/_app_bin/VJSharpCodeProvider.EXE.LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/4031/_app_bin/VJSharpCodeProvider/VJSharpCodeProvider.EXE.LOG: All probing URLs attempted and failed.From where How I can found which assemblies are not bound?Waiting for your response on this.Thanks,Sami
March 7th, 2010 3:02pm

I have found out that there were lot of system dlls missing on my machine.. I have reinstalled the widows OS and my SharePoint Sites are up and running again.
Free Windows Admin Tool Kit Click here and download it now
March 24th, 2010 4:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics