I have a web matrix-based site I originally created, and then continued development in Visual Studio Ultimate. Now that the website is complete, I am making a Metro app for Windows 8 release preview.
I need the Metro app to connect to a remote SQL database - but connecting to remote (or any kind of,) databases in Metro apps seems to be impossible. Is there any way to connect to a remote database from within a Metro app, without the use of Services or Azure?
Is there any way to connect to a remote database within a Metro app, without the use of Services or Azure?
I'm going to assume by 'services' you mean web services. In that case, there isn't really an alternative. You'll have to use WCF or otherwise create some kind of web service to access the database. WinRT is in the same situation as Silverlight in this regard.
Related
What is the best approach to communicate between UWP app (client app) installed on phone and WPF app itself installed on local machine if they are connected to the same router? Files should sync from client to server and vice versa.
As I investigated before there are WCF, Sockets, and Web. So what is the best one to use to create such functionality?
It does not matter if the app is WPF or UWP. To choose framework like WCF or Sockets you need to know how complex your scenario is. If it is rather simple, I would advice agains WCF. It can be unnecessary complicated for basic usage. You can try web api - lite system using JSON. Generally speaking, I do recommend the framework enabling http protocol as it is reusable for almost every scenario. But that is not filter that would help you much :D
For UWP that have not allowed calling localhost and you can use it to communicate to local wpf app.
More details here and here.
But you can make the uwp communicate to local wpf app in debug, see Deploying and debugging Universal Windows Platform (UWP) apps - UWP app developer | Microsoft Docs
If you want your uwp app can use localhost in release that you should use checknetisolation and you can see some way to use wcf in the article.
I am developing a mobile application for windows phone and I am using Visual Studio 2010 express for Windows phone to do so. I should be able to retrieve the data stored in a table in SQL Server. I tried using LINQ to SQL . But it can access the data present in local folder. Is there any way we can access data present in SQL server present at some other location.
You can't directly interact with a SQL Server from a Windows Phone app. The best way would be to create a service layer around your database which exposes all the operations you need.This service will be called from the mobile app. The most popular technologies for doing so on the Microsoft stack are WCF and ASP.NET Web API. Which one you choose is up to you and depends on several factors.
ref : http://social.msdn.microsoft.com/Forums/wpapps/en-US/a653ad41-59f7-41b7-82e8-3b2c76d7dec6/sql-server-connection-for-windows-phone-8
We have developed an iPhone application which communicates with SQL server database via asp.net hosted on a public server. We have completed all the development and we need to test this with live server data.
Now we understand that live server database is using dynamic ports and cannot be accessed from our asp.net script. Database administrator is against changing the dynamic ports as they are worried about the security threat. We tried asking them to change this by giving access to the server where we host the asp.net web service but they are not willing to do this.
The solution they are asking is to develop a windows service which would act as a middleware between their SQL server database and our web service. They are ready to open ports for running that windows service on their server. Our iphone app need to take values from database as well as insert values to the databse.
We need to know if this is feasible to develop a windows service and if yes, can someone can guide us how to develop this?
Their server is running windows 2003 and SQL server version is 2008
this are good reads on how to start creating a window service
http://msdn.microsoft.com/en-us/library/zt39148a(v=vs.80).aspx
http://tech.pro/tutorial/895/creating-a-simple-windows-service-in-csharp
I have process which continuously downloads XML from the feed and saves it to DB.
I have a Windows Shared Hosting.
My question is what should I use..WCF or Windows Service or Web Service.
I cant use ASP.net because it will run on call only...but I need it run 24/7.
Can you guyz suggest me how to design it?
I have written a Windows Service but was unable to run it on the Server.
My hosting provider is Hostgator.com
You need to do it in a Windows Service.
To run it you'll need a VPS hosting (or dedicated, but it will cost much more).
Start with building a Console Application that does what you need. After you have it look online how to convert it to a windows service.
I have to make an application that make pc-phone and pc - pc call with asp.net. However examples I see on the web are generally made as windows application.
Can anyone give me refference, examples, documents about voip and asp.net?
You can't make a VoIP call with a pure ASP.NET application. The problem is HTTP is a stateless protocol that drops connections as soon as data transfer has occurred. VoIP is a real time application where you need to have a constant connection between the various parties (client-pbx-destination, usually).
As a result, you would need to extend your ASP.NET application with either a ClickOnce .NET Windows Forms Application or other component that runs a local application on the user's machine.