2

I have been developing an ASP.NET application and I would like my work colleagues to give me feedback on it. I tried running it on IIS but because the database is located on a remote server, I am unable to host it properly?

Also, how can the colleagues access that site? my host name, etc

0

2 Answers 2

1

You can update your connection string to your remote server (providing the DB accepts external requests).

Something like (assuming SQL)

Data Source=190.190.200.100,1433;Network Library=DBMSSOCN;Initial Catalog=myDataBase; User ID=myUsername;Password=myPassword;

It's an ugly hack, but you can do an if else statement, detect the DomainName (Environment.UserDomainName()) and if matches the server then use one connection string, if it's your office's domain, then use that!

This means, you can still use your local IIS!

2
  • 1
    Well, you could then either Make them view it online (create a subdomain for testing which only shows those which match your company IP (if possible). Or, take a copy of the database so you can replicate it locally!
    – Dave
    May 15, 2013 at 10:09
  • i thought about making a replication of the database locally - thanks a lot for that
    – Singh
    May 15, 2013 at 10:14
1

You can publish your web site on a local server which has IIS running on it. You can create your application on IIS and your colleagues can access your web site from the intranet via the name of the server easily.

Such as:

http://servername/yourprojectdirectory

And also the local server should have internet access for the remote database.

2
  • i don't have a local server - i would like to use my work laptop to host the website. the remote database is protected
    – Singh
    May 15, 2013 at 10:09
  • Then you should configure your IIS and your laptop should have an IP address or alias accessible from the intranet. May 15, 2013 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.