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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marat BeinerPosted Feb 14, 2011, 4:19 PM
Sam HobbsPosted Feb 14, 2011, 3:57 PM
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 BeinerPosted Feb 14, 2011, 10:41 AM
I know that I use VS 2008 that's all.
Suthish NairPosted Feb 14, 2011, 10:26 AM
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 BeinerPosted Feb 14, 2011, 9:58 AM
What temporary files?
Suthish NairPosted Feb 14, 2011, 9:51 AM
Try, remove all temporary files.
Marat BeinerPosted Feb 14, 2011, 8:33 AM
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.
Sam HobbsPosted Feb 13, 2011, 9:40 PM
Suthish NairPosted Feb 13, 2011, 12:09 PM
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.