I try generate dbml from sdf file.
So I localize sqlMetal util in: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin
Sdf DB file path: D:\DB_TEST\Spiri_SQL_CE_DB.sdf
So I try this command on generate dbml file:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlmetal.exe D:\DB_TEST\
Spiri_SQL_CE_DB.sdf /dbml:D:\DB_TEST\Spiri_SQL_CE_DB.sdf\Spiri_SQL_CE_DB.dbml
I get this error:
Error : SQM1007: There is an IO error and the output file 'D:\DB_TEST\Spiri_SQL_
CE_DB.sdf\Spiri_SQL_CE_DB.dbml' cannot be opened.
So I try this command:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlmetal.exe D:\DB_TEST\
Spiri_SQL_CE_DB.sdf /dbml:Spiri_SQL_CE_DB.dbml
But I get this error:
Error : Access to the path 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Bin\Spiri_SQL_CE_DB.dbml' is denied.
On the end I try this version of command:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin>sqlMetal /dbml:Spiri_SQL
_CE_DB.dbml D:\DB_TEST\Spiri_SQL_CE_DB.sdf
But I get same error:
Error : Access to the path 'C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\
Bin\Spiri_SQL_CE_DB.dbml' is denied.
I know that file Spiri_SQL_CE_DB.dbml doesn’t exist yet, but I try generate with sqlMetal turil this file, what is bad?
Copy both the SDF and DBML to a location where you have sufficient write/modify rights.
Else start the command prompt with elevated permissions (aka runas administrator).
BTW your first attempt is completely bogus.
OR do:
sqlMetal /dbml:D:\DB_TEST\Spiri_SQL_CE_DB.dbml D:\DB_TEST\Spiri_SQL_CE_DB.sdf
Related
I'm attempting to take a DLL that is not strongly named and then strongly name it without needing to have the source code, since I will not always have the source code, only the DLL. When I try and run the batch file with the below code to accomplish this I get an error. Here is the code:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools\ildasm.exe" .\targetFile.dll /out:.\Signed\targetFile.il
"C:\Windows\Microsoft.NET\Framework\v2.0.50727\ilasm.exe" .\Signed\targetFile.il /dll /key=.\targetFile.snk /output=.\Signed\targetFile.dll
The error I get is the following:
.\Signed\targetFile.il(43) : error -- Failed to extract public key: 0x80070005
I'm not sure what I'm missing, I have permissions to all involved folders including the MacnineKeys folder in ProgramData.
I got an old app and I should just change the MySQL connection but I can't build it because it wrote on C++ Builder 6.
I've got the C++ Builder XE7 and installed missed libraries then linked those path in project options but the IDE write this error:
[ilink32 Error] Fatal: Unable to open file '.OBJ'
When I remove a path of library I don't get that error then I set back this path and remove another I get again that. I'm very confused.
The full log is:
Checking project dependencies...
Compiling guba2.cbproj (Debug, Win32)
ilink32 command line
c:\program files (x86)\embarcadero\studio\15.0\bin\ilink32.exe -G8 -LDebug_Build;"C:\Program Files (x86)\QuickReport\QR6-RAD-XE7\win32\release";
"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"c:\program files (x86)\embarcadero\studio\15.0\lib\win32\release";
"C:\Users\Én\Downloads\Indy10C21\Win32\C21";"c:\program files (x86)\embarcadero\studio\15.0\lib\debug";cxmlfile;"c:\program files
(x86)\embarcadero\studio\15.0\Projects\Lib";xmlparser;"c:\Program Files\Borland\CBuilder6\Projects";"c:\program files
(x86)\embarcadero\studio\15.0\lib\obj";"c:\program files (x86)\embarcadero\studio\15.0\lib";"c:\Program Files\Borland\CBuilder6\MyDac\Lib";
"c:\program files (x86)\embarcadero\studio\15.0\lib\psdk";cxmlfile;"c:\program files (x86)\embarcadero\studio\15.0\Projects\Lib";xmlparser;
"c:\Program Files\Borland\CBuilder6\Projects";"c:\program files (x86)\embarcadero\studio\15.0\lib\obj";"c:\program files
(x86)\embarcadero\studio\15.0\lib";"c:\Program Files\Borland\CBuilder6\MyDac\Lib";"c:\program files (x86)\embarcadero\studio\15.0\lib\psdk";
"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"c:\program files (x86)\embarcadero\studio\15.0\lib\win32\release";"c:\program
files (x86)\embarcadero\studio\15.0\lib\win32\release\psdk";"C:\Program Files (x86)\FastReports\LibD21";"C:\Program Files
(x86)\Raize\CS5\Lib\RS-XE7\Win32";"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"C:\Program Files
(x86)\QuickReport\QR6-RAD-XE7\win32\release";"C:\Program Files (x86)\QuickReport\QR6-RAD-XE7\win32\debug";
C:\Users\Public\Documents\Embarcadero\Studio\15.0\DCP -jDebug_Build;"C:\Program Files (x86)\QuickReport\QR6-RAD-XE7\win32\release";"C:\Program Files
(x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"c:\program files (x86)\embarcadero\studio\15.0\lib\win32\release";
"C:\Users\Én\Downloads\Indy10C21\Win32\C21";"c:\program files (x86)\embarcadero\studio\15.0\lib\debug";cxmlfile;"c:\program files
(x86)\embarcadero\studio\15.0\Projects\Lib";xmlparser;"c:\Program Files\Borland\CBuilder6\Projects";"c:\program files
(x86)\embarcadero\studio\15.0\lib\obj";"c:\program files (x86)\embarcadero\studio\15.0\lib";"c:\Program Files\Borland\CBuilder6\MyDac\Lib";
"c:\program files (x86)\embarcadero\studio\15.0\lib\psdk";cxmlfile;"c:\program files (x86)\embarcadero\studio\15.0\Projects\Lib";xmlparser;
"c:\Program Files\Borland\CBuilder6\Projects";"c:\program files (x86)\embarcadero\studio\15.0\lib\obj";"c:\program files
(x86)\embarcadero\studio\15.0\lib";"c:\Program Files\Borland\CBuilder6\MyDac\Lib";"c:\program files (x86)\embarcadero\studio\15.0\lib\psdk";
"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"c:\program files (x86)\embarcadero\studio\15.0\lib\win32\release";"c:\program
files (x86)\embarcadero\studio\15.0\lib\win32\release\psdk";"C:\Program Files (x86)\FastReports\LibD21";"C:\Program Files
(x86)\Raize\CS5\Lib\RS-XE7\Win32";"C:\Program Files (x86)\Devart\MyDAC for RAD Studio XE7\Lib\Win32";"C:\Program Files
(x86)\QuickReport\QR6-RAD-XE7\win32\release";"C:\Program Files (x86)\QuickReport\QR6-RAD-XE7\win32\debug";
C:\Users\Public\Documents\Embarcadero\Studio\15.0\DCP -l. -v -Gn
-GA"C:\Users\N7409~1\AppData\Local\Temp\vfs15D2.tmp"="C:\Users\Én\Documents\Embarcadero\Studio\Projects\makosguba kiszallitas 2\Unit1.dfm" -aa -V5.0
-Tpe c0w32 memmgr.lib sysinit.obj Debug_Build\guba2.obj Debug_Build\kaja_classes.obj Debug_Build\md5.obj Debug_Build\online_orders.obj
Debug_Build\order_classes.obj Debug_Build\Unit1.obj Debug_Build\user_classes.obj , .\guba2.exe , .\guba2.map , vcl.lib rtl.lib vclx.lib bdertl.lib
dbrtl.lib dac60.lib mydac60.lib vcldb.lib indycore.lib indysystem.lib bcbsmp.lib IndyProtocols.lib dac210.lib mydac210.lib vclimg.lib xmlrtl.lib
vclactnband.lib QRWRunDXE7w64.lib import32.lib cp32mt.lib , , guba2.res
[ilink32 Error] Fatal: Unable to open file '.OBJ'
Failed
Elapsed time: 00:00:11.8
Remove the instruction #pragma link "XXX.Obj".
I am getting the below error on trying to restart the IWLS on JDEV
C:\Users\c-sutipirn\system11.1.2.2.39.61.83.1\DefaultDomain\bin\startWebLogic.cmd
[waiting for the server to complete its initialization...]
\Java\jdk1.7.0_25 was unexpected at this time. Process exited.
my path variable is set to:
C:\Oracle\product\11.2.0\client_2\bin;C:\Program Files (x86)\Windows
Kits\8.0\Windows Performance
Toolkit\;C:\app\client\product\12.1.0\client_1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program
Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft\Web Platform
Installer\;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\110\Tools\Binn\ManagementStudio\;C:\Program Files
(x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files
(x86)\Subversion\bin;C:\Program Files
(x86)\Java\jre7\bin;C:\Oracle\Middleware\jdk160_24
Any help to resolve this issue.
11.1.2.2 needs JDK 6 to work.
Upgrade to either 12c or at least 11.1.2.4 and you will be able to run with JDK7.
Problem is that WebLogic server starting scripts (as startWebLogic.cmd and setDomainEnv.cmd ) refers system variables as %JAVA_HOME% (or %CLASSPATH%) without quotation e.g. "%JAVA_HOME%".
"%1 was unexpected at this time"
is shell error result caused by spaces in used system variables.
I'm solving similar problem with WebLogic 12.1.x server and I do not know simple solution, start script is pretty complex and hard to fix.
It seems that this can be related to the value of the PATH environment variable.
If it contains a path (with quotes) like ;"C:\Program Files (x86)\Java\jre7\bin"; (with a space) it will result in "Files was unexpected at this time".
Removing the quotes seems to resolve this (;C:\Program Files (x86)\Java\jre7\bin;) and using the short name could be an alternative (;C:\PROGRA~2\Java\jre7\bin;, try "dir /X" to get the short name).
Ran into similar issue. Turned out %PATH% was too long and blew up in c:\Oracle\Middleware\Oracle_Home\oracle_common\common\bin\shortenPaths.cmd
In my case, I just commented out with REM as follows:
REM if NOT "%PATH%"=="" (
call :handle_path
REM )
goto :EOF
PS: didn't see the EOF label so i also added :EOF at the end of the file
I solved it through path variables changes for windows, by following this steps:
define JAVA_HOME and MVN_HOME first as new env viriables
Update Path and add new viariables: %JAVA_HOME%\bin and %MVN_HOME%\bin
Make sure you do not have nay other variables with a full path name like: C:\Program Files.
I had this trouble.
If you wanna create new Oracle domain on weblogic, you should make comments on line with loop (for) in Oracle\Middleware\Oracle_Home\oracle_common\common\bin\config.cmd. After that call config.cmd through cmd.
Where is TextTransform.exe located?
I'm trying to implement the solution in this post:
Get Visual Studio to run a T4 Template on every build
However I'm getting an error
"'TextTransform.exe' is not recognized as an internal or external command,
operable program or batch file."
I have been looking through the program files, however not sure where TextTransform.exe is located.
It should be below
\Program Files\Common Files\Microsoft Shared\TextTemplating\
see: http://msdn.microsoft.com/en-us/library/bb126245.aspx
Anyone coming to this question that's using VS 2017 or later should be using vswhere to locate this file. #codingdave's comment is the closest but that still won't work on many computers.
I've added an example to the Microsoft Docs article feedback that shows how to do this with Powershell.
#the path to VSWhere.exe is always in programfiles(x86)
$progFilesx86Path = [System.Environment]::ExpandEnvironmentVariables("%programfiles(x86)%")
$vsWherePath = Join-Path $progFilesx86Path "\Microsoft Visual Studio\Installer\vswhere.exe"
# this tells vswhere to use paths of the latest version of visual studio installed
# to locate this exe anywhere in those paths, and return a single textual
# value (not a json object or xml payload)
$ttExe = & $vsWherePath -latest -find **\TextTransform.exe -format value
if (-Not(Test-Path $ttExe)){
throw "Could not locate TextTransform.exe"
}
#then to invoke a transformation
& "$ttExe" c:\Source\YourTransform.tt
From #codingdave's comment
For VS2017, VS2019 location of TextTransform.exe will be
C:\Program Files (x86)\Microsoft Visual Studio\<<Version>>\<<Edition>>\Common7\IDE
Version -> (2017/2019)
Edition -> (Community/Professional/Enterprise)
And in pre build event we can use macro like
"$(DevEnvDir)\TextTransform.exe" "$(ProjectDir)AssemblyInfo.tt"
I would recommend trying this over that solution: http://www.olegsych.com/2010/04/understanding-t4-msbuild-integration
If you don't have VS 2010, though, I suppose you're stuck doing it the hard way.
I have been trying to install Maven on my machine win 7 (64 bit)for the first time.I have a problem setting the path environment System variable . iam getting error JAVA_HOME is set to an invalid directory.
i have tried each and every method ehich is mentioned in stack over flow posts but i didnt get a solution. plz help me.![enter image description here][1]
here my variables are
CLASS_PATH:C:\Program Files\Java\jdk1.8.0_45\bin\lib
JAVA_HOME:C:\Program Files\Java\jdk1.8.0_45\
M2:%M2_HOME%\bin
M2_HOME:C:\Program Files\apache-maven-3.3.3
MAVEN_HOME:C:\Program Files\apache-maven-3.3.3
PATH:C:\ProgramData\Oracle\Java\javapath;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Java\jdk1.8.0_45\bin;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files (x86)\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\MongoDB\Server\3.0\bin;%M2_HOME%\bin;
1> In Enviroment variable setup screen remove all variable to setup maven.
2> You need to set following variable
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_45
MAVEN_HOME = C:\Program Files\apache-maven-3.3.3
3> In Path Variable click on edit then set follwing code
;%JAVA_HOME%\bin;%MAVEN_HOME%\bin