I have a Visual Basic windows app that reads incoming SMTP email files from c:\inetpub\mailroot\Drop\ and then moves them renamed to c:\primary\ .
I’ve set Windows file permissions of both directories c:\inetpub\mailroot\Drop\ and c:\primary\ to “everyone” full access.
I have a 2nd VB.NET windows app that reads each file, processes it, then deletes it using ‘kill(filepath)’ which gets the error:
“An unhandled exception of type 'System.UnauthorizedAccessException' occurred in Microsoft.VisualBasic.dll
Additional information: Access to the path '\\C\Primary\9255551212#vzwpix.com #71615 1.TXT' is denied.”
The file’s property > Security has “everyone” full access.
How do I set file permissions for the directories to prevent this error and be safe from hacker attack and not use “everyone” permission?
SOLUTION: Changed \\C to just "C:".
I'm attempting to set up a test environment where the software is being developed on host machines then tested in a Virtual Machine and the VM has all code mapped to a Z:/ drive. My issue is that Apache is complaining and won't start up saying that I have an invalid Include path of Z:/source/myconf.conf. Anyone have luck previously of setting conf files up in a different different drive path that can help me understand what I'm doing wrong? I've tried with and without quotes as well.
Include path statement:
Include "Z:/source/myconf.conf"
Additional info:
Z is a virtual drive through VMWare also known as \\vmware-host
The specific error in the Application logs is as follows:
The Apache service named reported the following error:
httpd.exe: Syntax error on .. of C:/.../httpd.conf: Invalid Include path Z:/source/myconf.conf
Seems like its finding issue connecting to the Z drive and as z is the network drive, it must require user name and password which is creating issue
solution
If we can save the user name and password so that it won't ask for user credential dbl clicking to z drive.
To save permanently the user credential
Open command prompt and type
"net use Z: \servername\sharename /persistent:yes /savecred"
Now restart and see it should not ask user credential to connect to z drive and the apache error won't be there.
I was looking for an IDE that will allow me to import all the necessary files to develop and debug Magento modules and found Zend Studio came recommended. I am having trouble connecting to my ftp to download the files. I created a remote connection using all of the credentials I had on Filezilla and when I test the connection it will succeed. Now when I go to the next step it tells me:
The project directory you have entered does not exist on the server.
Please enter a valid project directory
The host name matches my ftp server, username and password are valid, the directory I'm connecting to exists on the server, and I'm on port 21 which is not interrupted by my firewall. I don't know if I should stick with Zend or not and I haven't been able to properly test it. Any advice on fixing this issue or any other IDE recommendations would be appreciated. Thanks!
the directory I'm connecting to exists on the server
Double-check that. Note, that the path you enter is relative:
there's a "Initial Directory" in "Remote Connection Profile", and "Project Directory" in project properties->"Remote Server Support"
I have the following code:
$file_name = "1234";
$filename = "L:\\videoette_converter\\batch_files\\".$file_name.'.bat';
if (!$handle = fopen($filename, 'a')) {
echo "Cannot open file ($filename)";
exit;
}
I get the following error from that code:
Warning: fopen(L:\videoette_converter\batch_files\1234.bat)
[function.fopen]: failed to open stream: No such file or directory in
C:\wamp\www\videoette_converter\index.php on line 47
and the debug line from my php
Cannot open file (L:\videoette_converter\batch_files\1234.bat)
However the folder L:\videoette_converter\batch_files does exist as a mapped drive, and I have given "Everyone" full permissions. What could be the problem?
Are you sure there's no domain controller in the way?
When the Windows machine that serves the files is in an Active Directory domain:
1) The machine that runs the WAMP must be in the same domain.
2) The account used to run the Apache service on your WAMP machine must have at least read rights on the share you want to access. Instead of running the Apache service as "Local System" or "wampapache" you should specify your domain user account. (P.S.: I like XAMPP over Wamp for this kind of development, but that's probably just a personal preference)
Also I'm guessing id'd be better if you used a UNC path instead of a drive letter. It always worked for me that way. You don't need to use escaped backslashes, you can replace them with single forward ones:
//yourwinserver/sharename/path/to/file.bat
Here are the details:
I installed the oracle instant client 11.2.0.2.0 from the OTN download page on a windows 7 64 bit vm (vmware).
I am trying to to connect to a remote oracle database, and I can successfully connect with one program using TNS, but not with SQL*Plus and other applications.
Trying to connect with SQL*Plus, using schema#servicename, password, etc, gives the above error.
To connect via SQL Developer, normally I would use the basic connection info and not rely on tnsnames, but trying a normal connection gives me: io error: unknown host specified. SQL Developer can successfully connect and query database if i use the TNS protocol.
Trying from other programs gives me the same error I got with SQL*Plus. Same when trying with the service name from tnsnames.
This is obviously quite frustrating for it to work one way and not the other. I followed all the normal instructions for using the instant client, the directory with instantclient has been addded to the PATH, a TNS_ADMIN entry has also been created, with the directory to the tnsnames.ora file
Well, on a whim, I went to changing everything in my setup to match an windows 2003 server that i had setup with instant client before. The main changes were putting the instant client in a folder at the root of the drive (not program files/oracle/etc), but c:/oracle, i know ive seen other posts saying that oracle was particular about characters in the directory path, maybe spaces are a no-no too?
I also add a bunch more environmental variables, anythign that was on the other machine, ORACLE_HOME (to root of instance), SQL_PATH (same), and added the root of the directory to the PATH system variable, not just the folder with the instantclient files. Anyways, I'm happy its working, anyone one of these changes could have been it though-
You may use ProcessMonitor and look at what your sqlplus process is doing. In my case TNS_ADMIN was correctly defined but, by mistake, my tnsnames.ora and sqlnet.ora had a stupid ".txt" extension, added by default by notepad when I created those files. And because "Windows Explorer" has the "Hide extensions for known file types" option set by default, the naming error wasn't obvious at all.
I installed the 12.1 instant client. For me, the problem was solved by creating \network\admin\tnsnames.ora file. Here's the PowerShell I used:
$source = "C:\Users\USER1\Desktop\tnsnames.ora"
$target = "C:\oracle\product\12.1.0\client_1\network\admin"
mkdir $target
copy-item $source $target