Manually change web server domain for IIS - iis

I'm having a bit of an issue with an IIS web application. I copied all the application files from the server, registered the DLL files, set up my DB server locally and now I'm trying to run the application locally, on my machine. The thing is that the app checks the server domain name when you log in and my corporate domain name is not in the list of "allowed" domains so the logging in fails.
Could I edit some IIS application config file(s) to make it look like the web server is actually under a different domain name? I want to keep my machine, overall, in the current domain.

I don't think that you can change the config files in the IIS.

Related

How to secure config file while hosting a web service on a public domain

I currently have a web service which I would like to host publicly but my company policy is against exposing the web.config file outside of our company firewall. Is there a way where I can host my web service on a public server securely?
Thanks to how IIS works, your web.config file won't be accessible from outside your application. You won't be able to get to it by just browsing directly to it unless you manually allow that action such as enabling directory browsing etc.
The web.config file is more an IIS config than anything else, as it merely configured the IIS environment to run the application as you intend it to.
You have nothing to worry about

Manually deploying Umbraco website on IIS - dashboard, js and css not working

I have an Umbraco website with an SQl db. I backed up the DB and imported it on the SQL server on the server here. I then copied all the files of my umbraco folder and placed them in a folder on the server here as well.
I then made an 'application' in IIS and gave it an 4.5 application pool (integrated). I linked it to the folder on the server where all of the files are.
When I browse to the site I get to see all the content, also the dynamic content from the DB, but none of the mark up is applied. If I add /umbraco behind it to access the dev dashboard I just get a white page.
I have only been working with it for 5 days and am new to umbraco. IIS on the local server here has no web deploy installed and FTP is also not an option. I developped the website with Webmatrix and web deploy & FTP are the only two publish option it gives me.
Is there something I did wrong or how can I get the website to work properly here?
Umbraco needs to run in Full Trust mode. Make sure that your IIS is configured for Full Trust.
On Features View --> .NET Trust Levels --> Full (internal)

IIS settings to connect ASP to separate database server

I have a simple ASP site hosted on the same server as the database.
I am trying to separate these 2 entities and place them on separate servers.
I have setup the IIS settings on the web-server and setup the database on the DB Server.
They both work perfectly individually.
I changed the data-source on IIS config from local to the target DB server db.
Changed other key-parameters and web-config files.
Now, instead of localhost directing to index page, it is re-directing to default page.
Am I missing anything else?
Open IIS, click on your site, and look at the "Default Document" section. You likely need to specify "index.asp" (or whatever) as your default document.

Get domain & subdomain of server by console application

Let's take one case that i hosted my web application on window server 2008 R2 and one exe (console application) running on that server.
I can access that web application by URI:
<subdomain>.<domain>.net , is there any way to get subdomain and domain info from EXE (C#) ?
Thanks in Advance.
The answer is... it depends.
If you only have one site hosted on your box then you can just connect to the local instance via either the IP Address the website on the machine resolves too, or by using http://localhost etc.
When you have a URL, the situation becomes more complicated. The machine could be hosting several websites - how do you know which one you want to connect to? In this instance, I would advise just storing the url you want to connect to in config.
However, it should be possible to list the all of the domains from IIS - you'll need to use WMI.

TFS2010: Single Server Deployment wizard, Bad sharepoint URLs

I just installed TFS2010, and set it up with the single server wizard. It installed me Sharepoint Services an let everything working pretty well.
But, the sharepoint URLs it generates from the Server name "server". As my setup is without a domain, the URLs work okay only from the server computer, not from the others.
I have to give access to LAN clients, and Internet Clients, both connected thought my Public Ip.
How can I change those sharepoint IPs from TFS to be generated From the IP, not from the Server's name??
Thanks in advance
Sharepoint is simply an ASP.Net web application sitting on IIS so all the configuration for host headers etc can be added in IIS itself - if you have multiple instance of sharepoint running on the server, you'll have to add URL's using the sharepoint configuration site but most stuff can be tweaked through IIS (IP's its listening on etc)
If you not on an domainan and want people to have access to the site though you'll have to add your machines IP to the DNS server that you clients are using

Resources