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

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.

Related

MSDeploy build after win upgrade

I am doing a msdeploy in the Developer Command Prompt (Admin) and after updating to Win 8.1 Pro, I get this error after running the command.
I did not get this error before the update I got another error USER NOT ADMIN to fix this I had to upgrade so I could create a group and add deploy as Admin.
Please forgive any bad formatting first timer.
>..\..\lib\msdeploy\msdeploy -verb:sync -source:package='Package.zip' -dest:contentPath='test.dev',computerName=localhost,userName=deploy,password=xxxx
Error: Exception has been thrown by the target of an invocation. ---> System.Exception: The type initializer for 'Microsoft.Web.Deployment.DeploymentManager' threw an exception. ---> System.Exception: The type initializer for 'Microsoft.Web.Deployment.BuiltInTypesCache' threw an exception. ---> System.Exception: The type initializer for 'Microsoft.Data.Tools.Schema.MsDeploy.MsDeployProviderBaseProviderFactory' threw an exception. ---> System.IO.IOException: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft SQL Server\110\DAC\Bin\Microsoft.Data.Tools.Schema.Sql.dll' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) ---> System.Exception:Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
I believe this part of the error indicates you need to install, repair or uninstall/reinstall the 2012 version of the SQL Server Data Tools:
System.IO.IOException: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft SQL Server\110\DAC\Bin\Microsoft.Data.Tools.Schema.Sql.dll' or one of its dependencies.

Could not find a part of the path 'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'

When i ran the Project ,it shows "Could not find a part of the path 'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'.
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.IO.DirectoryNotFoundException: Could not find a part of the path
'C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\Jellyfish.jpg'.
uploadFile.SaveAs(filePatha);
db.image.Add(image);
db.Entry(image).State = EntityState.Modified;
where's wrong in my code
The exception message: "Could not find a part of the path ..." is the message of the DirectoryNotFoundException.
In order to save a file you have to ensure that the directory exists first!
Run this before you save the file:
if(!Directory.Exists(#"C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\"))
{
Directory.CreateDirectory(#"C:\Users\shyful\Desktop\MvcApp\MvcApp\Person\Upload\");
}

NMath IIS access denied

I have tried using the NMath library on a
ASP.NET 4 web application hosted in IIS. While it works perfectly o the development machine, on the server it throws this exception:
Unable to load DLL 'nmath_native_x86.dll': Access is denied.
(Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
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.DllNotFoundException: Unable to load DLL
'nmath_native_x86.dll': Access is denied. (Exception from HRESULT:
0x80070005 (E_ACCESSDENIED))
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[DllNotFoundException: Unable to load DLL 'nmath_native_x86.dll':
Access is denied. (Exception from HRESULT: 0x80070005
(E_ACCESSDENIED))]
CenterSpace.NMath.Kernel.DotNetBlas.ca985db1fb290841a533a3547ace1ae2b(Int32*
ca9e3f1c0641beace93cb8eb4a27060d6, Double*
cf339080161dff75cfd1b46a10c2eec70, Int32*
c757a2154665e6da4d820f8c504ec2601, Double*
c00a69c4fa5b6d809b68a96ca184dcf79, Int32*
c1565590bf448d2c630952a0391360cc3) +0
CenterSpace.NMath.Kernel.DotNetBlas.copy(Int32 n, DoubleDataBlock x,
Int32 xOffset, Int32 incx, DoubleDataBlock y, Int32 yOffset, Int32
incy) +149 CenterSpace.NMath.Core.DoubleVector.set_Item(Slice
slice, DoubleVector value) +165
While i have read around here that it might be related the the
permissions of the AppPool or something similar, I can't seem to point down the problem. What could it be?!
It could be a couple of options.
1) Is the C++ runtime installed? NMath can't load a native dll without it. See the deployment section here: http://centerspace.net/doc/NMath/user/overview-83427.htm#Xoverview-83427
2) Perhaps you're not configuring NMath correctly? You can do NMathConfiguration.NativeLocation to point to a location. More here:
http://centerspace.net/doc/NMathSuite/ref/html/T_CenterSpace_NMath_Core_NMathConfiguration.htm
Finally, please generate log file using NMathConfiguration.LogLocation. The resulting log file will tell you what's wrong.
Trevor

unable to load cpp dll.The specified module could not be found. (Exception from HRESULT: 0x8007007E)

i am using cpp dll in my application.
and in local it is working fine. when i am trying to call that perticular dll in live, it shows an error of "Unable to load DLL 'Geospot.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
and
Unable to load DLL 'Geospot.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
i am using visual studio 2005. and all configurations are fine.
can anybody solve my problem?
thanking you,

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.

Resources