iis - How to publish an asp.net website on work network? -
i have been developing asp.net application , work colleagues give me feedback on it. tried running on iis because database located on remote server, unable host properly?
also, how can colleagues access site? host name, etc
you can update connection string remote server (providing db accepts external requests).
something (assuming sql)
data source=190.190.200.100,1433;network library=dbmssocn;initial catalog=mydatabase; user id=myusername;password=mypassword; it's ugly hack, can if else statement, detect domainname (environment.userdomainname()) , if matches server use 1 connection string, if it's office's domain, use that!
this means, can still use local iis!
Comments
Post a Comment