Product, version and build: 4.2.99
32 or 64 bit version of product: 64-bit
Operating system: Windows 2008 R2
32 or 64 bit OS: 64-bit
I have created a form to reset passwords in SharePoint 2010. In the script I am trying to capture errors. If I run the script in PowerShell Studio it returns the correct error:
I get this error when I package it and run it as an executable: Microsoft SharePoint is not supported with version 4.0.30319.34209 of the Microsoft .Net Runtime.
Error running executable package - .NET
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Error running executable package - .NET
I think I found the solution. I updated the config file for the package and made sure it said this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v2.0" />
</startup>
</configuration>
It now runs and gives the correct error messages.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v2.0.50727"/>
<supportedRuntime version="v2.0" />
</startup>
</configuration>
It now runs and gives the correct error messages.
Re: Error running executable package - .NET
Glad to know it works! Thanks for the update, and if you have any further issues don't hesitate to make another post.
DevinL
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.