Deployment + Assemblies

Sep 15, 2008 at 11:22 AM
Hello,

I wanted to deploy the version 2.5 from the source code. I did first the installation of the Enterprise libraries and it works fine (the test mentioned in the document). Then I deployed my new compilation of the Faceted search and I had/have an error when I try to deploy the solution on my webApp. After hours, I said well let's start with the solution provided on CodePlex an din fact, I have the same error: (so for me it was the same message, the key is just different).

Do you have an idea why the default package does not work on my environment? How can I check these dependencies?

Thanks

Feature '4ad6146d-6ada-4931-ab81-0e179de7008e' could not be installed because the loading of event receiver assembly "Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009" failed: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009'
   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 Microsoft.SharePoint.Administration.SPFeatureDefinition.get_ReceiverObject()

=== Pre-bind state information ===
LOG: User = TEST-NMCORP\mossa2
LOG: DisplayName = Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\36740\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\36740\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: Post-policy reference: Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5a83cade/790a07e1/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5a83cade/790a07e1/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5a83cade/790a07e1/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/5a83cade/790a07e1/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/36740/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.

Developer
Sep 15, 2008 at 1:29 PM
Hello there,

Many thanks for your email.  The first thing to do is get back to basics and remove whatever version of Faceted Search you currently have deployed.

Please can you remove the current Faceted Search solution, ensure all web parts are deleted from the web part gallery, all features are deactivated, delete the Faceted Search folder from Features folder on the filesystem (12 hive) and all associated files and ensure there are no references to the Faceted Search assemblies in your web.config.  After then, recycle your application pool.  This is somewhat overkill, but it will certainly ensure that you are left with a clean system and that there is no combination of residual files from a) your own development version of Faceted Search and b) the official version - a combination which will surely cause unforseen problems.

From this point - could you please reinstall the official release from CodePlex and update this thread on what happens?

Thanks,

Shaun O'Callaghan
Sep 15, 2008 at 3:15 PM
Edited Sep 15, 2008 at 3:15 PM
Thanks Shaun,

So I did what you said and no luck with the OTB Codeplex code.

So what I did, I turned on the fusion log, restarted everything and I saw of course many files and on is interesting:

Why there is lookup to the GAC?

Everything is fine until this file: 

Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009.HTM

<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (9/15/2008 @ 8:14:12 AM) ***

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.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = EALAB\GL-SP-SVC001
LOG: DisplayName = Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: AppName = 1102d542
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\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: Post-policy reference: Microsoft.SharePoint.Portal.ExtendedSearch.Receiver, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009
LOG: GAC Lookup was unsuccessful.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/7877e645/1102d542/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/7877e645/1102d542/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.DLL.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/7877e645/1102d542/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/7877e645/1102d542/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: Attempting download of new URL file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/_app_bin/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver/Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.EXE.
LOG: All probing URLs attempted and failed.

</pre></html>

Then System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.HTM

<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (9/15/2008 @ 8:14:12 AM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = EALAB\GL-SP-SVC001
LOG: DisplayName = System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: AppName = 1102d542
Calling assembly : Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\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: Post-policy reference: System.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Reusing an assembly instance that was previously loaded (C:\WINDOWS\assembly\GAC_MSIL\System.Management\2.0.0.0__b03f5f7f11d50a3a\System.Management.dll).

</pre></html>

VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.HTM

<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (9/15/2008 @ 8:14:13 AM) ***

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.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = EALAB\GL-SP-SVC001
LOG: DisplayName = VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: AppName = 1102d542
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\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: Post-policy reference: VJSharpCodeProvider, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070002).

</pre></html>

WhereRefBind!Host=(LocalMachine)!FileName=(Microsoft.SharePoint.Portal.ExtendedSearch.dll).HTM

<meta http-equiv="Content-Type" content="charset=unicode-1-1-utf-8"><!-- saved from url=(0015)assemblybinder: --><html><pre>
*** Assembly Binder Log Entry  (9/15/2008 @ 8:14:12 AM) ***

The operation was successful.
Bind result: hr = 0x0. The operation completed successfully.

Assembly manager loaded from:  c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
Running under executable  c:\windows\system32\inetsrv\w3wp.exe
--- A detailed error log follows.

=== Pre-bind state information ===
LOG: User = EALAB\GL-SP-SVC001
LOG: Where-ref bind. Location = C:\WINDOWS\Temp\solution-5101d25c-4eed-45e8-b7ce-e40e727515bf\Microsoft.SharePoint.Portal.ExtendedSearch.dll
LOG: Appbase = file:///C:/Inetpub/wwwroot/wss/VirtualDirectories/15490/
LOG: Initial PrivatePath = C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\bin
LOG: Dynamic Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: Cache Base = c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\7877e645
LOG: AppName = 1102d542
Calling assembly : (Unknown).
===
LOG: This is an inspection only bind.
LOG: Using application configuration file: C:\Inetpub\wwwroot\wss\VirtualDirectories\15490\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: Attempting download of new URL file:///C:/WINDOWS/Temp/solution-5101d25c-4eed-45e8-b7ce-e40e727515bf/Microsoft.SharePoint.Portal.ExtendedSearch.dll.
LOG: Assembly download was successful. Attempting setup of file: C:\WINDOWS\Temp\solution-5101d25c-4eed-45e8-b7ce-e40e727515bf\Microsoft.SharePoint.Portal.ExtendedSearch.dll
LOG: Entering run-from-source setup phase.
LOG: Assembly Name is: Microsoft.SharePoint.Portal.ExtendedSearch, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a646907c4a695009
LOG: Binding succeeds. Returns assembly from C:\WINDOWS\Temp\solution-5101d25c-4eed-45e8-b7ce-e40e727515bf\Microsoft.SharePoint.Portal.ExtendedSearch.dll.

</pre></html>

 

Developer
Sep 16, 2008 at 9:03 AM

Hrm, strange.

Please could you manually copy Microsoft.SharePoint.Portal.ExtendedSearch.Receiver.dll into the GAC?  Rename the .wsp file to a .cab so you can open it in an archive manager and grab the DLL.  Also, please set Full Trust in your web.config to disregard any potential security/permissions errors.


Please can you post a follow up when you have attempted the above?

Kind Regards,

Shaun O'Callaghan

Sep 16, 2008 at 8:33 PM
Well I tested and it works if I put the dll in GAC, I can deploy the solution to a webApp... welll it is weird as I should not deploy my dll (or the codeplex dlls - I tested both) within the GAC
Developer
Sep 16, 2008 at 11:07 PM
Hi,

Many thanks for your follow up message.  I'm not sure of your individual configuration/environment, and I'm happy to talk about that with you if needed to resolve any specific problems.

Kind Regards,

Shaun O'Callaghan