Hi
I'm successfully running 5 MojoPortal sites as hosted solutions. They run .net 4 on IIS7 using MySql. I do not work with the source files, but I do a lot of custom pages and custom modules.
Due to increasing traffic I can not let my production environment run in debug mode any more as it will decrease performance and occasionally introduce breaks for users on the sites.
Now I have copied all my MojoPortal files from the production host to a folder on my local pc to create a development environment there, where I can change my local web.config file to allow debug. I'm still connecting to the hosted MySql production database, but I could as well make a hosted copy as a development database and change my connection strings if needed.
Ready to go I open my local web site with Microsoft Visual Web Developer Express 2010 and test a new local page clicking "View in browser".Next what happens is:
- The browser opens and it tries to connect to: http://localhost:number/localwebsitefolder/localpage.aspx
- And then (probably controlled by the Mojoportal database) it redirects to http://www.mysite.dk/localwebsitefolder/localpage.aspx
I get two questions in my mind, which I don't know how to answer:
1. How can I make it stay on the localhost? I have heard of things like virtual directory and local IIS ... is that a way to go ... and how? Or will the Visual Web Developer be ok to handle the issue with the right kind of settings?
2. Do I have to make further changes to my local web.config file and to the site data in a hosted development copy of the MySql database to make it work?
I hope you can guide me in the right direction, please.
Thanks a lot,
Lars
Denmark