Access web project in a mobile phone - c#

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)

Related

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 asp.net web application from lan computers

I have a system(Server) with windows server 2008 and over 5 system as client systems.
Visual studio 2008 installed on every system (Server and Client).
And i have installed IIS-7 on server.I need to access my asp.net web project from server to client system using visual studio 2008.When i use file system to open that project from my local system it through error:
network BIOS command limit has been reached
Can any one tell me how to access asp.net web project from client system
After installing windows-7 on client system.
This problem is solved.
Now i am able to debug my web project from LAN computers.

Needed help ralated to Web Server

I have installed OS Windows7 Home Basic at my development machine. After developing the ASP.NET web application, I needed to deploy. I started installing IIS on my machine, but found that in Win7 Home Basic, there is no iis manager. After searching on net, I found Cassine Web Server(CWS). I installed the CWS and it working fine as a web server.
I have a question. Is CWS is better than IIS? Is CWS is secured as IIS? Is CWS can be used as a web server at target machines?
If anyone used CWS, please tell me about your experience.
CWS is just a development web server. It has no purpose to be used as a production web server.

development environment setup - iphone iOS using C# web services and MS SQLServer

What would be the best (or easiest) way to setup a development environment in order to:
- develop iOS(iphone) application using Xcode in a MAC
- iphone app will be calling .NET web services written in C# (windows laptop)
- the database is MS SQLServer 2008 R2 (windows laptop)
I understand that I could do all this in my MAC if I was using PHP/MySQL but I really need the C#/MS SQL combo.
Thanks in advance.
Ceta
If you don't have access to a dedicated Windows environment for development, I would suggest that you install VMWare Fusion or Parallels on your Mac, and do your Windows development in a VM.
Can you not just deploy the Webservices (on the web?) and just test your API calls remotely?
Alternatively, network the machines so you can access the development copy, or use something like Parallels Desktop to run Windows inside your Mac environment. Related: Visual Studio on a Mac
If you have both machines up and running, XCODE, VS and SQL Server already installed, then I don't see the problem.
You only need to configure the special things in your Windows Machine so its perfectly suited for Web Services development. Skip the steps you may already have done.
1) Install IIS 6 / 7 (depends on your windows version)
2) Install ASP.NET
3) Turn off your firewall for Home network, or configure some permission for allowing inbound traffic to the HTTP/HTTPS ports.
4) Make sure you have an static IP address in your home network, or, make sure your machine name is DNS resolvable from your Mac.
You need IIS because Visual Studio internal web server doesn't allow remote connections.
Now, how can you debug your C# code if the Web Service is running in IIS? two options:
1) (easy) In the solution explorer, right click on your web project, choose properties, chose Web, in the section named "Servers" choose use local IIS WebServer and name your virtual folder. You'll be able to debug easily.
2) (medium) You can just publish your web app to your local IIS, make it run, and then from visual studio using the debug -> attach to process menu attach yourself to the w3wp.exe. The problem is, if you have several application pools, have fun finding your application.

Access WCF service through a Windows Phone

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.

Categories

Resources