-
Notifications
You must be signed in to change notification settings - Fork 108
Error occured while contanting the server Bing Maps Fleet Tracker Deployment Portal #95
Comments
I am having the same issue. I do see the map with it zoomed into my current location. |
I got the same Error except that the map is shown. The link under Login is "http://localhost:13954/api/users/login?redirectUri=http://localhost:4200/", though I have set the 'Redirect URIs' as 'https://mydeploymentname.azurewebsites.net/signin-oidc'. |
Did somebody figure this out? I am getting same error. |
Same here. I put the values in json files nothing changes |
I guess that no one bothered to update one click deployment script after karma environment variable got deprecated. As a result, it most likely deploys with default environment - in this case local, pointing to localhost even from Azure... First, manually created Azure SQL database and added connection strings to BOTH Backend and Frontend appsettings.json. Actually at later stage figured that might have been redundant because Azure asked to configure SQL dependancy again, during publish. Then did all the builds, starting from Frontend, copied Frontend to Backend wwwroot/dist folder. Next, deployed Function App and configured app settings in Azure. That one still has a problem unresolved though - System.Exception: Pubished Backend. Changed redirect URI in Azure AD app registrations to the site name provided. Still have to fix Function App and test mobile clients. |
@jaigars Wow that is something that I would have never guessed. I dont work for the company I was deploying this to anymore. However I am still interested in implementing it. As soon as a get the tenant for my own company I will try it for sure, I will try to solve the Function App problem and report back any findings. |
I suspect that problem was something like that but still can't deploy a working portal. Now I am receiving login error 403.... |
So. What I found so far. You don't need to do a manual deployment. Can deploy from the portal and then deploy only the rebuilt angular app. |
Is it possible to deploy without Frontend with one click deployment? I don't see such an option in the deployment form and would assume that one click deploys setting Serving: ServeFrontend to true... Are you actually deploying two frontends then - one that gets screwed with one click and another one separately? In any case that seems to confirm the problem with one click. If you deploy Frontend separately, it means that you pre-populate it with backend urls in environment.ts and this is exactly what apparently fails with one click... But more to the point. Is your Function App working when you deployed with one click? Haven't had enough time to tinker with it, but when publishing manually, it looks like zip publish to Azure script is not copying SQLServerTypes from build directory to PubTmp and on to the zip file. And consequently it fails loading native libs at runtime. |
I deploy everything from OneClick portal - then just override files in Backend wwwroot/dist directory |
Make sure you check multitenant option (Any Azure AD directory - Multitenant) when registering app in Azure AD and also select Identity Tokens under Implicit Grant. As for the FunctionApp, eventually I gave up and included msvcr120.dll and SqlServerSpatial140.dll in the root of Function App in VS. Then it packaged them into bin directory on Azure when zip publishing. Consequently, had to adjust paths in Func.TrackableContext.cs and EntityFramework.Loader.cs to load native libs from ../bin, not from SqlServerTypes directory. Also remember that it doesn't pick up local appsettings.json - you have to specify application settings on azure (just click Manage Azure App settings from publish dialog in VS or do it in the portal) |
@jaigars so it seems like you got everything functional? |
We followed the instructions to create the solution in our Azure environment. We tried 5 times and we got "An error occured while contanting the server" every time. We even tried creating a Bing Maps API service in our subscription and using it instead of the free trial.
The text was updated successfully, but these errors were encountered: