.Net Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - More.Net Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 5th, 2003, 05:40 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
dotNet not possible to start through network

I have a VisualStudio .net program on the harddisk of PC-A. Now I want to start this program on PC-B though network-connection with PC-A (I do not want to copy it to the harddisk of PC-B just start it on the harddisk of PC-A). But I get this error:

Application has generated an exception that could not be handled.
Process id=0x700(1792), Thread id=0x714(1812)

If I copy it on the harddisk of PC-B it starts without a problem!

Must I change something before compieling?

Reply With Quote
  #2  
Old September 5th, 2003, 07:44 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 36 m 16 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Do you have the .net framework on PC-B?

Reply With Quote
  #3  
Old September 5th, 2003, 08:00 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
Well I found a way (had to change the security options for this folder)but now I have a new problem. I use this program to connect to an Access-Database. The database is in the same folder as the exe.
Code:
String* Databasename="mydatabase.mdb";
GetModuleFileName (NULL, szBuffer, MAX_PATH);
GetFullPathName (szBuffer, sizeof (szBuffer), szpath, &pFilename);
szpath[pFilename-szpath]= '\0';
String* path2=Convert::ToString(szpath);
String* myDatabase=myDatabase->Concat(path2,Databasename);
OleDbConnection* DBCONNECTION=new OleDbConnection();
String* Connect=S"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=XXX;"; 		 
Connect=Connect->Replace("XXX",myDatabase);
DBCONNECTION->ConnectionString=Connect;

As you can see I let the program find the path to the database and use it to connect to it!
But when I start the program through network my program adds a \ to the beginning of the path
(so this
\\44-test\Customer\mydatabase.mdb
is changed into this
\\\44-test\Customer\mydatabase.mdb
)
Why does it adds this \? How can I prevent it from adding this \?

Reply With Quote
  #4  
Old September 5th, 2003, 08:45 AM
SirX SirX is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 64 SirX User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 24 m 30 sec
Reputation Power: 6
Found the error(forgot to disable a fuction which added the \ )!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - More.Net Development > dotNet not possible to start through network


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT