System.IO.FileNotFoundException was unhandled error

A

Abhishek

Hi All,

below is the error that I am getting when i run my application.

this application is using IPC for two processes to communicate with each
other. the error is happening when the client is trying to send the message
to the server. The server has been created successfully can it can connect
to it cause the error i am not getting an error saying that it cant find the
ipc server or it cant find the port.

System.IO.FileNotFoundException was unhandled
Message="Could not load file or assembly 'IpcServer, Version=1.0.0.1,
Culture=neutral, PublicKeyToken=9f8b8d36f87dd0b4' or one of its
dependencies. The system cannot find the file specified."
Source="mscorlib"
FileName="IpcServer, Version=1.0.0.1, Culture=neutral,
PublicKeyToken=9f8b8d36f87dd0b4"
FusionLog="WRN: Assembly binding logging is turned OFF.\r\nTo enable
assembly bind failure logging, set the registry value
[HKLM\\Software\\Microsoft\\Fusion!EnableLog] (DWORD) to 1.\r\nNote: There
is some performance penalty associated with assembly bind failure
logging.\r\nTo turn this feature off, remove the registry value
[HKLM\\Software\\Microsoft\\Fusion!EnableLog].\r\n"
StackTrace:
Server stack trace:
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String
codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark&
stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.Reflection.Assembly.InternalLoad(String assemblyString,
Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean
forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.LoadType(String
typeName, String assemblyName)
at
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.GetServerTypeForUri(String
URI)
at
System.Runtime.Remoting.RemotingConfigHandler.GetServerTypeForUri(String
URI)
at
System.Runtime.Remoting.RemotingServices.GetServerTypeForUri(String URI)
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders,
Stream& responseStream)
Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at SharedLibrary.ISharedMessage.SendMessage(String message, String
sender)
at IpcClient.Program.Main(String[] args) in C:\Documents and
Settings\user\Desktop\remoting\IpcClient\IpcClient\Program.cs:line 34
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

thanks
Abhishek.
 
P

Peter Duniho

below is the error that I am getting when i run my application.

this application is using IPC for two processes to communicate with each
other. the error is happening when the client is trying to send the
message
to the server.

Well...

Looks like you're using something called "IpcServer", it's being loaded
dynamically at runtime, and the executable file can't be found (dll or
exe?).

"IPC" is a general term for "inter-process communication". In one sense,
it's redundant to say "using IPC for two processes to communicate with
each other". In another sense, that phrase is entirely too vague as it
doesn't actually explain what IPC mechanism you're using.

A search on MSDN for "ipcserver" doesn't turn up much, and nothing that is
obviously related to what you're doing or what your problem is.
The server has been created successfully can it can connect
to it cause the error i am not getting an error saying that it cant find
the
ipc server or it cant find the port.

You seem to be trying to tell us something about the server can, or maybe
can't, connect, and about an error that you are getting, or maybe you are
saying that you don't get an error instead of the exception. It's hard to
tell, because the sentence is so poorly constructed. You may want to
clarify that, if you think whatever you were trying to tell us is
important there.

Pete
 
A

Abhishek

Hi Peter,

hi and thanks for the reply ipcserver is a dll that is being copied into the
debug directory of my client project (the project that is giving the error.)
everytime i build it. Also it is present in a directory how's path has been
added to the Environment Variables path as well.

Regards
abhi
 
A

Abhishek

Hi Peter,

i needed to dump the files into the directory with the exe calling the dlls
were for it to work. Even if these files are available to the entire system
through a environment variable\system path it gives this error

thanks for the help :)

Regards
Abhishek
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top