cancel
Showing results for 
Search instead for 
Did you mean: 

SAP.Middleware.Connector.RfcDestinationManager threw an exception

Former Member
0 Kudos

I have developed an application using VB in Visual Studio 2010 and NCO ver 3.0.0.42 and it works great on my development machine. I have deployed this application onto approx 100 machines including Citrix based zero clients , laptops and desktops and virtually all of them work no problem.

All the machines are running XP (32bit) and are built from a standard image .

However there are approx 12 machines hat give the above error with the following details :

+See the end of this message for details on invoking+
 
+just-in-time (JIT) debugging instead of this dialog box.+

+************** Exception Text **************+
+System.TypeInitializationException: The type initializer for 'SAP.Middleware.Connector.RfcDestinationManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'SAP.Middleware.Connector.RfcConfigParameters' threw an exception. ---> System.IO.FileLoadException: Could not load file or assembly 'sapnco_utils, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)+
+File name: 'sapnco_utils, Version=3.0.0.42, Culture=neutral, PublicKeyToken=50436dca5c7f7d23' ---> System.Runtime.InteropServices.COMException (0x800736B1): This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)+
   +at SAP.Middleware.Connector.RfcConfigParameters..cctor()+


   +--- End of inner exception stack trace ---+
   +at SAP.Middleware.Connector.RfcConfigParameters.Initialize()+
   +at SAP.Middleware.Connector.RfcDestinationManager..cctor()+
   +--- End of inner exception stack trace ---+
   +at SAP.Middleware.Connector.RfcDestinationManager.RegisterDestinationConfiguration(IDestinationConfiguration config)+
   +at SAP_NCO_test_1.RibbonForm1.RibbonForm1_Load(Object sender, EventArgs e)+
   +at System.EventHandler.Invoke(Object sender, EventArgs e)+
   +at System.Windows.Forms.Form.OnLoad(EventArgs e)+
   +at DevExpress.XtraEditors.XtraForm.OnLoad(EventArgs e)+
   +at System.Windows.Forms.Form.OnCreateControl()+
   +at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)+
   +at System.Windows.Forms.Control.CreateControl()+
   +at System.Windows.Forms.Control.WmShowWindow(Message& m)+
   +at System.Windows.Forms.Control.WndProc(Message& m)+
   +at System.Windows.Forms.ScrollableControl.WndProc(Message& m)+
   +at System.Windows.Forms.ContainerControl.WndProc(Message& m)+
   +at System.Windows.Forms.Form.WmShowWindow(Message& m)+
   +at System.Windows.Forms.Form.WndProc(Message& m)+
   +at DevExpress.XtraEditors.XtraForm.WndProc(Message& msg)+
   +at DevExpress.XtraBars.Ribbon.RibbonForm.WndProc(Message& msg)+
   +at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)+
   +at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)+
   +at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)+

Does anybody have any ideas what could be wrong ??

Thanks

Kev

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I managed to find the issue using a tool called dependency walker .

The sapnco_utils.dll has a dependency on the Visual C 2005 runtime files and they were no on the machines that didnt work.

I installed the Visual C++ 2005 Redistributable SP1 package and it now works .

Kev