Open SandVonSchaewen opened 2 years ago
When using Windows authentication, you need to specify the username and password of the windows user running on the host when starting the container. If you are using another user for creating the container, you can change $auth to UserPassword and do the same in launch.json (Windows -> UserPassword) and try again,
Tried that.
I also tried verboose logging on AL Extension, but I can't see any extended information about the issue. Do I might need to add the domain to the user credentials? I don't think so, because I use a local user.
Are you using a (sophos) proxy?
Are you using a (sophos) proxy?
Yes. Let me guess I need some kind of proxy Authentification Configuration neccessary, despite using a local sandbox ? I use CNTLM for outgoing requests on other programs so the sophos should not be an issue.
The EnvironmentVariables are set to CNTLM and should be used by VS Code ( HTTP_PROXY and HTTPS_PROXY) It works for tools like node.js and others.
Note: The Docker Container has configured following Proxy Variables:
HTTP_PROXY:
http://host.docker.internal:53128
HTTPS_PROXY:
http://host.docker.internal:53128
Local Machine CNTLM is exposed to localhost:53128
I am not really sure. I just googled the error message (Target service not allowed
) and the search results all mentioned sophos.
Well, It might help, if you run visual studio code as administrator, since you might have installed it on your user and this user is not the same as the one you are using now.
1. Describe the bug When trying to compile a Hello World Al Project created with the Visual Studo Code Command AL:Go! the symbols can not be retrieved from the Local Businesscentral Docker Sandbox instance.
Terminal Output looks this way:
These are my Powershell Localhost Sandbox Scripts to Create the Docker Instance
Businesscentral itself works without any issues: Call on on sandbox via Browser returns this JSON: http://[bcsandbox:7049/BC/dev/metadata?tenant=default](http://bcsandbox:7049/BC/dev/metadata?tenant=default)
launch.json
app.json
HelloWorld.al
2. To Reproduce
3. Expected behavior Downloads the Symbols to Start and Publish the app
4. Actual behavior Compile fails and report problems in visual studio code:
Output
5. Versions: