473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 3706
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: James | last post by:
Hi I am having some trouble getting a asp page to load. Im a noob to the asp side. I have followed knowledege base Article 301305. I am running 2000 adv, IIS 5.0 I have the following...
4
by: Jacek Dziedzic | last post by:
Hi! First of all, I hope my problem is not too loosely tied to the "standard C++" that is the topic of this group. I have some code that exhibits a strange behaviour: on one computer, where I...
1
by: Michael Evanchik | last post by:
im trying to do a get on a http server and keep appending the return data to a string and then i even tried an array of strings. But very odd things are happening. I am completely missing the...
1
by: Jim Bancroft | last post by:
Hi everyone, I'm running into a problem with my ASP.Net application. I've just created a new aspx page which uses some new components of mine that inherit from ServicedComponent and are...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: joshblair | last post by:
Hello, I am trying to post XML documents to a third party using the HttpWebRequest. This URL uses HTTPS (SSL) but I don't have a client certificate to deal with. Apparently they are using...
2
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...

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.