More than a year ago, I created a Console application to perform an update of a database from a text file. I installed the application on a server and it was run nightly from a workstation (Intranet Zone). All worked without a hitch until two days ago. The application now generates an error. There were no changes to the server that I am aware of.
I have used the .NET Framework Wizards and the .NET Framework Configuration tool. When I run permview with the /decl option against the executable file, none are displayed.
Here is the error:
Unhandled Exception: System.TypeInitializationException: The type initializer for "DataImport.Module1" threw an exception. ---> System.Security.SecurityException: Request failed.
at DataImport.Module1..cctor()
The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
The server:
Windows 2000 sp4
.NET Framework 1.1
.NET Framework 1.1 Hotfix (KB886903)
.NET Framework 2.0
Any help will be appreciated.
Ron
I have used the .NET Framework Wizards and the .NET Framework Configuration tool. When I run permview with the /decl option against the executable file, none are displayed.
Here is the error:
Unhandled Exception: System.TypeInitializationException: The type initializer for "DataImport.Module1" threw an exception. ---> System.Security.SecurityException: Request failed.
at DataImport.Module1..cctor()
The granted set of the failing assembly was:
<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
version="1"
Read="USERNAME"/>
The server:
Windows 2000 sp4
.NET Framework 1.1
.NET Framework 1.1 Hotfix (KB886903)
.NET Framework 2.0
Any help will be appreciated.
Ron