Web portal not working with MS CRM online when connecting internet directly instead of wifi - dynamics-crm-2013

I am working on a project where we use MS Dynamics CRM and we also have MVC web portal on top of it.
All is working fine when I connect my laptop with wifi connection instead of direct connection. My guess is that when I connect directly the proxy server not allow my web application to fetch data from CRM online.
I just create a console application and I can fetch data from CRM through wifi and direct connection as well so the issue is only with web application. i.e. It appears that web application with direct internet connection is not working.
Following is the exception when I connect to the direct connection and try to fetch the CRM records.
Unable to connect to the remote server
Again all is working fine when I connect with wifi.

Related

Can't connect to a SQL Server database using a specific network

I'm working from a new place and I'm unable to connect to a remote database using the wi-fi, but it works if I route my mobile 4g as a hotspot.
I've contacted the internet provider and they say there's nothing blocking the access. And it seems true because it allows me to connect to the VPN and I can access the remote desktop where the database is hosted and in there I'm able to connect to the database using SSMS without any errors, but when I try to connect directly from my PC I get the following error.
Any idea what could be causing this or how can I investigate where the problem is?
I'm using SSMS v18.9.1, windows authentication and connecting using the server name like "srv123.xxxx.com\instprd". This configuration works when I use the 4g hotspot instead of the wi-fi.
Tried what I could and then I talked to the ISP support and it was indeed that some ports were blocked.
Some update on the router (tp link AC1200) firmware caused it so they had to downgrade it and that solved the problem.

Can't interact with database when published to azure

Below is the steps i have took to publish my Website to Azure. I have two data connections the "defaultconnection" for users tables log in register etc. The other is a connection to an Azure Sql Database.
On Azure i created a new app service.
In Visual Studio i click on project and select publish.
In the publish Web window that pops up i select Microsoft Azure Web Apps.
In the following window i select the app service i created in Azure.
In the settings window it shows the two connection database connections.
They both have the same connection string which is the Azure hosted Database. I am not sure what to change the connection string to for the users table. I created a SQL database in azure and connected that to the app service then used that connection string for the "defaultconnection". The string is below
Server=tcp:userauthen.database.windows.net,1433;Data Source=userauthen.database.windows.net;Initial Catalog=USERAUTH;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
I published to azure and am able to go through the pages but as soon as i try to interact with the database i get an internal server error 500.
I tried publishing the website without userlogin so i could see if it connected to the Azure sql database but i still get the internal server error 500. I am really stuck at this point and any assistance would be helpful.
So i changed the firewall settings to allow certain IP address and it worked. I can access both my databases.

Azure SQL database - login failed

I have two web apps in azure plus one SQL database. One of them connects to the db withouth any problem. However the other web app isn't able to connect. I get the error:
Login failed for user 'xxxxxx'.
This session has been assigned a tracing ID of 'a632c957-78dc-4f13-b07f-ff646b04895c'.
I already copied and pasted the connection string from the working web app to the other one with no luck.
Is there any configuration to maybe "allow connections" from a specific web app?
Thanks

Windows Form Application and SQL Server Hosted?

If our sql database was hosted externally on an sql server website and we were connecting to it via a windows desktop application, how to get around the issue, if the internet was not working.
Is there a way to keep the data local so the application still works, and replicate the changes to the sql server once the internet is connected?
If you want to access the data localy when the internet is down, you will need a local database. You can replicate the data between the 2 databases

Web services dilemma

Hey all I have created a web service that starts on my local intranet and sends out data to an outside server. This works awesome and all using classic asp on the server side and vb.net program sending the info from the intranet pc.
But now I need to do the opposite. I need to have the web service be called from the server web page to the intranet pc. Problem being is that we do not have access to any ports or any means of getting data from the server because of the firewall.
How can this be possible to do with my current scenario above?