471,325 Members | 1,233 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

trouble with AsyncState

Hi there,

my line of code "private AsyncState State;" returns the error:

Error 1 The type or namespace name 'AsyncState' could not be found (are you
missing a using directive or an assembly reference?) C:\Dokumente und
Einstellungen\Pascal\Lokale Einstellungen\Anwendungsdaten\Temporary
Projects\Mailprogramm\Form1.cs 27 17 Mailprogramm

although I have inserted system.Runtine.Remoting.Messaging.

I am using the C# Express version.

What is wrong??

Pascal
Dec 7 '05 #1
4 3635
As well as adding the reference have you added a using clause at the top
of the code file.

ie

using System.Runtime.Remoting.Messaging.

Also I note that in your example system is not capitalised. C# is case
sensitive so your must spell System with the capital. system and System
are two different references to C#

Cheers

Simon

Pascal Schmidt-Volkmar wrote:
Hi there,

my line of code "private AsyncState State;" returns the error:

Error 1 The type or namespace name 'AsyncState' could not be found (are you
missing a using directive or an assembly reference?) C:\Dokumente und
Einstellungen\Pascal\Lokale Einstellungen\Anwendungsdaten\Temporary
Projects\Mailprogramm\Form1.cs 27 17 Mailprogramm

although I have inserted system.Runtine.Remoting.Messaging.

I am using the C# Express version.

What is wrong??

Pascal

Dec 7 '05 #2
Pascal,

I don't see AsyncState clas in System.Runtime.Remoting.Messaging neither in
any other namespace in the .NET framewrok. There is AsyncResult class
though. There is AsyncState property, but not class.

Are you sure this is the class you want to use?
--

Stoitcho Goutsev (100) [C# MVP]

"Pascal Schmidt-Volkmar" <pa***********@tauth.com> wrote in message
news:er****************@TK2MSFTNGP09.phx.gbl...
Hi there,

my line of code "private AsyncState State;" returns the error:

Error 1 The type or namespace name 'AsyncState' could not be found (are
you missing a using directive or an assembly reference?) C:\Dokumente und
Einstellungen\Pascal\Lokale Einstellungen\Anwendungsdaten\Temporary
Projects\Mailprogramm\Form1.cs 27 17 Mailprogramm

although I have inserted system.Runtine.Remoting.Messaging.

I am using the C# Express version.

What is wrong??

Pascal

Dec 7 '05 #3
Ah. Doh. Sorry I should have checked that.
Stoitcho Goutsev (100) [C# MVP] wrote:
Pascal,

I don't see AsyncState clas in System.Runtime.Remoting.Messaging neither in
any other namespace in the .NET framewrok. There is AsyncResult class
though. There is AsyncState property, but not class.

Are you sure this is the class you want to use?

Dec 7 '05 #4
Hi Stoitcho,

you are right, I made a mistake. It's not a class of System... , it is
self-made and I forgot to include it...

Thanks anyway!

Pascal
Dec 7 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jacek Dziedzic | last post: by
1 post views Thread by Michael Evanchik | last post: by
1 post views Thread by Jim Bancroft | last post: by
6 posts views Thread by Daniel Walzenbach | last post: by
reply views Thread by mrchatgroup | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.