PowerGUI Editor 2.1.1 and AD cmdlets 1.4 compatibility issue

[UPDATE] This issue got fixed in PowerGUI 2.2.

We have found that in some cases when you are using version 1.4.0 of QAD cmdlets inside PowerGUI Script Editor 2.1.1, and invoke a script with the cmdlets for the second time you may get the error: “Object reference not set to an instance of an object.

This is obviously very unfortunate and we are working on fixing the issue. In the meantime there are a couple of workarounds you can use:

A. Run Script Editor in MTA mode (if you don’t know what STA/MTA mean – this means that you would likely not notice any difference – but as a side-effect it might affect some script editor add-ons or your scripts using WPF)

To do this, just modify the PowerGUI Script Editor shortcut:

and add the -MTA switch to the command line:

B. Alternatively, you can set PowerGUI Script Editor to reset PowerShell runspace each time you start debugging:

1. In PowerGUI Script Editor, on the Tools menu, click Options,

2. In Debug Options, select Reset PowerShell runspace each time debugging is started.

Again, we appologise for the inconvenience and are working on a perminent fix.

6 Responses to “PowerGUI Editor 2.1.1 and AD cmdlets 1.4 compatibility issue”


  1. 1 Henning August 20, 2010 at 4:22 pm

    I tried alternative B … but without success. Whenever I run Get-ADObject the second time I get the “Object reference not set to an instance” exception.

  2. 2 Rene March 8, 2011 at 2:46 pm

    I’am using Powergui V2.4.0.1659 and still have the problem.
    Setting the debug option doesn’t work.

    • 3 Dmitry Sotnikov March 8, 2011 at 5:33 pm

      Rene,

      Thanks for bringing this up. Looks like we do indeed have an issue.

      Could you try to:
      1. Go to Tools / Options / Debug Options,
      2. Set the “Run all scripts in the same runspace” option (I know that this is the opposite of what the above post recommends ;) ),
      3. Restart PowerGUI Script Editor.

      Has this fixed the issue?

      Dmitry

      • 4 Rene March 9, 2011 at 6:33 am

        Dmitry,

        I have two working options:
        1. -MTA switch
        2. Set “Runs all scripts in the same runspace”.

        The the option “Reset Powershell runspace each time debugging is started” still give the error:
        “Get-QADUser : Object reference not set to an instance of an object.”

        Thanks

  3. 5 Dmitry Sotnikov March 9, 2011 at 5:46 pm

    Rene,

    Yes, “Reset Powershell runspace each time debugging is started” does not work – looks like QAD cmdlets 1.4 do not re-initialize properly – so please stick with the other option for now.

    Thanks for reporting the issue. We will be fixing it in future versions.

    Dmitry

    • 6 Lubrano di ciccone May 20, 2011 at 9:18 am

      I fighted with that issue, did a trace using procmon etc… & found that it may be related to many stuff. Then I end up by deleting the user profile. (just take care to save the needed elements before).
      Stupid issue Solved in my case.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s




My Recent Tweets

RSS My company’s blog

  • Yabe in the Cloud: Deployment Guide
    Since the Play! framework is one of the most popular frameworks among our developers, we thought we should publish another how-to showing how to deploy Play! apps to the Jelastic cloud. It’s pretty easy. We will use the yabe. blog engine as an example. Create an environment 1. Go to Jelastic.com and sign up if you haven’t done it yet or log [...] […]
  • The Jelastic Spotlight
    We are starting something new here on the blog for Fridays. Up until now, we were doing more light-hearted stuff but as we were sitting around talking about the different sweet apps that you, our customers, are deploying, we realized that we should be showcasing the apps and the developers! So, as of today, Fridays [...]
  • Remote Access to MySQL in Jelastic: Import/Export Dump Files in a Few Minutes
    Recently, we told you about that another cool feature that you have access to in the commercial version of Jelastic, Public IPv4. With a single click you access to a number of cool new capabilities. One of the most important opportunity you get with this feature is the ability to work with your databases remotely and [...]
  • The Jelastic Newsletter – May 23, 2012
    Java 7 adoption, Commercial releases in Europe and Russia and Software stack market share. . . The Jelastic newsletter is a weekly round-up of news, how-to’s and contribution opportunities. Here’s what’s happening this week: Commercial Releases in Europe and Russia As we continue to grow and add partners, we are happy to say that, as of yes […]
  • We are now available commercially in Europe!
    In partnership with dogado, we are now available commercially in Germany The last few weeks have been hectic here at Jelastic! We launched commercially in the US with ServInt; then we did the same in Russian with Rusonyx; and now we have launched commercially in Europe with Germany. Now in Europe Our commercial release with [...]
  • Software stacks market share: May 2012
    Every month we share stats on the usage and popularity of different software stacks within Jelastic PaaS with you. This month it’s even more interesting, because the scope of our stats has grown: we have a new hosting partner in Russia, Rusonyx. So, let’s check out the stats on databases, servers and JVMs for May and analyze the differences betwe […]
  • Geek Project of the Day
    Just in time for the weekend. Here is your geek project of the day. Because sometimes, a regular grill is not enough. We want one. Going to “borrow” a friend’s car and turn it into a grill.

Legal

The posts on this blog are provided “as is” with no warranties and confer no rights. The opinions expressed on this site are mine and mine alone, and do not necessarily represent those of my former employer - Quest Software, or my current employer - Jelastic or anyone else for that matter. All trademarks acknowledged.

© 2007-2012 Dmitry Sotnikov

Pages

 

July 2010
M T W T F S S
« Jun   Aug »
 1234
567891011
12131415161718
19202122232425
262728293031  

Follow

Get every new post delivered to your Inbox.

Join 49 other followers