Can’t run this program (System.ArgumentOutOfRangeException error)

Asked By 0 points N/A Posted on -
qa-featured

Hello Everyone,

After the installation when I tried to start the program, I found the following error-message:

See the screenshot.

Specs: WIN7-x64, .NET up to date

Microsoft .NET Framework Application error window console

"Microsoft .NET Framework Application attempted to perform an operation not allowed by the security policy. 

To grant this application the required permission, contact your system administrator, or use the Microsoft >NET Framework Configuration tool. If you click Continue, the application will ignore this error and attempt to continue.

If you Quit, the application will close immediately. Request for the permission of type

'System.Security.Permissions.FileOPermission, mscorlib, Version=2.0.0.0, Culture=neutral,PublicKeyToken=b77a5c561934e089'"

Thanks a bunch!

SHARE
Best Answer by Tunacao_Caaron1
Best Answer
Best Answer
Answered By 20 points N/A #93327

Can’t run this program (System.ArgumentOutOfRangeException error)

qa-featured

 

Hey Kaycee corpuz!
 
There are many posts on the internet regarding this error but there is no such solution to solve this problem. I also had the same problem but i succeeded to overcome this problem. I have two solutions. Try both and see which one works for you.
 
Solution 1: (Modify the rssrvpolicy.config).
 
When you will modify this configuration file you will found yourself free from this problem. You just have to enter the following code in configuration file:
 
  <CodeGroup
 
                        class="UnionCodeGroup"
 
                        version="1"
 
                        PermissionSetName="FullTrust"
 
                        Name="Test"
 
                        Description="This code group grants the Test code full trust. ">
 
                        <IMembershipCondition
 
                                class="StrongNameMembershipCondition"
 
                                version="1"
 
                                PublicKeyBlob="0024000004800000940100000602000000240000575341310
                                004000001000100ab4b135615ca6dfd586aa0c5807b3e07fa7a02b3f376c131e
                                0442607de792a346e64710e82c833b42c672680732f16193ba90b2819a77fa22
                                ac6d41559724b9c253358614c270c651fad5afe9a0f8cbd1e5e79f35e0f04cb3e
                                3b020162ac86f633cf0d205263280e3400d1a5b5781bf6bd12f97917dcdde3c8d
                                03ee61ccba2c0"
 
                            />
 
                    </CodeGroup>
 
Second method:
 
1. Open the IIS and click on the Application pool.
 
2. Select Default pool from the Application pool area and click on advance setting in the Action section (On the right side).
 
3. Here click on the Identity and change it to the network service.
 
You will not face this problem anymore.
 
Thanks.
Answered By 5 points N/A #93328

Can’t run this program (System.ArgumentOutOfRangeException error)

qa-featured

Hi ,

Kaycee the runtime error with the Framework you are supposing to say is the error that mostly occur due to some problems occurred in application and error is that no source code is being available for the current location so just uninstall and reinstall again the complete Visual Studio.

After uninstalling it's mandatory to reboot system for the sake complete uninstallation of Visual Studio from the system available and install a fresh copy and also even check also with the application whether it is newer version or the old version and if is older one it's better to upgrade to new version so that additional features will be added to the package.
 
This error occurs when the range limit exceeds and also may be due to valid permissions provided by the administrator on the application this type of error occurs.
 
The problem may be with missing files of application you are using so its better to uninstall completely and then you re-install it with a fresh copy of application so that error may not be raised again with ease of loading the files in which you are willing to access Microsoft.Net Framework.
 
Thank You.
Answered By 0 points N/A #93330

Can’t run this program (System.ArgumentOutOfRangeException error)

qa-featured

 

Caaron! Thanks a lot!
 
I've never thought this one will work.
 
Second method:
 
1. Open the IIS and click on the Application pool.
2. Select Default pool from the Application pool area and click on advance setting in the Action section (On the right side).
3. Here click on the Identity and change it to the network service.
 
Problem solved. Ty much.

Related Questions