Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied on execute bat #3

Open
DanielHWe opened this issue Jan 22, 2020 · 1 comment
Open

Permission denied on execute bat #3

DanielHWe opened this issue Jan 22, 2020 · 1 comment

Comments

@DanielHWe
Copy link

In case I execute the bat file to regenerate the code I get "Permission denied" errors. I checked folder permissions etc. but that not seams to be the problem.

`C:\Windows\system32>cd /d C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop\

C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop>set TOOLS_PATH=packages\Grpc.Tools.1.0.1\tools\windows_x64

C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop>packages\Grpc.Tools.1.0.1\tools\windows_x64\protoc.exe Greeter\protos\greeter.proto --csharp_out Greeter

C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop>packages\Grpc.Tools.1.0.1\tools\windows_x64\protoc.exe Greeter\protos\greeter.proto --grpc_out Greeter --plugin=protoc-gen-grpc=packages\Grpc.Tools.1.0.1\tools\windows_x64\grpc_csharp_plugin.exe

C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop>packages\Grpc.Tools.1.0.1\tools\windows_x64\protoc.exe Chat\protos\chat.proto --csharp_out Chat

C:\tmp\grpc-samples-dotnet-master\grpc-samples-dotnet-master\dotnet_desktop>packages\Grpc.Tools.1.0.1\tools\windows_x64\protoc.exe Chat\protos\chat.proto Chat Chat\protos\chat.proto --grpc_out Chat --plugin=protoc-gen-grpc=packages\Grpc.Tools.1.0.1\tools\windows_x64\grpc_csharp_plugin.exe
Chat: Permission denied`

@mascarasnake
Copy link

Hi Daniel

I played with the codelabs.developer sample and had the same problem. Try this (it worked for me)

cd /d %~dp0

set TOOLS_PATH=packages\Grpc.Tools.1.0.1\tools\windows_x64

%TOOLS_PATH%\protoc.exe Greeter\protos\greeter.proto --csharp_out Greeter

%TOOLS_PATH%\protoc.exe Greeter\protos\greeter.proto --grpc_out Greeter --plugin=protoc-gen-grpc=%TOOLS_PATH%\grpc_csharp_plugin.exe

%TOOLS_PATH%\protoc.exe Chat\protos\chat.proto --csharp_out Chat

%TOOLS_PATH%\protoc.exe Chat\protos\chat.proto --grpc_out Chat --plugin=protoc-gen-grpc=%TOOLS_PATH%\grpc_csharp_plugin.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants