Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading log files 2

Status
Not open for further replies.

wsmall73

Programmer
May 23, 2002
261
US
Does anyone know if there is a way to read a log file on a client pc from an asp.net. One more easy requirement... I can't modify the settings on the client.
 
I don't think so because the client OS needs to be shielded from what I gets from web pages. You wouldn't want just any web page messing with your file system or settings.

Greetings,
Dragonwell
 
I want to get out of the client-server business with Powerbuilder however until I can find a way to read this log file in the temp directory I am stuck. I have considered building an engine on the client but I would like to avoid going that route if at all possible.
 
You could prompt the user to upload it for you.

But otherwise, dragonwell is correct, no client is going to open up their PC to allow some web site to read their files. If you didn't have the requirement of "no changes to the client", you'd be OK (use an ActiveX or set the client's browser to allow full access from your site).

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Yes as the other stated i think the only way is to make sure a DLL or EXE is available on all clients.

I know i used client side javascript to call a DLL (you can) in the a thin client interface

But you HAVE to deploy the executable/dll to all clients, maybe via active-X.

Sorry for the fuzzy answer but maybe it will give you a hunch.

And so i wonder ( dont know maybe anyone else know ) can this guy deploy a .DLL to all clients (not assemblies old style dlls) then use the e.g.

Code:
[DllImport("User32.dll")]
public static extern int MessageBox(int h, string m, string c, int type);

MessageBox(0, "Test", "My Message Box", 0);

to let this dll do the necessary actions to send the log file to a server using their own client/server actions or is that not even necessary?

Convincing the client that this is really the only way will be the toughest part then especially if the project is limited on budget.


Edward@de-leau.com
 
Thanks everyone for you post... I will keep you posted on the solution that I come to on this one...

Chiph- are you suggesting that an Active-X is the way to go if I were able to change the client?
 
wow... back in the game.

So the solution was to utilize javascript... you can use the fso object to read and write files on the client machine... I ended up utilizing this along with a webservice to easily forward the information back to the database... worked like a champ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top