473,408 Members | 2,839 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

My applications can't find the files on the path written by me!

kiseitai2
Hi everyone. I'm having a litle trouble lately with my applications. The main problem right now is that my applications can find the files on the path given by me, however, after publishing and installing in other computers it can't display the file on the path (example: the source file are in c:\bugfixes.txt, after install on another computer the object that is suppose to display or make use of this file says "page cannot be displayed" or a window appears saying "Unhandled error" (something of that nature). I've also found something strange. If I install the program on the same computer as the source files, the application tells me the size of the program (same as the directory containing the source files) in the add and remove list, however, if installed on the other computers it neither doesn't tell the size nor there appear to be a directory on C:\ where the source files are on my computer and where I would like the application to be installed.

To get to the point, I need to know if I can make the application to install to the location I want, and if not, I need to know where the application installs to in the other computers so I can move the source files to that location, start debugging from there, and change all paths (quite a bit) to that location.

My language is Visual Basic 2005 Express Edition.
My operating system is Windows XP Professional

I hope you understand what my question is.
Jul 27 '07 #1
4 2075
pureenhanoi
175 100+
Hi everyone. I'm having a litle trouble lately with my applications. The main problem right now is that my applications can find the files on the path given by me, however, after publishing and installing in other computers it can't display the file on the path (example: the source file are in c:\bugfixes.txt, after install on another computer the object that is suppose to display or make use of this file says "page cannot be displayed" or a window appears saying "Unhandled error" (something of that nature). I've also found something strange. If I install the program on the same computer as the source files, the application tells me the size of the program (same as the directory containing the source files) in the add and remove list, however, if installed on the other computers it neither doesn't tell the size nor there appear to be a directory on C:\ where the source files are on my computer and where I would like the application to be installed.

To get to the point, I need to know if I can make the application to install to the location I want, and if not, I need to know where the application installs to in the other computers so I can move the source files to that location, start debugging from there, and change all paths (quite a bit) to that location.

My language is Visual Basic 2005 Express Edition.
My operating system is Windows XP Professional

I hope you understand what my question is.
End users install the application to any-where they want. Althrougth, nearly all computers runing Microsoft Windows have C: driver, but some computer have not. To make sure the path always exist, try using relative-path. The application always known where it be installed. The varriable App.Path always return the location where the Exe file was place. Move all your extend-files to the folder: App.Path (or sub-folder of App.Path). It always work well
Jul 28 '07 #2
kinnu
30
The working of the application depends on the OS that you are installing and the Setup installer you are using. As the application works fine on your computer its clear that other computers does not have the minimum/required/supported files which is required to run your application. Even they have to be installed on the other computer while you are installing your software. Check for the objects and components that you have used in your computer and make sure that they are available in other computer too.

Even APP.PATH may also not work if you do not install the required files on the other computer with your application EXE.
Jul 28 '07 #3
The working of the application depends on the OS that you are installing and the Setup installer you are using. As the application works fine on your computer its clear that other computers does not have the minimum/required/supported files which is required to run your application. Even they have to be installed on the other computer while you are installing your software. Check for the objects and components that you have used in your computer and make sure that they are available in other computer too.

Even APP.PATH may also not work if you do not install the required files on the other computer with your application EXE.
If you use the publish option in VB express 2005 you can package the file exe with all it's dependencies, so i do not think that this is the issue, if the setup installed properly (didnt throw an error saying that dependencies could not be found) then the pc you have installed on will have the pre-requisits...

Maybe it is something to do with windows hiding file extensions (i've had that problem before) i.e. you save as text.txt but XP saves it as text.txt.txt etc...
Jul 31 '07 #4
Thanks guys, but I solved the problem by forcing the first form on my project to download the required files from my website (at least for this project makes sense since it's a web browser I was developing beyond a book's scope, so the user must have internet access).

However, there's another issue really hard to solve by me right now. It is the "403: Forbidden" messages I'm receiving when my project tries to download the updates I made. What's strange is, before the error started to happen, my project did download the updates without trouble (all updates were in .zip format). So, to try to solve this error I changed the compression from .zip to a self-extracted format (.exe). Still, the problem continues and I don't have enough background as to understand how this problem behaves. What I mean is I can't diagnose the situation and think of a way to avoid the error. And yet, the project can stilldownload simple text files.

My language is Visual Basic 2005 Express Edition
I'm running Windows XP SP2
Jul 31 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Peter Hansen | last post by:
Greetings. Im trying to write a program that can be run from the command line. If I want to search for example after a file with the ending .pdf, I should be able to write in the command line:...
7
by: Lowell Kirsh | last post by:
I have a script which I use to find all duplicates of files within a given directory and all its subdirectories. It seems like it's longer than it needs to be but I can't figure out how to shorten...
385
by: Xah Lee | last post by:
Jargons of Info Tech industry (A Love of Jargons) Xah Lee, 2002 Feb People in the computing field like to spur the use of spurious jargons. The less educated they are, the more they like...
1
by: Alex | last post by:
Hello, in my company, we have a diagnostic tool for hardware. Depending on the hardware projcet, a different project configuration is needed. The configuration file is written in XML and...
1
by: Mike Hutton | last post by:
I need some help. I am trying to set up our development environment so as to make life easy for my fellow developers (none of whom have used ASP.NET or VS.NET before). We are developing our...
0
by: Nabani Silva | last post by:
Hi, hope someone could help I need to share session state (and contents) through differente web applications. I'm trying to get it done by using StateServer session state, below I paste code...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
9
by: eliben | last post by:
Hello, I'm getting into Python now after years of Perl, and as part of my research I must understand how to do some common tasks I need. I have a bunch of Windows PCs at work to which I want...
8
by: Max | last post by:
Is it possible for an ASP.net server (like IIS 6) to run web application without having available the code behind forms in clear ascii? Can I provide a compiled product to the customer, not an exe...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.