Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

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 ASP Free Forums Sponsor:
  #1  
Old March 20th, 2005, 07:53 PM
semmelbroesel semmelbroesel is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 1 semmelbroesel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 m 9 sec
Reputation Power: 0
Permission denied only when started from within application

Hi,
I wrote a little VB6 program that is being called by my email server when a certain email comes in. The program is then supposed to access a file on another PC on the LAN and create an email out of that file.

Theoretically it works perfectly, but sometimes when the email server starts the program I get a "Permission Denied" error.
If I start the program by hand it works perfectly.

I am not using any command line parameters - I just start the program, and it does all by itself.

The path is correct and the same in both cases.

Both PCs are running Windows XP.

I tried having the email server start a little program whose only purpose was to start my main program - I wanted to see if there was something in the way that my email server starts the program that would deny it access - that didn't help either.

I tried multiple ways of accessing the file (pretty much all I could find), and all give the same result. Also, I have not been able to get any query to work that tells me if the target file exists. Usually it works, but not via network.

I don't think it has to do with my code since I tried multiple approaches, but there has to be something in the Windows permissions etc. that won't let my program through...

Any ideas?

Thanks!

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Permission denied only when started from within application


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 3 hosted by Hostway