472,988 Members | 3,092 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 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 3684
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.