Server Error in '/' Application in Tridion - web-config

We have site that was working. When we moved to Tridion we get the following error:
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'SecureBinaries' or one of its dependencies. The system cannot find the file specified.
Source Error:
<add verb="*" path="*.doc" type="SecureBinaries.fileHandler, SecureBinaries" />
Source File: *****\web.config Line: 43
Assembly Load Trace: The following information can be helpful to determine why the assembly 'SecureBinaries' could not be loaded.
That is Line 43 above that causes the error. Any ideas on this would be appreciated.

Is the SecureBinaries assembly in the bin folder of your application or in the GAC on the server running the application?
If you add/enable the HKLM\Software\Microsoft\Fusion!EnableLog key the YSOD will show you where the attempt was made to load the SecureBinaries dll.
Cheers
Neil

Related

System.TypeLoadException in IBM.Data.DB2Types.DB2DynArray

I am new to use the DB2. I have added a reference for IBM.Data.DB2 DLL. The Path of the DLL is from X86 directory and also the Local Copy is set to False.
I am using the VisualStudio 2015 with the debug property of is set for x86.
I am able to build the project successfully, but getting following runtime error:
Server Error in '/' Application.
Could not load type 'IBM.Data.DB2Types.DB2DynArray' from assembly 'IBM.Data.DB2, Version=9.7.4.4, Culture=neutral, PublicKeyToken=7c307b91aa13d208'.
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.TypeLoadException: Could not load type 'IBM.Data.DB2Types.DB2DynArray' from assembly 'IBM.Data.DB2, Version=9.7.4.4, Culture=neutral, PublicKeyToken=7c307b91aa13d208'.
Let me know if anyone can help me on it or need any other details to investigate it.
If your code explicitly uses the class DB2DynArray , it looks like IBM removed that class from Db2 starting from V9.7 (i.e. DB2DynArray was available in versions up to V9.5 only).
Note that Db2-LUW V9.5 and V9.7 are no longer supported by IBM (current Db2 for Linux/Unix/Windows version is V11.x).
Consider an alternate solution unless the risks of running an unsupported version are signed-off by the business.
IBM registration is required to download Db2-versions(including fixpack) from this site.

Registration with regasm error

I am asked to register a dll by using regasm but new to it. Here is my questions:
C:\Windows\Microsoft.NET\Framework\v4.030319\regasm XXX.dll/codebase. It says error RA0000: Unable to locate input assembly 'xxx.dll/codebase' or one of its dependencies.
Put a space after the dll, before /codebase.
..\regasm xxx.dll /codebase

"Could not load file or assembly 'TypeMock.Interceptors, Version=0.0.0.0"

We have just upgraded Typemock from 6.0.2.0 to Typemock 7.3.0.0. And we now get the following error at runtime:
[System.IO.FileNotFoundException] = {"Could not load file or assembly 'TypeMock.Interceptors, Version=0.0.0.0, Culture=neutral, PublicKeyToken=0000000000000000' or one of its dependencies. The system cannot find the file specified.":"TypeMock.Interceptors, Version=0.0.0.0, Culture=neutral, Pu...
During debugging I can see that the source throwing it is mscorlib. The mystifying thing is that I have unloaded all of my projects that have references to Typemock.dlls but still get this error. When I choose "suspend mocking" in the Typemock-menu everything works.
In the GAC I can see that Typemock.Interceptors 7.3.0.0 is installed.
Any ideas?
I called TypeMock support, and they confirmed that it was a bug in TypeMock. They sent me a newer version (7.3.2.0) and the issue has now disappeared.

Including Zend library issue

I'm new to Zend. I've download the latest version and followed the instructions to install it but I'm having trouble including the library.
So far I've saved the entire Zend folder to my local host file. Which is the 'sites' folder located in the user folder.
As advised I have altered the php.ini file to include the path of the library as so:
;include_path = ".:/php/includes"
;include_path = ".:/Users/myusername/Sites/ZendFramework20/library"
However when I attempt to run one of the zend demo scripts I get an error:
Warning: require_once(Zend/Registry.php) [function.require-once]: failed to open stream: No such file or directory in /Users/Sumbop/Sites/ZendFramework20/demos/Zend/Wildfire/public/index.php on line 27
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Registry.php' (include_path='.:') in /Users/Sumbop/Sites/ZendFramework20/demos/Zend/Wildfire/public/index.php on line 27
I've searched and tried many things to no avail. How do I get this working? Or find a guide?
Thanks
Your include path is wrong.
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Registry.php' (include_path='.:') in /Users/Sumbop/Sites/ZendFramework20/demos/Zend/Wildfire/public/index.php on line 27
You may use next code (somewhere in index.php - best would be first line) to set it.
set_include_path($pathWhereZendFolderIsLocated . PATH_SEPARATOR . get_include_path());

Failed opening required 'Zend/Config/Exception.php'

I've been working on this project for about two weeks now. I don't understand why now I receive this error:
Warning: require_once(Zend/Config/Exception.php) [function.require-once]: failed to open stream: No such file or directory in /usr/local/zendsvr/share/ZendFramework/library/Zend/Config/Ini.php on line 180
Fatal error: require_once() [function.require]: Failed opening required 'Zend/Config/Exception.php' (include_path='/www/zendsvr/htdocs/TassiWeb/application/../library:/www/zendsvr/htdocs/TassiWeb/library:.:/usr/local/zendsvr/share/ZendFramework/library:/usr/local/zendsvr/share/pear') in /usr/local/zendsvr/share/ZendFramework/library/Zend/Config/Ini.php on line 180
I'm using ZendServer CE into IBMi but others web-application works correctly!
How can solve it?
Does the requested file exist in your Zend Framework folder? The include path etc seem to be correct, so it may just be an accidentally deleted file...