Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tricky  
View profile  
 More options Jun 26 2008, 10:37 am
From: Tricky <trickym...@gmail.com>
Date: Thu, 26 Jun 2008 07:37:19 -0700 (PDT)
Local: Thurs, Jun 26 2008 10:37 am
Subject: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
Hi,

I am trying to make integration test of my application. One of the UI
control is the webbrowser, that has it's own thread for refreshing. It
means the main application is a STA, but the WebBrowser control is not
STA,
that causes the exception below. Are anyways to ignor multithreaded
controls? Thanks.
I.e. NUnit does not throw such exception.

Regards,
Tricky.

The error body:

TestCase 'Test_SubmitCaseDropWorkItem.TestSubmitCaseDropWorkItem'
failed: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot
be instantiated because the current thread is not in a single-threaded
apartment.
System.Threading.ThreadStateException
Message: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot
be instantiated because the current thread is not in a single-threaded
apartment.
Source: System.Windows.Forms
StackTrace:
   at System.Windows.Forms.WebBrowserBase..ctor(String clsidString)
   at System.Windows.Forms.WebBrowser..ctor()
   at SmartClient.Controls.MinimalWebBrowser.InitializeComponent() in
C:\\SmartClient.Controls\WebBrowser\MinimalWebBrowser.Designer.vb:line
24
   at SmartClient.Controls.MinimalWebBrowser..ctor() in C:
\SmartClient.Controls\WebBrowser\MinimalWebBrowser.vb:line 11
   at
SmartClient.Dropzone.UI.CustomizedContentView.InitializeComponent() in
C:\SmartClient.Dropzone.UI\SubmitCaseDrop\Workitems\Drop\SmartParts
\CustomizedContentView.Designer.vb:line 25
   at SmartClient.Dropzone.UI.CustomizedContentView..ctor()     C:
\SmartClient.Controls\WebBrowser\MinimalWebBrowser.Designer.vb  24


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tricky  
View profile  
 More options Jun 26 2008, 12:00 pm
From: Tricky <trickym...@gmail.com>
Date: Thu, 26 Jun 2008 09:00:05 -0700 (PDT)
Local: Thurs, Jun 26 2008 12:00 pm
Subject: Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
I am using the Framework 2.0


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "MbUnit Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;" by Jeff Brown
Jeff Brown  
View profile  
 More options Jun 26 2008, 4:34 pm
From: "Jeff Brown" <jeff.br...@gmail.com>
Date: Thu, 26 Jun 2008 13:34:27 -0700
Local: Thurs, Jun 26 2008 4:34 pm
Subject: RE: MbUnit Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
Add [TestFixture(ApartmentState=ApartmentState.STA)] to your test.

This is now the default in MbUnit v3.

Jeff.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tricky  
View profile  
 More options Jun 27 2008, 4:50 am
From: Tricky <trickym...@gmail.com>
Date: Fri, 27 Jun 2008 01:50:00 -0700 (PDT)
Subject: Re: MbUnit Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
It says 'ApartmentState is not declared'. I added ApartmentState =
System.Threading.ApartmentState.STA.
It looks that there is no such attribute in the version 2.4. What do
you think? Thanks.

On Jun 26, 9:34 pm, "Jeff Brown" <jeff.br...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeff Brown  
View profile  
 More options Jun 27 2008, 7:31 am
From: "Jeff Brown" <jeff.br...@gmail.com>
Date: Fri, 27 Jun 2008 04:31:48 -0700
Local: Fri, Jun 27 2008 7:31 am
Subject: RE: MbUnit Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
I think I might have mispelled it...
It's in there for sure.

Jeff.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tricky  
View profile  
 More options Jun 27 2008, 9:19 am
From: Tricky <trickym...@gmail.com>
Date: Fri, 27 Jun 2008 06:19:03 -0700 (PDT)
Local: Fri, Jun 27 2008 9:19 am
Subject: Re: MbUnit Re: single-threaded apartment (STA); MbUnit-2.4.2.130; WebPanel;
Thanks Jeff. It solved a problem.

On Jun 27, 12:31 pm, "Jeff Brown" <jeff.br...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »