Error running executable package - .NET

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
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.
This topic is 8 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
bansonln
Posts: 2
Last visit: Thu Jan 28, 2016 2:19 pm

Error running executable package - .NET

Post by bansonln »

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.
User avatar
bansonln
Posts: 2
Last visit: Thu Jan 28, 2016 2:19 pm

Re: Error running executable package - .NET

Post by bansonln »

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.
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: Error running executable package - .NET

Post by DevinL »

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.
This topic is 8 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.