473,508 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Assembly on shared drive just doesn't work???

I have an assembly on a shared LAN drive. On my developer machine, I give
that assembly full trust from the .NET wizard. It works fine. I go to a
user machine on the LAN, map to the shared drive, give full trust on that
machine but the assembly doesn't fully work. No errors. The assembly post
data from MS Access to a website. The posting part doesn't work. The
firewall was turned off and still nothing.

Any ideas?

Thanks,
Brett
Nov 17 '05 #1
11 1516
hi,

do you any logging in the program? did you check the event log?

Does the user machine has access to the server?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Brett" <no@spam.com> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
I have an assembly on a shared LAN drive. On my developer machine, I give
that assembly full trust from the .NET wizard. It works fine. I go to a
user machine on the LAN, map to the shared drive, give full trust on that
machine but the assembly doesn't fully work. No errors. The assembly post
data from MS Access to a website. The posting part doesn't work. The
firewall was turned off and still nothing.

Any ideas?

Thanks,
Brett

Nov 17 '05 #2
> do you any logging in the program?
There isn't any logging. What exactly could I log to help out?
did you check the event log? There isn't anything entered that looks as though it relates to this
problem.
Does the user machine has access to the server? It is listed in his Windows Explorer and a map was successfully made to a
path on that server. This is where the program is executed from.

The program writes to a text file on the network drive. Then it post data
from an MS Access database to a website. It does successfully write to the
text file on the user machine. If it were a security issue, this shouldn't
happen right?

Any other suggestions are welcome.

Thanks,
Brett

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:e3**************@TK2MSFTNGP15.phx.gbl... hi,

do you any logging in the program? did you check the event log?

Does the user machine has access to the server?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Brett" <no@spam.com> wrote in message
news:uq**************@TK2MSFTNGP15.phx.gbl...
I have an assembly on a shared LAN drive. On my developer machine, I give
that assembly full trust from the .NET wizard. It works fine. I go to a
user machine on the LAN, map to the shared drive, give full trust on that
machine but the assembly doesn't fully work. No errors. The assembly
post data from MS Access to a website. The posting part doesn't work.
The firewall was turned off and still nothing.

Any ideas?

Thanks,
Brett


Nov 17 '05 #3

"Brett" <no@spam.com> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
do you any logging in the program? There isn't any logging. What exactly could I log to help out?


Well you could know if you get an exception you will know the line where it
occured. Probably now you are just catch ing it and doing nothing.
The program writes to a text file on the network drive. Then it post data
from an MS Access database to a website. It does successfully write to
the text file on the user machine. If it were a security issue, this
shouldn't happen right?


How come it does not give you any exception or errors?

That's why my suggestion about logging

Also are you sure that the machine has Jet installed?

Are you using oledb or ODBC ?

Do you have JET installed?
cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 17 '05 #4
Brett,

Just to clarify, you are still running the .exe on your user machine...
you're just loading it from a shared drive, right? It works when you
run it from a local copy, but not when you invoke the same executable
on the same machine, but loading it from a shared drive. Is this
accurate?

Nov 17 '05 #5

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:Of**************@tk2msftngp13.phx.gbl...

"Brett" <no@spam.com> wrote in message
news:uQ**************@TK2MSFTNGP14.phx.gbl...
do you any logging in the program? There isn't any logging. What exactly could I log to help out?


Well you could know if you get an exception you will know the line where
it occured. Probably now you are just catch ing it and doing nothing.
The program writes to a text file on the network drive. Then it post
data from an MS Access database to a website. It does successfully write
to the text file on the user machine. If it were a security issue, this
shouldn't happen right?


How come it does not give you any exception or errors?

That's why my suggestion about logging

Also are you sure that the machine has Jet installed?

Are you using oledb or ODBC ?

Do you have JET installed?


I'm using oledb. How can I be sure JET is installed?



cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Nov 17 '05 #6

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Brett,

Just to clarify, you are still running the .exe on your user machine...
you're just loading it from a shared drive, right? It works when you
run it from a local copy, but not when you invoke the same executable
on the same machine, but loading it from a shared drive. Is this
accurate?


No. The EXE is on a server. Two machines map a J drive to the server. My
developer machine executes the EXE fine. The user machine doesn't. No
errors. The prog writes to a text file but it will not post MS Access data
to a website. All of that works on my developer machine.

Thanks,
Brett
Nov 17 '05 #7

"Brett" <no@spam.com> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Brett,

Just to clarify, you are still running the .exe on your user machine...
you're just loading it from a shared drive, right? It works when you
run it from a local copy, but not when you invoke the same executable
on the same machine, but loading it from a shared drive. Is this
accurate?


No. The EXE is on a server. Two machines map a J drive to the server.
My developer machine executes the EXE fine. The user machine doesn't. No
errors. The prog writes to a text file but it will not post MS Access
data to a website. All of that works on my developer machine.

Thanks,
Brett


Yes, the exe is on the share but it runs on the client's machine. As Ignacio
said, you have to make sure all components to access the Access files
(loacted on the same share?) are installed on the client.
As there's no exception thrown when trying to open the DB, I suppose that
accessing the DB is not an issue, remains the question what you mean exactly
with post to the webserver, and where is the server located (same as the
exposing the share?).
What kind of application is this (console, Windows Forms?).

Willy.

Nov 17 '05 #8

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OS*************@TK2MSFTNGP14.phx.gbl...

"Brett" <no@spam.com> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Brett,

Just to clarify, you are still running the .exe on your user machine...
you're just loading it from a shared drive, right? It works when you
run it from a local copy, but not when you invoke the same executable
on the same machine, but loading it from a shared drive. Is this
accurate?

No. The EXE is on a server. Two machines map a J drive to the server.
My developer machine executes the EXE fine. The user machine doesn't.
No errors. The prog writes to a text file but it will not post MS Access
data to a website. All of that works on my developer machine.

Thanks,
Brett


Yes, the exe is on the share but it runs on the client's machine. As
Ignacio said, you have to make sure all components to access the Access
files (loacted on the same share?) are installed on the client.
As there's no exception thrown when trying to open the DB, I suppose that
accessing the DB is not an issue, remains the question what you mean
exactly with post to the webserver, and where is the server located (same
as the exposing the share?).


The DB, text file and EXE are all in the same directory on a shared drive.
DB writes an ID # to the text file. The EXE reads an ID # from the text
file. It uses this ID # to access a table in the DB and writes that to a
CSV file. The CSV is then POSTed to remote website. A FORM POST is used via
httpResponseArray = myWebClient.UploadFile(strPost, "POST", FileName)
What kind of application is this (console, Windows Forms?). WinForm.

Willy.


Nov 17 '05 #9

"Brett" <no@spam.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OS*************@TK2MSFTNGP14.phx.gbl...

"Brett" <no@spam.com> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Brett,

Just to clarify, you are still running the .exe on your user machine...
you're just loading it from a shared drive, right? It works when you
run it from a local copy, but not when you invoke the same executable
on the same machine, but loading it from a shared drive. Is this
accurate?
No. The EXE is on a server. Two machines map a J drive to the server.
My developer machine executes the EXE fine. The user machine doesn't.
No errors. The prog writes to a text file but it will not post MS
Access data to a website. All of that works on my developer machine.

Thanks,
Brett


Yes, the exe is on the share but it runs on the client's machine. As
Ignacio said, you have to make sure all components to access the Access
files (loacted on the same share?) are installed on the client.
As there's no exception thrown when trying to open the DB, I suppose that
accessing the DB is not an issue, remains the question what you mean
exactly with post to the webserver, and where is the server located (same
as the exposing the share?).


The DB, text file and EXE are all in the same directory on a shared drive.
DB writes an ID # to the text file. The EXE reads an ID # from the text
file. It uses this ID # to access a table in the DB and writes that to a
CSV file. The CSV is then POSTed to remote website. A FORM POST is used
via
httpResponseArray = myWebClient.UploadFile(strPost, "POST", FileName)
What kind of application is this (console, Windows Forms?).

WinForm.


Is the CSV file created? If it is, you might have a security issue when
posting to the webserver, again this should throw an exception unless you
swallow them :).

Willy.
Nov 17 '05 #10

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OK****************@tk2msftngp13.phx.gbl...

"Brett" <no@spam.com> wrote in message
news:e0**************@TK2MSFTNGP14.phx.gbl...

"Willy Denoyette [MVP]" <wi*************@telenet.be> wrote in message
news:OS*************@TK2MSFTNGP14.phx.gbl...

"Brett" <no@spam.com> wrote in message
news:e%****************@TK2MSFTNGP15.phx.gbl...

"Bruce Wood" <br*******@canada.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
> Brett,
>
> Just to clarify, you are still running the .exe on your user
> machine...
> you're just loading it from a shared drive, right? It works when you
> run it from a local copy, but not when you invoke the same executable
> on the same machine, but loading it from a shared drive. Is this
> accurate?
>

No. The EXE is on a server. Two machines map a J drive to the server.
My developer machine executes the EXE fine. The user machine doesn't.
No errors. The prog writes to a text file but it will not post MS
Access data to a website. All of that works on my developer machine.

Thanks,
Brett
Yes, the exe is on the share but it runs on the client's machine. As
Ignacio said, you have to make sure all components to access the Access
files (loacted on the same share?) are installed on the client.
As there's no exception thrown when trying to open the DB, I suppose
that accessing the DB is not an issue, remains the question what you
mean exactly with post to the webserver, and where is the server located
(same as the exposing the share?).


The DB, text file and EXE are all in the same directory on a shared
drive. DB writes an ID # to the text file. The EXE reads an ID # from
the text file. It uses this ID # to access a table in the DB and writes
that to a CSV file. The CSV is then POSTed to remote website. A FORM
POST is used via
httpResponseArray = myWebClient.UploadFile(strPost, "POST", FileName)
What kind of application is this (console, Windows Forms?).

WinForm.


Is the CSV file created? If it is, you might have a security issue when
posting to the webserver, again this should throw an exception unless you
swallow them :).

Willy.


I can't run the app just yet but what type of security issue on that one
machine may exists?

Thanks,
Brett
Nov 17 '05 #11
Hi,

I'm using oledb. How can I be sure JET is installed?


IIRC the newer versions of MDAC does not include the JET provider, you can
download it from MS site.

Now, I would implement a logging of each steps, somewhere it has to fail and
give you an exception or an error code. It seems to be in the POST upload,
as you said that it created the file correctly.
Does the web require auth?
What if you just do a WebRequest , just to see if you have access to it

Still, I think you are catching an exception somewhere and doing nothing
about it.

cheers,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Nov 17 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
645
by: MF | last post by:
In visual basic 6 I can write an application and toss it up on a shared network drive for the company to access. Works like a champ. In .NET my C# application runs fine on anyones machine, but...
10
504
by: Simon Wallis | last post by:
I know the general purpose for the GAC is to share a component among many applications. But even when you add something to the GAC, you still have to manually create a reference to the DLL in your...
1
2100
by: clusardi2k | last post by:
Hello, I have a shared drive on SGI, Linux, and Windows. The fact that I'm using a shared drive may be mute information. The problem is within the same program a second call to fopen does not...
7
3357
by: clusardi2k | last post by:
Hello, I have a shared drive on SGI, Linux, and Windows. A second call to fopen doesn't create the file if it has been deleted. I would like to use fopen for its pointer return value to...
0
1111
by: John Holmes | last post by:
I have created a shared assembly (ctrl1.dll) with a strong name and added it to the GAC on a development webserver, devweb, and it's dependent dll (dep1.dll) which has also been added to the GAC ....
5
1951
by: Dan Lorenz | last post by:
When trying to use the function CreateDirectory on my local machine everything works fine but when I upload the page to my webhost I get an issue that it can't find path on D:\, though D:\ is what...
3
6798
by: KSC | last post by:
Hello, Is there a way to programmatically determine if a directory is shared and if so, what the sharename is? It seems a simple question, but I have been searching and not found the...
3
7826
by: Shawnk | last post by:
I use two classes to manage the Main() command line (and alot of other stuff) for my prototyping environment. I tryed putting the MainClass in a DLL and just having the other class (which gets...
5
18451
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
From the amount of articles about this one I’m sure this gets asked a lot, but I haven’t yet found a succinct article which explains what is required in its entirety. I work using Visual...
0
7132
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...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
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
5640
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,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
432
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.