Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8655431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:01:31+00:00 2026-06-12T15:01:31+00:00

Im getting the following error when trying to run hosted powershell scripts before upgrading

  • 0

Im getting the following error when trying to run hosted powershell scripts before upgrading from Windows 7 I never got this error.

The following error occurred while loading the extended type data
file: Microsoft.PowerShell.Core,
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2977) : Error
in type “System.Security.AccessControl.ObjectSecurity”: Exception: The
getter method should be public, non void, static, and have one
parameter of type PSObject. Microsoft.PowerShell.Core,
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2984) : Error
in type “System.Security.AccessControl.ObjectSecurity”: Exception: The
getter method should be public, non void, static, and have one
parameter of type PSObject. Microsoft.PowerShell.Core,
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2991) : Error
in type “System.Security.AccessControl.ObjectSecurity”: Exception: The
getter method should be public, non void, static, and have one
parameter of type PSObject. Microsoft.PowerShell.Core,
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(2998) : Error
in type “System.Security.AccessControl.ObjectSecurity”: Exception: The
getter method should be public, non void, static, and have one
parameter of type PSObject. Microsoft.PowerShell.Core,
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\types.ps1xml(3005) : Error
in type “System.Security.AccessControl.ObjectSecurity”: Exception: The
getter method should be public, non void, static, and have one
parameter of type PSObject.

I have applied the following in App.config:

<dependentAssembly>
  <assemblyIdentity name="System.Management.Automation" publicKeyToken="31bf3856ad364e35" />
  <publisherPolicy apply="no" />
</dependentAssembly>

What could the issue be?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:01:32+00:00Added an answer on June 12, 2026 at 3:01 pm

    The solution is to do the following, rather than only adding a block for only System.Management.Automation as suggested by the posts I read, you need to add one for all referenced PS assemblies.

      <runtime>
          <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="System.Management.Automation" publicKeyToken="31bf3856ad364e35" />
                <publisherPolicy apply="no" />
              </dependentAssembly>
            <dependentAssembly>
              <assemblyIdentity name="Microsoft.PowerShell.Commands.Utility" publicKeyToken="31bf3856ad364e35" />
              <publisherPolicy apply="no" />
            </dependentAssembly>
            <dependentAssembly>
              <assemblyIdentity name="Microsoft.PowerShell.ConsoleHost" publicKeyToken="31bf3856ad364e35" />
              <publisherPolicy apply="no" />
            </dependentAssembly>
            <dependentAssembly>
              <assemblyIdentity name="Microsoft.PowerShell.Commands.Management" publicKeyToken="31bf3856ad364e35" />
              <publisherPolicy apply="no" />
            </dependentAssembly>
            <dependentAssembly>
              <assemblyIdentity name="Microsoft.PowerShell.Security" publicKeyToken="31bf3856ad364e35" />
              <publisherPolicy apply="no" />
            </dependentAssembly>
            <dependentAssembly>
              <assemblyIdentity name="Microsoft.PowerShell.Commands.Diagnostics" publicKeyToken="31bf3856ad364e35" />
              <publisherPolicy apply="no" />
            </dependentAssembly>
            </assemblyBinding>
        </runtime>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Getting the following error when trying to run SPSS from an external Python IDE.
I am getting the following error when trying to run this query in SQL
I am getting the following error when trying to run reports. any thoughts or
I keep getting the following error when trying to run a login script I
I'm trying to run the following line: Directions.loadFromWaypoints((Waypoint[])waypoints.toArray(), opts); But I'm getting: 23:41:44.595 [ERROR]
I am getting following error when i am trying to connect Production DB from
I am getting an error when trying to run my web application from IIS
I am getting the following error when I am trying to run a java
I'm getting the following error when trying to install 1.9.2 with rvm /Users/craigspaeth/.rvm/scripts/functions/utility: line
I'm trying to run my app on Mono and I'm getting the following error.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.