Results 1 to 1 of 1

Thread: [VS2005][2.0]Problem with Running an App over network

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Location
    Bonny Scotland
    Posts
    141

    [VS2005][2.0]Problem with Running an App over network

    Hi all,

    I have been developing a windows application with the intention of installing it on a Citrix server and publishing it. The application runs without any problems when installed locally on my machine or indeed any other machine. The problems started when i tried to run it through the Citrix program neighbourhood. I get a Send, Don't Send error which when i debug gives me the error:

    Code:
    Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
    This error also occurs if i try accessing the application via a short cut to the executable installed on another PC/Server.

    Has anyone encountered this problem before, if so can anyone suggest what i've done wrong.


    UPDATE

    I have changed the .Net 2.0 configuration editor so that All Code under the machine run time security has fulkl trust. This gets around the initial problem. I am now getting another error.

    its a CryptographicException error - Bad Data.

    Within the application itself i have a section which encrypts and decrypts parts of xml config file. This uses a key container which maintains itself between times that the application runs. I'm wondering if this sort of code will encounter problems when running across a network?

    It now looks like as i use a KeyContainer to store the RSA encryption key, the first user that accesses the application creates the config file along with the RSA key. Any users trying to access the system from other PC's attemt to use an RSA key which doesn't relate to the one initaially created hence it causes the exception. Is there some way i can install the application on a server create shortcuts to the application for each user and still have the application stores its RSA key on the machine it is installed on instead of on each users PC. I hope this makes sense as i'm now confusing myself


    Thanks,

    Grant

    Many thanks in advance,

    Grant
    Last edited by MadCatVB; Aug 3rd, 2006 at 05:47 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width