Ask the Expert

Getting error: 'Meta data file 'System.Net.dll' could not be found

I have installed Visual C# .NET compiler version 7.009466 and Microsoft .NET Framework version 1.0.3705. When I am compiling a program named DNSApp.cs with the following command, it gives a cs0006 error. The error statement is 'Meta data file 'System.Net.dll' could not be found. The compilation command is: csc /r:Syste.Net.dll /out: DNSApp.exe DNSApp.cs.
System.Net.dll does not exist. System.Net namespace lives in the System.dll assembly. Therefore, you should use: csc /r:System. dll /out: DNSApp.exe DNSApp.cs.

This was first published in January 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: