Answered by:
Direct2D Dependencies on Non Develpment cluster

Question
-
Hello all,
I developed an application in Direct2D and referred Microsoft.WindowsAPICodePack.DirectX.Controls.dll and Microsoft.WindowsAPICodePack.DirectX.dll DLLs.
Development has been done in VS2008. Everything works fine on the development servers. But when I move the DLLs to the Integration (non developement cluster) it fails with following error:
[COMException (0x800736b1): The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)] [FileLoadException: Could not load file or assembly 'Microsoft.WindowsAPICodePack.DirectX.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail. (Exception from HRESULT: 0x800736B1)] 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)
Can anyone please let me know what i have to install as a prerequisite on my non development servers.Wednesday, March 17, 2010 12:17 PM
Answers
-
Hello Eric,
The issue got resolved. I was not required to install any of the redistribuitables on my Win 2008 Servers. I was suppose to build the following two DLLs in release mode as all other DLLs were build by scripts in release mode before deployment:
Microsoft.WindowsAPICodePack.DirectX.Controls.dll
Microsoft.WindowsAPICodePack.DirectX.dll
So that was the catch, a very basic one though but just a simple miss by one of our developers.
Thanks for all your help.
Aman.
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:14 AM
Tuesday, March 30, 2010 9:29 AM -
Could you try installing the the VC++ 2008 SP1 Redistributable Package?
Also those runtimes contain non debug (Relase) dlls, so make sure you're creating a release build.- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Monday, March 29, 2010 8:22 AM
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:16 AM
Wednesday, March 17, 2010 6:07 PM -
Hi,
You may use fuslogvw .exe ( or sxstrace .exe if you are using Vista and later OS) to see the details of this failure.
this article discussed how to diagnose side-by-side failures, hope it can helps.
Sincerely,
Eric
MSDN Subscriber Support in Forum
If you have any feedback of our support, please contact msdnmg@microsoft.com.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Monday, March 29, 2010 8:22 AM
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:17 AM
Thursday, March 18, 2010 1:52 AM
All replies
-
Could you try installing the the VC++ 2008 SP1 Redistributable Package?
Also those runtimes contain non debug (Relase) dlls, so make sure you're creating a release build.- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Monday, March 29, 2010 8:22 AM
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:16 AM
Wednesday, March 17, 2010 6:07 PM -
Hi,
You may use fuslogvw .exe ( or sxstrace .exe if you are using Vista and later OS) to see the details of this failure.
this article discussed how to diagnose side-by-side failures, hope it can helps.
Sincerely,
Eric
MSDN Subscriber Support in Forum
If you have any feedback of our support, please contact msdnmg@microsoft.com.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- Proposed as answer by Michael Sun [MSFT]Microsoft employee, Moderator Monday, March 29, 2010 8:22 AM
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:17 AM
Thursday, March 18, 2010 1:52 AM -
Hi Amandeep,
I'm writing to check the issue status, please feel free to let us know if you have any concern.
Sincerely,
Eric
MSDN Subscriber Support in Forum
If you have any feedback of our support, please contact msdnmg@microsoft.com.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Monday, March 22, 2010 7:35 AM -
Hello Eric,
The issue got resolved. I was not required to install any of the redistribuitables on my Win 2008 Servers. I was suppose to build the following two DLLs in release mode as all other DLLs were build by scripts in release mode before deployment:
Microsoft.WindowsAPICodePack.DirectX.Controls.dll
Microsoft.WindowsAPICodePack.DirectX.dll
So that was the catch, a very basic one though but just a simple miss by one of our developers.
Thanks for all your help.
Aman.
- Marked as answer by SamAgain Wednesday, March 31, 2010 3:14 AM
Tuesday, March 30, 2010 9:29 AM