473,320 Members | 2,000 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,320 software developers and data experts.

VB.NET 2005 Publishing problems

I have written a VB.NET 2005 program using a MS Access database and a Datagrid control. The program works fine locally as an exe but when I come to Publish it (using the Click Once method and publishing to CD/DVD) I get a problem. The publishing Wizard works OK and produces the publication files but when I run Setup.exe I get an Unhandled Exception error "Cant find the file C:\Documents and Settings\..\Local Settings\Apps\2.0\Data\............\data\PI.mdb" (I have not provided the full path as it is very long and includes long strings of characters & numbers). The program database file is located in the program 'bin' file. I think the problem is to do with the OldDbDataAdapter but I cant see what is wrong.

The o/s is Windows XP Pro.

Any suggestions would be most welcome.

Regards

Lawrence
Jan 5 '07 #1
1 1384
bplacker
121 100+
One thing I can think of is that you don't have the ODBC connection, or whichever connection it is that you need to connect to access DBs from applications.
The reason I think this is because within Visual Studio, you must setup your ODBC connections in order to connect to databases, and when you are running the application outside of VS, it cannot find the connection.
Jan 5 '07 #2

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

Similar topics

0
by: Rare Book School | last post by:
RARE BOOK SCHOOL 2005 Rare Book School is pleased to announce its schedule of courses for 2005, including sessions at the University of Virginia, the Walters Art Museum/Johns Hopkins University...
0
by: melledge | last post by:
Full Programme for XTech 2005 Announced Premier European XML Industry Event Expands Focus to "XML, the Web and Beyond"; Co-hosted by the Mozilla Foundation,W3C, and OASIS, Presenters Include...
0
by: melledge | last post by:
IDEAlliance's XTech 2005 to Cover Hot Trends in Browser Technology As Mozilla, Google, Flickr, Microsoft and Others Redefine Web Interfaces, Conference Will Feature Insights and Perspective from...
2
by: werdna.sivad | last post by:
I just uninstalled VS 2005 Professional Beta 2 and replaced it with VS Web Developer 2005 Express Edition and VS C++ 2005 Express Edition. I am having problems publishing my ASP sites now. ...
4
by: Will Chamberlain | last post by:
I have been creating a C# app in VS2005 for the past 2 weeks and am having the hardest time trying to run it from a remote IIS server. The application works great on localhost but when I move it I...
2
by: DCC700 | last post by:
VS 2005 Converted Header causing error when publishing After converting from Visual Studio 2003 to 2005, I have had several issues with a header that is used throughout the project. The...
8
by: Peter Afonin | last post by:
Hello, I'm just starting to work with ASP.NET 2.0 and VS 2005. If I understand correctly, even if I precompiled my application, I still need to upload aspx.vb files to the server, correct? The...
5
by: rmgalante | last post by:
I've been using the VS2005 Publish utility on one of my projects for about six months. I have a large site with hundreds of files, thousands if you include the code behind files. So I thought...
0
by: rmgalante | last post by:
I was developing a large web site in VS 2005 as a web site project. I was having problems with the VS 2005 publish tool. It was slow, and provided no feedback. It has other issues as outlined...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.