Access WCF service through a Windows Phone - c#

I am developing a Windows Phone Application and from this application I am accessing an SQL Azure database through a Silverlight-Enabled WCF service. This works perfectly on the Windows Phone emulator. My question is: what will happen when I deploy the application and try to access the WCF service? To test what I have done on a real Windows Phone, do I have to host the site (which includes the WCF service)

If they are currently hosted on your local machine, then you can still access them by hooking your Windows Phone (must be developer unlocked) and testing your app through Visual Studio
However if you mean deploying to the MarketPlace then yes, you will need to have those services hosted so they can be used by other phones not connected to your local machine.

Related

Installing a windows service on another machine

I have been building a windows application. this application contains a windows service which performs certain action when the service is started, for example some FileIO operation.
Now this application needs to be deployed on the server. The server, obviously won't have visual studio in it. So how can i install that windows service there along with the application.
NOTE :- application is installed, just need to know how can i install the windows service.
Thanks in advance.

Local Debugging - Cloud Service and Service Fabric vs. App Service

I looked into Azure cloud solutions and came up with below question regarding developing web app locally.
It seems like, if you develop Cloud Service, you can run locally with Azure emulator, if you develop Azure Fabric Cluster, you can run your cluster locally.
However, if you develop Wep app (part of App service) and you want to debug your app locally, you can either connect remotely your debugger to running web app or run the web app on your local iis.
Issue is, debug on azure emulator or running on local cluster seems to illustrate running the app on cloud better than develop on your local iis.
Am i missing something, or the development experience on App service lacks the option to run locally on "cloud like" environment(excluding the option of remote debug)?
Thanks a lot!
There is no emulator for App Service because at its core it is just an IIS farm (the Windows App Service at least).
We run apps locally on IIS Express + SQL Server 2016 Developer edition, and that corresponds quite well. Of course if we wanted we could set up an IIS farm locally and use that, but I think that's unnecessary.
You can get a bit closer to actual environment if you use the App Service Linux offering, as there you will run everything on Docker containers. So you debug on local Docker and then run it in prod on Docker.
I would also recommend you to check out deployment slots on App Service, as a staging deployment slot can help you find problems that occur in the cloud environment before you swap it into production.
In my personal experience developing apps for App Service, problems in the production environment were not caused because the environment was very different, but because we overlooked something with the database, made a mistake in a Web.config transform etc.

Packaging a .NET web service

I have no prior experience working in the .NET stack. Not sure if this is a common requirement. I have developed a simple .NET web service which accesses the COM library provided by a label printer SDK to send print jobs to the printer connected to my machine.
I need to distribute the web service to clients so that it can be hosted on their machines locally. Set up should be minimum - something like an installer which will do the needful to deploy the web service locally.
I assume that any windows machine comes with .NET bundled.
I understand that IIS is the windows equivalent of apache-tomcat. Does is it come bundled with all windows machines? If it does, I figure I can write some scripts to deploy the web service to IIS using the ".deploy" file generated by Visual Studio.
Are there any betters way of doing this ?
So my question is :
How do I distribute a web service that should be be hosted and run locally on the client's machine without forcing the user to download and install a web server and deploy the package?
Edit:
So, I gather IIS is not supported by home editions.

Access web project in a mobile phone

I have a web project in my pc. It's running on http://localhost:54331/Default.aspx. Also, there's an another pc in my local network and a mobile phone. How can I access this asp.net project from these devices? The project only loaded one pc. How to do this?
ASP.NET Development server doesn't allow remote access to hosted web apps. Use IIS (Express or full edition)

How to Connect to IntraNet Web Service using the Windows Mobile Device emulator?

I have my Windows Mobile Application which connect to the Intranet Web Service. I am not able to access the internet/intranet resource using the emulator.. What i have tried is
Installed Windows Mobile Center
Opened the Emulator
Given Cradle
Ran the application
Application Fails due to unavailability of the Web Service
Please help me???

Categories

Resources