I am making a call to:
config.Save(ConfigurationSaveMode.Modified);
and this call works fine in Windows XP.
When I run it in Vista I get:
Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\system32\2lqfj0cv.tmp' is denied. (C:\Windows\system32\MsiExec.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\system32\2lqfj0cv.tmp' is denied.
Now I guss the pertinent fact here is that I am running the call above from a Windows Installer MSI (call to a managed DLL). I guess I need to do something to up the user permissions? I really don't know a lot about Vista permissions?
Try using run as admin. Also do you mean to be editing the MSIEXEC.config?
http://msdn.microsoft.com/en-us/library/bb756929.aspx
Related
While installing the Weblogic in windows 10 using jar file, I am getting the error message as Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again. though am executing as Administrator. From the log file I got the below error.
WARNING [1] com.oracle.cie.common.jni.WinRegistryHelper - Create Key Failed: HKEY_LOCAL_MACHINE\Software\Oracle
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.PlatformHelper - createRegistry to add a value failed
2017-10-06 11:19:54,972 SEVERE [1] com.oracle.cie.nextgen.launcher.Launcher - Unable to access or modify the system registry. Select Run as Administrator when opening the Command Prompt and try again.
I understood that on making the System Registry entry HKEY_LOCAL_MACHINE\Software\Oracle, it is failing because the same entry already exists in my system as HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE. Though system registry is case-insensitive, weblogic is failing on making entries to this registry. Is there any solution to overcome this? The same issue has been already posted in different sites but not yet answered.Any help to solve this issue will be really appreciable.
I had the same problem, the next lines works to solve the problem.
Open cmd like administrator.
java -d64 -jar fmw_12.2.1.3.0_wls.jar If you don't have correctly configured the JAVA_HOME, you can replace the word "java", for the path where you have installed de JDK. Something like this:
C:\JRockit\jdk1.8.0_144\bin\java.exe
I'm trying to install PostgreSQL 9.0.1 on Windows Server 2008, but every time, there will be such error message
"Problem running post-install step. Installation may not complete
correctly. Failed to start the database server"
in the installation log, it is due to a failure in initdb.exe, error is
"The program postgres is needed by initdb, but was not found in the
same directory as D:\PostgreSQL\9.0\bin\initdb.exe, Check your
installation."
I searched such error in internet and tried the solution in this page "Installing PostgreSQL on Windows Server 2008", but no help.
After reading code of initdb, I know it is caused by the window api CreateProcess in the function pipe_read_line. the calling of CreateProcess returned -5 (access denied). it is because initdb was executed in a subprocess invoked in the functiion CreateRestrictedProcess.
I know it is due to privilege setting, I ran gpedit.msc to add users group (even everyone) into almost all privilege policy, but the error was still there.
I also assigned full control rights of the install target folder to everyone, no help!
I also tried postgresql 9.6.2, the error was still there :-)
from the code, I know if there is the environment variable PG_RESTRICT_EXEC with value 1, initdb will not executed in a restricted process. so before run initdb.exe, I set an environment PG_RESTRICT_EXEC=1 in command prompt, then run initdb.exe. this time such error was gone!!
So I wonder how to change the os settings to allow the installation running without error!
I have managed to install TeamCity successfully, with a BuildAgent running.
However, after running runall stop, followed by runall start, I get the following error:
error in script file line: 41 file input/output errorerror java.io.FileNotFoundException: C:\ProgramData\JetBrains\TeamCity\system\buildserver.data (Access is denied) opening file - file C:/ProgramData/JetBrains/TeamCity/system/buildserver.data
SQL exception: error in script file line: 41 file input/output errorerror java.io.FileNotFoundException: C:\ProgramData\JetBrains\TeamCity\system\buildserver.data (Access is denied) opening file - file C:/ProgramData/JetBrains/TeamCity/system/buildserver.data
The file exists in the directory What could be the issue?
I am using TeamCity 8.1
Looks like the problem is one of folder permissions which causes me to suspect that the user that the TeamCity Windows service runs as doesn't have read/write access to the folder where you chose to store your TeamCity data.
I had the same problem for my local windows installation. The solution is easy run startup.but script as administrator.
The answer is the oldest trick in the book..
After restarting the computer, it works.
When i run my app using PsExec (same machine but with user credentials) i receive the following error when trying to load a dll:
Unable to load DLL 'AcWsHost.dll': Exception from HRESULT: 0xE06D7363.
It happen also when the credentials are of the same user (Administrator).
Any idea why it happens or how i can solve it?
I'm trying to run a program in windows 7 environment. It is giving me this error,
Exception unloading sessions to persistent storage
java.io.FileNotFoundException: C:\Program Files\dir...
How do i give permissions in windows 7 for the directory dir?
Windows prevents applications from writing to the "Program Files" directory as a matter of policy. Choose a different location to store your files.
If this error is being generated by the Java framework itself, upgrade it.