Results 1 to 5 of 5

Thread: How to deploy SECURE and PORTABLE application

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    How to deploy SECURE and PORTABLE application

    Hi all,

    I made (I think!) a portable app wherein the connection string is in a separate config file ([app].exe.config). So when changing values for the connection string, you dont have to compile the app, just change the value from the config file.

    However, when you deploy the application to the client machine, you have to include the config file in you deployment project else, when you install the apps on the target machine, a 'ConnectionString property has not been initialized' error will be displayed. If the config file is to be distributed to every client, that will pose great security risk for the userid and password of your database plus the dataserver server name are encoded in the config file, they aren't encrypted.

    Does somebody know a way how to distribute a portable yet secure application?

    Thanks in advance,
    Marivic

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Create user roles in your database.

    Have everyone that is using the app login (when using the app). Your app will send the logon information to the DB when it builds its connection string. This makes it to where you don't even have to distribute a userid and password with your application. You can use the windows logon so they don't even need to type anything into your app, your app will just know.

    You will have to decide if the database is that important for you to protect it that much, or whether your current configuration is suitable.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Hi hellswraith,

    Thanks for replying but I'm afraid I didn't follow you.

    My [app].exe.config is where I specify the connection string from my app to the database. Our database admin gave me a userid and a password for development purpose. However, when deploying, our db admin just needs to change the value from the config file to connect to the production db server without compiling the application. That's the scenario.

    Can you kindly explain further your suggestion. This is my first time developing and deploying VB.Net apps.

    Thanks again,
    Marivic

  4. #4
    Lively Member
    Join Date
    Nov 2002
    Location
    Perth - Australia
    Posts
    105
    i think he means that when a user starts your app, he/she is prompted with a login screen: username, password are entered and the program uses this username and password in the db connection string...

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Ok. But how about the the db server name? I think that's also needed to connect to the database.

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