i have followed the instruction in previous posts but still cannot get user-secret to work.
I'm trying to install it on my IIS server. I run everything in this path:
C:\inetpub\wwwroot\myapp\wwwroot>
dnvm use 1.0.0-rc1-update1 -p
dnu commands install Microsoft.Extensions.SecretManager --overwrite
the installation passes and I get the message:
The following commands were installed: user-secret
but them when i run:
user-secret -h
I get the following error:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Framework.SecretManager.CommandOutputProvider..ctor(IRuntimeEnvi
ronment runtimeEnv)
at Microsoft.Framework.SecretManager.Program..ctor(IRuntimeEnvironment runtim
eEnv)
needless to say - no UserSecrets folder is created...
can you help?
thanks!
Just try to restart Visual Studio and Developer Command Prompt for VS2015.
It worked for me.
dnx v. 1.0.0-rc1-final
Microsoft.Extensions.SecretManager v. 1.0.0-rc1-final
Related
I've installed Visual Studio for Mac community 8.10.11 and created a new Project based on React + .net Core WebAPI. But If I try to run the app, I got
/Users/xxx/Projects/yyy/yyy/yyy.csproj(5,5): Warning MSB3073: The command "node --version" exited with code 127. (MSB3073) (yyy)
/Users/xxx/Projects/yyy/yyy/yyy.csproj(5,5): Warning MSB4181: The "Exec" task returned false but did not log an error. (MSB4181) (yyy)
/Users/xxx/Projects/yyy/yyy/yyy.csproj(5,5): Error: Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE. (yyy)
My bash knows node and the folder is also part of echo $path. How can I add it to VS?
Thanks!
I experienced the same issue because I used homebrew to install Node.js.
According to the Homebrew documentation:
GUI apps on macOS don’t have Homebrew’s prefix in their PATH by default. If you’re on Mountain Lion or later, you can fix this by running sudo launchctl config user path "$(brew --prefix)/bin:${PATH}" and then rebooting, as documented in man launchctl. Note that this sets the launchctl PATH for all users.
If you installed node from elsewhere, you should be able to modify this command to include the path to wherever your node executable is:
sudo launchctl config user path "<path-to-bin-folder>:${PATH}"
I tried to install the DB2 V11.1 FP5 on a SLES-12-SP4 machine. So far I
downloaded the universal package
extracted the universal package
called the command "./installFixPack -b /opt/ibm/db2/V11.1/ -p /opt/ibm/db2/fp5/" as root user
But the installFixPack stopps working sometimes at step 44 or 47 or also step 50 of 73 without any clear error message. In the log file I find a message like
"ERROR: The install path "/opt/ibm/db2/fp5" is invalid. Specify a
valid install path.
ERROR: DBI20105E An error occurred while installing the following
file set: "DB2_PRODUCT_MESSAGES_FR_11.1.4.5_linuxamd64_x86_64".
Because these files were not successfully installed, functionality
that depends on these files might not work as expected.
Rolling back what has been installed"
Any hint what I'm doing wrong?
Thanks so much for reading so far
best regards
Thomas Graf
./installFixPack -b is to patch an aleady installed DB2 HOME cf: pass from FP4 To FP5.
if you want to install the FP5 into a new path use db2setup (or ./db2setup -r for silent install)
you should add -l /var/tmp/installlog.log -t /var/tmp/installtrace.log to the installFixPack to see exactly what is the error.
Even if you started the install with root, the app can use another user to install some files/libraries.
Do you have the same message after manually creating this folder ?
I have been trying to install the CCS(code composer studio) in the ubuntu server running in VM through SSH.
I'm doing this for the first time, and I have hit an error, searched online but couldn't find any help.
I have installed the preliminary lib requirement from TI website, that is required for the CCS, while installing the CCS its showing this error on tmp folder in the linux server.
CCS_ERROR: Install exited with error code
no display name and no $DISPLAY environment variable
I searched the folder and found, there is no env $DISPLAY as i do not need it.
Can someone kindly help me to get rid of this error.
I got an answer from TI employee, which fixed the above mentioned error.
Adding it here, just so that if anyone hits the same error.
without a display specified, the only option is to run the installer
in unattended mode to remove the GUI dependency. This will do a
COMPLETE install of CCS.
To install all of ccs in unattended mode you need to use the following
command line:
<installername> --prefix $HOME/ti --mode unattended
Or
sudo <installername> --prefix /opt/ti --mode unattended
I am trying the petshop client generation example on github and autorest just exits without creating anything or throwing any errors. Autorest behaves like I did not pass any arguments. Attached is a screenshot of my powershell execution.
Try executing your same command but add --verbose at the end to tell autorest to print out any errors.
I was experiencing the same problem and what worked for me was creating the following readme.yml file and simply running the command
autorest readme.yml
With those two things (readme.yml and the command) I was able to generate the code in csharp without any issues.
Image of Readme.yml for csharp code generation:
For me what finally worked was:
Install the latest Node from https://nodejs.org/
Go to C:\Users\%userprofile%\AppData\Roaming\npm and delete the 2 autorest files there if you have them.
Open a Command Prompt (type cmd in the address of any Windows folder)
In the Command Prompt type this command:
npm cache clean -f
Now, also in the same Command Prompt, type this command:
npm install autorest -g
You should now be able to generate your client.
This answer on GitHub repo of Autorest, suggest that you execute
autorest --reset
after updating. It removes older plugins of Autorest. I had the same problem (without updating Autorest) and it has solved after that.
Everything was working perfectly last month, my Cordova projects were building with no problems but suddenly nothing works. Not even the Cordova Hello World example.
I can create a Cordova project.
But when I try to build it I get errors.
I'm using Ubuntu 14.04. When I try build a project with
cordova build
I get a whole bunch of acces errors
rm: could not remove file (code EACCES):
and
Error: EACCES, permission denied
then when I try to build a project with sudo I get the following errors
[Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.]
and
Command failed with exit code 2. You may not have the required environment or OS to build this project
Running export in terminal doesn't solve the problem either as my android-sdk is installed in a folder called Software/android-sdk-linux and
echo $ANDROID_HOME
returns the correct path
Any idea whats actually going on here. Do I really need to uninstall everything and start from scratch? say it aint so!
I have been working on that issue for the last two hours. Somehow I managed to make it work. Here's what I did:
I also had those Error: EACCES, permission denied messages when running cordova build. Running ll on the directory of the project showed, that the folders platforms, plugins and www needed root rights. That's why we had to run the cordova build with sudo. Maybe both, you and me, created this cordova project with sudo cordova create .... Try this: Create another cordova project and check if the named folders still need root rights. If yes, change them with chmod. If not, you should now be able to run cordova build without sudo.
Make sure you added the PATH variable in the correct way. Either add the export ANDROID_HOME=... to your ~/.bashrc or to your ~/.profile. When doing the latter, make sure you run source ~/.profile after editing the file. Otherwise your bash won't notice the changes. Best practise would be adding this to your ~/.bashrc.
export ANDROID_HOME=~/.../android-sdk-linux
export PATH=$ANDROID_HOME/tools:$PATH
export PATH=$ANDROID_HOME/platform-tools:$PATH
You should be able to run android in your bash, before trying to build a cordova project, because cordova uses that command.
Hope that works for you, too.