Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Possibly having to use a web server

Possibly having to use a web server

Scheduled Pinned Locked Moved Visual Basic
csharpsysadminperformancehelp
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    offroaderdan
    wrote on last edited by
    #1

    Hello, I had a small program that i was HOPING would work!!! This program worked fine on a memory stick as it was writting data backward and forwards, in.txt files. I wanted to give a copy or it to my mate so i put it onto CD-RW however that then went tits up, it couldn't find the .txt files when they were clearly on the disc. One of my mates said that it might be more secure to use a web server, this program asks the user for a licence key and if its correct then they are allowed on the program, the CD-RW was supposed to take the computer seria number (just like the memory stick did) So i guess i have got to consider the option of a web sever. Now where do i start? I have no idea how to link a web server to vb.net. I know that one of my cousins has go a home server (will that work) it might save me some money :) Or can someone magically solve the vb.net problem and make it so the CD-RW works :) Many thanks Dan

    T J D 3 Replies Last reply
    0
    • O offroaderdan

      Hello, I had a small program that i was HOPING would work!!! This program worked fine on a memory stick as it was writting data backward and forwards, in.txt files. I wanted to give a copy or it to my mate so i put it onto CD-RW however that then went tits up, it couldn't find the .txt files when they were clearly on the disc. One of my mates said that it might be more secure to use a web server, this program asks the user for a licence key and if its correct then they are allowed on the program, the CD-RW was supposed to take the computer seria number (just like the memory stick did) So i guess i have got to consider the option of a web sever. Now where do i start? I have no idea how to link a web server to vb.net. I know that one of my cousins has go a home server (will that work) it might save me some money :) Or can someone magically solve the vb.net problem and make it so the CD-RW works :) Many thanks Dan

      T Offline
      T Offline
      The Man from U N C L E
      wrote on last edited by
      #2

      I can't see it ever working from a CD-RW myself. If you create an installer to install it onto your friends PC it would work. The core problem is that you cannot open a file on a CD for writing. I guess you are opening the files for read/write. When writing to a CD you always have to burn the files back to disk, even when it is a rewritable disk. You don't need a web server to deploy a simple .Net application. In fact you will only need on if you are developing a web application.

      If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

      O 1 Reply Last reply
      0
      • O offroaderdan

        Hello, I had a small program that i was HOPING would work!!! This program worked fine on a memory stick as it was writting data backward and forwards, in.txt files. I wanted to give a copy or it to my mate so i put it onto CD-RW however that then went tits up, it couldn't find the .txt files when they were clearly on the disc. One of my mates said that it might be more secure to use a web server, this program asks the user for a licence key and if its correct then they are allowed on the program, the CD-RW was supposed to take the computer seria number (just like the memory stick did) So i guess i have got to consider the option of a web sever. Now where do i start? I have no idea how to link a web server to vb.net. I know that one of my cousins has go a home server (will that work) it might save me some money :) Or can someone magically solve the vb.net problem and make it so the CD-RW works :) Many thanks Dan

        J Offline
        J Offline
        John M Bundy
        wrote on last edited by
        #3

        I can't really say a lot without knowing more about the program. If you can run it from a memory stick, then you should be able to run it from a CD-RW. It sounds like you have hardcoded paths to the files, and when you put the program on the CD, that is a different address. To answer better we need to know more about the code. For example, show the code where you are opening and working with the .txt files. If you are making changes and writing back to the files, then you can't do that on a CD without a bit of work i would imagine.

        O 1 Reply Last reply
        0
        • J John M Bundy

          I can't really say a lot without knowing more about the program. If you can run it from a memory stick, then you should be able to run it from a CD-RW. It sounds like you have hardcoded paths to the files, and when you put the program on the CD, that is a different address. To answer better we need to know more about the code. For example, show the code where you are opening and working with the .txt files. If you are making changes and writing back to the files, then you can't do that on a CD without a bit of work i would imagine.

          O Offline
          O Offline
          offroaderdan
          wrote on last edited by
          #4

          i hadn't hard coded the code for the txt files, that is why i don't get it?? I was thinking a bout using a web server as i am hoping to sell this application later on when all the bugs are fixed but dont really know alot about using a web server etc thanks for the reply!

          D 1 Reply Last reply
          0
          • T The Man from U N C L E

            I can't see it ever working from a CD-RW myself. If you create an installer to install it onto your friends PC it would work. The core problem is that you cannot open a file on a CD for writing. I guess you are opening the files for read/write. When writing to a CD you always have to burn the files back to disk, even when it is a rewritable disk. You don't need a web server to deploy a simple .Net application. In fact you will only need on if you are developing a web application.

            If you have knowledge, let others light their candles at it. Margaret Fuller (1810 - 1850) www.JacksonSoft.co.uk

            O Offline
            O Offline
            offroaderdan
            wrote on last edited by
            #5

            aaaah ok thanks for that!!!

            O 1 Reply Last reply
            0
            • O offroaderdan

              aaaah ok thanks for that!!!

              O Offline
              O Offline
              offroaderdan
              wrote on last edited by
              #6

              I am thinking about scrapping the txt file and basically having a setup wizard, once this is then complete i want the cd-rw to basically delete the setup wizard on the disc, can this be done?

              D 1 Reply Last reply
              0
              • O offroaderdan

                I am thinking about scrapping the txt file and basically having a setup wizard, once this is then complete i want the cd-rw to basically delete the setup wizard on the disc, can this be done?

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                No, it can't. You cannot overwrite a CD while it's in use (your installer is still running!)

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                1 Reply Last reply
                0
                • O offroaderdan

                  i hadn't hard coded the code for the txt files, that is why i don't get it?? I was thinking a bout using a web server as i am hoping to sell this application later on when all the bugs are fixed but dont really know alot about using a web server etc thanks for the reply!

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  But did you build a fully qualified path to the file?? If you just specified the filename for the text file and not the full path to the file, you can run into issue like you've described.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008
                  But no longer in 2009...

                  1 Reply Last reply
                  0
                  • O offroaderdan

                    Hello, I had a small program that i was HOPING would work!!! This program worked fine on a memory stick as it was writting data backward and forwards, in.txt files. I wanted to give a copy or it to my mate so i put it onto CD-RW however that then went tits up, it couldn't find the .txt files when they were clearly on the disc. One of my mates said that it might be more secure to use a web server, this program asks the user for a licence key and if its correct then they are allowed on the program, the CD-RW was supposed to take the computer seria number (just like the memory stick did) So i guess i have got to consider the option of a web sever. Now where do i start? I have no idea how to link a web server to vb.net. I know that one of my cousins has go a home server (will that work) it might save me some money :) Or can someone magically solve the vb.net problem and make it so the CD-RW works :) Many thanks Dan

                    D Offline
                    D Offline
                    David Mujica
                    wrote on last edited by
                    #9

                    Are you looking to build a license into your application ? This article may help out ... http://windowsclient.net/articles/Licensing.aspx[^]

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups