Possibly having to use a web server
-
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
-
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
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
-
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
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.
-
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.
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!
-
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
aaaah ok thanks for that!!!
-
aaaah ok thanks for that!!!
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?
-
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?
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... -
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!
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... -
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
Are you looking to build a license into your application ? This article may help out ... http://windowsclient.net/articles/Licensing.aspx[^]