Hi, I did a server/client program in c# and I couldn't get it started, 'cause when I click "run", this error pops up.
p.s: it's my first time I do server/client in c#/
Need help. Thanks.
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Feb 13, 2011, 7:09 AM EST
Without providing more information we cant help you. List what you are doing and at what point the error getting.
Also, check you are using the latest version of assembly. Remove all the references from bin/.config files etc.
Add the correct assembly version.
Sam HobbsRank #108 · 20.5K reputationPosted Feb 13, 2011, 4:40 PM EST
Marat Beiner20 reputationPosted Feb 14, 2011, 3:33 AM EST
The error occurs ("Could not load file or assembly or one of its dependencies. The given assembly name or codebase was invalid. exception from HRESULT ") when I click the green button "Run" in the toolbar of VS, in order to run the server.
Suthish NairRank #92 · 22.8K reputationPosted Feb 14, 2011, 4:51 AM EST
Try, remove all temporary files.
Marat Beiner20 reputationPosted Feb 14, 2011, 4:58 AM EST
What temporary files?
Suthish NairRank #92 · 22.8K reputationPosted Feb 14, 2011, 5:26 AM EST
The project is developed on which framework?
This issue also occurs when a 1.1 framework project tries to run with 2.0 framework. Some major assembly version get missing.
Also refer msdn
Marat Beiner20 reputationPosted Feb 14, 2011, 5:41 AM EST
I know that I use VS 2008 that's all.
Sam HobbsRank #108 · 20.5K reputationPosted Feb 14, 2011, 10:57 AM EST
As for what version of the .Net Framework that you are using, look in the project properties. The project is probably set to use 3.5 so the version is not likely the problem.
The problem might be difficult to diagnose; especially for someone unfamiliar with .Net and Visual Studio. It is difficult to suggest a way to diagnose the problem. It is probably caused by something you did but it is difficult to guess what that is. You can look at Troubleshooting 1935 and 2908 errors during installation - Aaron Stebner's WebLog but that might not be relevant to your situation and even if it is, it is likely too advanced for you.
Marat Beiner20 reputationPosted Feb 14, 2011, 11:19 AM EST