Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

System.IO.FileNotFoundException was unhandled error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Abhishek - 11 Jul 2007 08:26 GMT
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.
Peter Duniho - 11 Jul 2007 08:49 GMT
> 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
Abhishek - 11 Jul 2007 10:33 GMT
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

>> below is the error that I am getting when i run my application.
>>
[quoted text clipped - 30 lines]
>
> Pete
Abhishek - 11 Jul 2007 13:23 GMT
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

>> below is the error that I am getting when i run my application.
>>
[quoted text clipped - 30 lines]
>
> Pete

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.