Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have a Mono for Android app, working on visual studio.
Lets call this MonoApp

This app, makes an HttpWebRequest to an asp.net MVC3 application which returns a JSON result, A RESTful architecture.

The issue i'm facing is
1. My MVC3 application is deployed (is working)
2. my MonoApp is working

During the course of development, i would need to modify code/content in my MVC3 App, and deploy changes. And then, i might have to make corresponding changes in MonoApp and test the changes.

My question is.. how do you do both concurrently?
1. When MVC3 is running, you get the Builtin ASP.NET webserver, but when you close the applicaion, it goes away, and you loose http://localhost:SomePortNumber which the server was running on.

Currently, i'm stuck with making changes to MVC3 app, deploying (publishing) to internet into my domain (which is somehting i dont want) and then test my MonoApp changes in simulator (which now has to actually go to the INTERNET, instead of contacing app running on local webserver).

I know that one scenario is deploying your MVC3 app to local IIS, but is there a work around to this? as i haven't tried this approach.

If anyone has any ideas, really appreciated.

Thanks.
Posted

1 solution

You can fix the port number when debugging in Visual Studio so it doesn't change, see here : http://msdn.microsoft.com/en-us/library/ms178109.aspx[^]
 
Share this answer
 
Comments
robroysd 23-May-12 14:57pm    
Thank you for the link. I tried it, but the problem still persists. As in, when i close the solution for the MVC app, the server closes.

Then i tried Adding both MVC and MonoApp projects under one solution, and running it, the application crashes (this might be due to incorrect URL in code)

Will try other options and see what happens. At this point, i'm also thinking of making a subdomain in my personal doamin (A new applicaion/site) where i can always deploy my MonoApp's and test with the simulator, and eventually from my android phone, since this would be a real world scenario.

But the Port (permanent number for the web severs) was a good thing to know. Thanks again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900