none
Application attempted to perform an operation not allowed by the security policy RRS feed

  • Question

  • We have a program written in Visual Studio .Net 2003 that has been updated for years using that software.  We recently updated to Visual Studio 2008 and get the Application attempted... security policy error.  I am a fairly new programmer and I have never created a NEW program, just worked on old program problems.  I have installed and debugged the program to run great on debug and on my computer, but I cannot get it to deploy and hookup with our SqlServer using 2008.  Do I need to create a new install program?  I have upgraded the satellite computer to Framework 3.5.  Set Computer, Intranet and Internet all to Full Trust using the wizard in the Control Panel, held my mouth in all types of ways, but still cannot deploy our software to our network successfully.  Please help.
    Pat McLaughlin
    Monday, June 8, 2009 7:58 PM

Answers

  • Hi D. Pat McLaughlin,

    You can try creating a new project. However, you need to start from scratch for programming.

    I can understand that you encounter some problems when migrating your application from Visual Studio 2003 to Visual Studio 2008.

    As you know, Visual Studio 2003 targets .NET Framework 1.1 and Visual Studio 2008 targets .NET Framework 2.0, 3.0 or 3.5.
    .NET Framework 3.5 uses CLR version 2.0 and so does .NET Framework 2.0 or 3.0, while .NET framework 1.1 uses v1.1.
    The issue there is that: you are on a different CLR version (1.1) which has some changes compared to the CLR 2.0 (which is used by Fx 2.0/3.0/3.5).
    Here is a useful blog that sheds some light on this issue, see: http://www.danielmoth.com/Blog/2007/10/migrating-from-net-framework-v1x-to.html

    If you're developing a web project, the following documents can provide you some good suggestions on migration.
    See: http://msdn.microsoft.com/en-us/library/aa983456.aspx
            http://msdn.microsoft.com/en-us/library/3z019waa.aspx

    If you have any specific issue on migration, you can consult it on the specific forum to get more useful help.
    For VB.NET -  Visual Basic General forum
    For C# - Visual C# General forum
    For C++ - Visual C++ General forum
    For ASP.NET - ASP.NET forum
    For more forums, see: http://social.msdn.microsoft.com/Forums/en-us/categories/

    Thanks

    (This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.)


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Wednesday, June 10, 2009 7:56 AM