Can not create an object for my c# form dll which has an ActiveX control

I want to create an object in teststand for my C# form dll which has an ActiveX Control . but the error says ActiveX control can not be instantiated because the current thread is not in a single-threaded apartment. can someone help to solve the problem?
Thanks.

Two options:
1) put the step in a subsequence and use the sequence call "New thread" option with the advanced setting "Use single-threaded Apartment". Put a wait step immediately after the sequence call to wait for the new thread.
2) Inside of your dll, using .NET APIs create a new thread initialized as STA and call your code from that. Have the original thread wait for the new thread to finish running your dialog code.
Hope this helps,
-Doug

Similar Messages

  • Run-time error '429':Active X component can not create an object

    Hi Folks,
    I am using some VBA code to run logic in BPC for Excel. When i try to click on VBA button, It's giving the below error.However when i am trying to execute same from server it is working fine. Accessing from BPC client only we are facing this problem.
    Code have no issues. Is there any specific thing need to mentioned in client when we use VBA programming? Basically we used the VBA program to create the id's in BPC for Excel. So that it will automatically created on fly. Testing was fine interms of working in Server.
    " Run-time error '429':Active X component can not create an object ."

    Hi,
    Are you trying to add a member into the dimension from excel? As you said that this has been already tested in the server and is working fine, I believe, you have taken care of everything.
    Now, coming to the point, when you are adding a member in the membersheet, you need to process the dimension. This requires the admin rights. So, please check the task profile of the user ID, with which you are trying from your system. This user ID should be the primary admin.
    Hope this helps.
    Additionally, can you please elaborate on the steps on what you followed for adding a member from the excel directly?

  • Yoga 11 - can not create an account for the App store,

    I can not create an account for the App store, I live outside of the USA and the only address option is in the USA. Can you help me
    Moderator Note: Edited subject to match content.

    Hi
    Welcome To Lenovo Community
    We are really sorry to hear about the issue you are facing,
    I have verified the Microsoft windows 8 app store has different regions listed
    And you can connect app store using an existing Microsoft account like Hotmail, msn etc.
    Please refer below link
    http://windows.microsoft.com/en-US/windows-8/explore-windows-store#1TC=t1
    Also if you can share the link or screen shot of the app store to help you further
    Do give this a try and let us know  
    Hope This Helps
    Cheers!!!
    WW Social Media
    Important Note: If you need help, post your question in the forum, and include your system type, model number and OS. Do not post your serial number.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!
    Follow @LenovoForums on Twitter!
    How to send a private message? --> Check out this article.
                            English Community   Deutsche Community   Comunidad en Español

  • How can I create a object for a note?

    Hi experts,
        I need to apply the note 501905 but when I try in the SNOTE transacction I receive this error:
    Object REPS Z_MRM_DELETE_PP does not exist; create it
    Diagnosis
    The SAP Note that you want to implement contains changes to an object that does not yet exist in your system.
    SAP Notes contain only changes to objects that already exist. This means that the the system cannot automatically create new objects during the implementation of this SAP Note.
    Procedure
    1. Cancel the SAP Note implementationl.
    2. Create an empty object REPS Z_MRM_DELETE_PP with the corresponding object editor.
    3. Restart the SAP Note implementation.
    How can I create that Object??
    Thanks for the help!

    Hi Carlos,
    It says that you have to create a new program with a name Z_MRM_DELETE_PP.
    Once you create and activate the program you can execute the SAP Note.
    All this processure will be written in the SAP Note.
    Please Go through the Note using below:
    Step1: Use T.code SNOTE.
    Step2: Use menu GOTO --> NOTE BROWSER. Provide the Note no and EXECUTE.
    Step3: Double click on the displayed line.
    Here you will get the information to do before implementing the note.
    Go through all the documentation, and once you did all the development given in the note then you can implement the note.
    Regards,
    Sreekanth.

  • Can we create a object for servlet

    and can we use constructor inside a servlet .If yes at what situations we can use

    Servlet is an object. Not sure what you need. You can create objects inside a Servlet, or any Java class...
    and can we use constructor inside a servlet.Sure, but most people don't because Servlets are container managed (i.e. you don't instantiate it)
    If yes
    at what situations we can useNot sure what you are asking here, but you can instantiate the servlet anywhere.

  • My software can not create with thinapp for use in workspace

    i have problem appear  this error when i am create a software with thinapp for workspace for all of them i get this error when click on save
    Could not copy file C:\Users\Administrator\NTUSER.DAT -> C:\Program Files (x86)\VMware\VMware ThinApp\Captures\GOM\%drive_C%\Users\Administrator\NTUSER.DAT
    Could not copy file C:\Users\Administrator\ntuser.dat.LOG1 -> C:\Program Files (x86)\VMware\VMware ThinApp\Captures\GOM\%drive_C%\Users\Administrator\ntuser.dat.LOG1
    i have login with admin domain user (Administrator) now what is the problem ?  i have attached error appear this error for most of spftware that i want to create with thinapp and can not sync any of these software in workspace
    Best regards
    babak

    thanks
    i readed that post but it was not usefull i do all of these steps on the other host and it work fine just on the other host my os is windows server 2008 r2 but on that machine which get eror my os is server 2008 r2 sp1
    i think it is not very important
    in addition when we create a software for workspcae with thinapp it have to create 4 files .dat , .alt , .msi , .exe  but here when get error just create 3 file  .alt can not create

  • Can not Create Address Book for new Supplier

    Hi,
    I am trying to create a supplier in R12. Under create Address Book for the supplier, I have created the address and when I select the operating unit and click apply, I am getting the following error:
    Address and Site Creation - Unable to create address and sites because of the following error when trying to create the site in operating unit [Anirudh Operations]: [ORA-01403: no data found in Package AP_VENDOR_PUB_PKG Procedure Validate_Vendor_Site]. Either resolve this issue and try again or deselect the operating unit with the error and continue. Note: any new address requires at least one site in order to be created.
    Oracle Version: 12.0.4 - Vision Database.
    Am I doing something wrong here?
    Any help is much appreciated.
    Thanks & Regards,
    Sasibindu.

    Looks like the responsibility you are using is pointing to a new operating unit created by some one. But for that operating unit all the fundamental options are not complete (financial, purchasing, payables and so on). Hence you are getting this error.
    If they are setup, you can try adding this operating unit into your security group associated to the MO: Security group profile and try.
    If not use the Vision Operations responsibility and give it a try.
    Thanks
    Nagamohan

  • Can not create a workspace for schema scott

    Hi,
    I made some database objects under user scott, and I would like to create a workspace with user scott(the example schema within oracle),
    but when I choosing from the list, it is not there, and if I type the name manually, and press next, it will show a error message
    *" Preserved or limited schema".*
    and so failed, is it possible to do that in any way?
    Grant some more roles/priviliges to scott??:|
    Peter

    Peter - Check the documentation (User's Guide) about Restricted Schemas. The DBA must run a script to remove SCOTT from the restricted schema list.
    Scott

  • Can not find business object for Down payment request

    Hi,
    I want to make one workflow regarding down payment . For that i need business object of down payment request . But i cannot able to find it . Any budy have idea about that please tell me .
    Regards,
    Gurprit Bhatia,.

    Hi
    you have to do all steps in LSMW
    1.Maintain Object Attributes
    2.Maintain Source Structures
    3 Maintain Source Fields
    4 Maintain Structure Relations
    5 Maintain Field Mapping and Conversion Rules
    7 Specify Files
    8 Assign Files
    9 Read Data
    10 Convert Data
    11 Create Batch Input Session
    Please maintain source fields required.thats important.(maintain 2 level-header and item,also provide common name of column to link to 2 files
    Header file:sample
    RECORDNAME     EQUNR     Plant
    10001031                        10001031      3000
    Item file:sample
    RECORDNAME     ITEM NO     MATNR     Item catg   QTY
    10001031                             10      P-1001          L               1
    Regards
    Seenu

  • How  to create  authorisation object for  report

    hi
    experts..
    hw  can u  create authorisation object for  the  custom report.
    Thanks&  Regards
    Spandana

    Hi,
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Sy-SUBRC values
    4              User has no authorization in the SAP System for
                   such an action. If necessary, change the user
                   master record.
    8              Too many parameters (fields, values). Maximum
                   allowed is 10.
    12             Specified object not maintained in the user
                   master record.
    16             No profile entered in the user master record.
    24             The field names of the check call do not match
                   those of an authorization. Either the
                   authorization or the call is incorrect.
    28             Incorrect structure for user master record.
    32             Incorrect structure for user master record.
    36             Incorrect structure for user master record.
    http://www.sap.ittoolbox.com/groups/technical-functional/sap-basis/please-how-to-create-an-authorization-object-386391 - 78k -
    http://www.sap-abaprogram.blogspot.com/2007/11/what-is-use-of-
    authorization-checks-to.html - 75k -
    www.sapworld.hpg.ig.com.br/download/ab4query.pdf
    with thanks,
    Abaper.

  • I can not create an Installer, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...

    I can not create an Installer on LabView, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...
    Solved!
    Go to Solution.

     Hi Shada this can happen if you are including additional installers to your installer for example DAQmx. When you are doing this the installer has to include other files like MAX (Measuremente and Automation Explorer). Probably when you installed Vision Builder it updated MAX, so when your installer is trying to Include MAX, its asking for the source where it was installed in your computer in this case Vision Builder.
     Here you can cache the information so its not asked again, or you can download a newer version fo DAQmx, so it will update MAX and change de dependecy.
     You can find more details about this issue in this KB:
    KnowledgeBase 3S88PJMY: Why Do I Get A "Missing Distribution" Error When Trying to Build an Installe...
    And for keeping a copy here is more info:
     How Do I Stop the Missing Distribution Notification Each Time I Build An Installer?
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Can we create an index for a list of itmes in a single object?

    Can we create an index for multiple values in a single object. We have an object Order that contains list of items. I like to get all orders for a specific item. I want to create an index to speed up the query. Is it possible? What are the other alternatives?
    My Order object is as follows:
    Orders
    Item List
    Shipping Address
    Example:
    Order 1
    i1, i2, i3, i4
    123 some way, city, 12345
    Order 2
    i2, i3
    333 some other way, city2, 33333
    order 3
    i2, i4, i7
    My search would be, give me all orders that has item i2. It should return Order 1, Order 2 and Order 3.
    Thanks

    Hi,
    I think that this will work ...
    ValueExtractor extractor= new ReflectionExtractor("getItemList");
    cache.addIndex(extractor, true, null);
    Set setKeys = cache.keySet(new EqualsFilter(extractor, i2));
    In this case, the Collection value extracted by the ValueExtractor is treated as a Collection of contained attributes when the index is created.

  • Why in the new version of Flash CC I can not create swf for Google DPF system???

    Hi!
    In the Flash CC, the lowest version save swf is 10.3.
    Why is the new version of Flash CC can not create swf to Google DPF system?
    https://support.google.com/dfp_sb/answer/1382874?hl=en
    https://support.google.com/adwordspolicy/answer/94230?hl=en
    Please help me.
    I would be grateful for any help solve the problem.
    Regards!

    There are many people complaining about this in other threads.  I found the solution from kglad in this thread: http://forums.adobe.com/message/5750996
    You can get Flash CC to publish to version 9 player by putting these two files in these locations:
    This file: http://forums.adobe.com/servlet/JiveServlet/download/5510986-147069/Fl ashPlayer9_0.xml
    Goes here: C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\Players\FlashPlayer9_0.xml
    This file:  http://forums.adobe.com/servlet/JiveServlet/download/5510986-147068/pl ayerglobal.swc.zip
    Goes here: C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\FP9\playerglobal.swc
    You may need to create the FP9 folder.
    Restart flash and you should see Player 9 in your publish options.  You'll have to find the AS3 clickTag code.

  • I can not create a new ID in my iphon 4s, well I've created several to solve the problem of FaceTime, and the last restoration would not let me create a new ID. I can do? Thanks for helping.

    I can not create a new ID in my iphon 4s, well I've created several to solve the problem of FaceTime, and the last restoration would not let me create a new ID.
    I can do?
    Thanks for helping.

    Thanks Ckuan
    I can do, to create new ID?
    No way to delete all information from Iphon to create another ID?
    I will appreciate your answer

  • I am in south africa, just bought a voucher for us$ to get stuff from US itunes....but i can not create us itunes account, i am in south africa, just bought a voucher for us$ to get stuff from US itunes....but i can not create us itunes account

    how can i buy stuff in US istore with a voucher i just bought.... I am in South africa and can not create a itunes account in the US

    You can't, you can only buy content from your own country's store - to be able to buy from another country's store you need a valid billing address in that country and be in that country when buying from it. You will either need to make do with what is in the South African store (and I know that it hasn't got the same content as in other countries), or for music you could use other music purchase download sites that you have access to (and you can copy your own CDs).

Maybe you are looking for

  • [b]ERROR : connecting to msaccess[/b]

    I am trying to connect to a msaccess file but I get this error when I try to select from the table. ERROR at line 1: ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Generic Connectivity Using ODBC][Microsoft][ODBC Mic

  • Generalize Exchange Rates at the of month

    Dear Expert, I want to ask about Exchange Rates at the of month, what I need to do. Each trasaction have their own Exchange Rates which is different with Exchange Rates and Index in Administration Module. For Example : On May 30 Exchange Rates in Adm

  • Tried to erase OS X Yosemite on 2011 Macbook Pro, can't reinstall any OS

    Hi there I have a 2011 13" Macbook Pro which was running OS Yosemite. I just tried to erase the hard drive, following the instructions here: OS X Yosemite: Erase and reinstall OS X However, when I got to this step: Select Reinstall OS X, click Contin

  • Existing function modules for the following scenarios...

    Hello experts, I am currently selecting the latest record from table ANLC based from ANLN1(main asset number) and ANLN2(asset sub-number) and its AFABE is equal to '01'. Now, is there any function module that I can use to automatically get the latest

  • MacBook Air 11 Inch Mid 2013: where is the antenna located

    I ve been told that the antenna is located behind the screen basel. I d like to know if it's on the right or left hand side facing the screen Kind regards