open function in ChannelFactory gives File not found exception. using Biztalk adapter - biztalk

I am connecting my local system with SAP server using BizTalk adapter and also using Microsoft.servicemodel.channels to open the connection in sap to process XML as input file.
SAPBinding binding = new SAPBinding();
binding.ReceiveTimeout = TimeSpan.MaxValue;
binding.SendTimeout = TimeSpan.MaxValue;
binding.EnableBusinessObjects = true;
binding.EnableSafeTyping = true;
EndpointAddress address = new EndpointAddress(SAPConnectionString);
ChannelFactory<IRequestChannel> factory = new ChannelFactory<IRequestChannel>(binding, address);
// add credentials
factory.Credentials.UserName.UserName = SAPUserName;
factory.Credentials.UserName.Password = SAPPassword;
// Open client
factory.Open(TimeSpan.MaxValue);
Factory.open cannot open the connection and it through an exception as A specified module could not be found, (Exception from HRESULT : 0x8007007E)
Kindly please help me
thanks in advance.

The error message suggests there is a dependency on an assembly it is unable to find. Please note this is not something specific to WCF or the SAP adapter.
Googling for "HRESULT: 0x80070007E" I found:
C# Unable to load DLL (Module could not be found HRESULT: 0x8007007E)
In David Heffernan's answer he recommends using tools like Dependency Walker to help debug dependency issues.

Related

rpc error: code = NotFound desc = failed to pull and unpack image "mcr.microsoft.com/dotnet/framework/sdk:4.8":

When i create bit-bucket pipeline ASP.Net Based project and found below error.
rpc error: code = Not-found desc = failed to pull and unpack image "mcr.micro-soft.com/dotnet/framework/SDK:4.8": no match for platform in manifest: not found
I have tried these images that doesn't support.
Can anyone guide me that which docker image is supported in ASP.Net framework based project.
Thanks in Advance.

System.Runtime.InteropServices.COMException: 'The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))'

I am working with zkemkeeper 64 bit. I am having an error When i ccall
bool a = axCZKEM1.Connect_Net(IPAddress, Port);
axCZKEM1 is my zkemkeeper.CZKEMClass object.
The following error i am getting.
System.Runtime.InteropServices.COMException: 'The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))'
Can you please help me with this ?
It is because COM dll files are not registered. you must have something like install.bat, run it in admin mode. Or find the Dll files from the download SDK folder, register all of them, then run the application. Problem will be resolved.

Acrobat AcroExch.App member not found error jscript ActiveXObject

I have a simple jscript program using Adobe Acrobat's Interapplication Communication API.
var AcroApp = new ActiveXObject("AcroExch.App");
AcroApp.Exit;
I receive the following error executing the second line:
Member not found. (Exception from HRESULT: 0x80020003 (DISP_E_MEMBERNOTFOUND))
When AcroApp is instantiated, it shows as an ActiveXObject. However, I'm stumped, any ideas?
Change:
AcroApp.Exit;
to
AcroApp.Exit();
Not sure why

Is showing the Exception StackTrace useful in a RELEASE assembly or only a DEBUG .dll

I've gone to some lengths to improve the error handling in my webservice - in particular, showing the StackTrace as in this example:
catch (Exception ex)
{
EventLog log = new EventLog();
log.Source = g_EventSource;
StringBuilder msg = new StringBuilder("Exception in UpdateRecord method has been logged:");
msg.Append(Environment.NewLine);
msg.Append("passedURL="); msg.Append(passedURL);
msg.Append(Environment.NewLine);
msg.Append(ex.Message);
msg.Append(Environment.NewLine);
msg.Append(ex.Source);
msg.Append(Environment.NewLine);
msg.Append(ex.StackTrace);
log.WriteEntry(msg.ToString(), EventLogEntryType.Error, 100);
return msg.ToString();
}
My question is what will happen when I publish my webservice having compiled it as RELEASE instead of DEBUG? I only publish the .dll and the web.config (no source) now when I compile in DEBUG mode but when an error is logged the StackTrace points back to line numbers of file(s) in my development machine like:
C:\Documents and Settings\johna\My Documents\Visual Studio 2008\Projects\ etc.
In short, will a RELEASE mode DLL still show the above sort of stack trace? I think it will but not sure; my system administrator has raised this question as we prepare for a move into another level of deployment.
You can have line numbrers in Stack Trace messages but you need to include .PDB files. No problems even in release mode.

Binding Microsoft.Web.DynamicData assembly at runtime failing

I've got a project using DynamicData that was wrote by somebody else. Every time i try debbuging it, I get the message I've attached at the bottom
I've already tried deploying the DynamicData dll to GAC, and throwing it into the bin folder, chceking the assemblies full names, installing again VS SP1, and .NET Framework SP1, and chceking the logs in Fuslogvw.
I've run out of ideas at this point. Could anybody help me, or at least suggest a new direction of searching for the solution ? Thx in advance.
The error message I get :
=== Pre-bind state information ===
LOG: User = DOMAIN\user
LOG: DisplayName = Microsoft.Web.DynamicData
(Partial)
LOG: Appbase = file:///C:/AppBase/
LOG: Initial PrivatePath = C:/AppBase/bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:/AppBase/bin/web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: The same bind was seen before, and was failed with hr = 0x80070002.
You might be able to use the AppDomain.AssemblyResolve event to learn more about the Assembly that's being requested. You can check that the version numbers and everything else match. If you have the dependency already loaded, then you can just return it from the event handler. I've included some sample code in this answer.

Resources