IIS Database Connection? - Advanced Installer Community
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

IIS Database Connection?

Hello,

How to set up a database connection for IIS? The following needs to be set by properties, "Database server, Database port, Database name, username and password".

:?:
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS Database Connection?

Hello,

You can achieve this by using our "IIS Custom Properties" support. Just go to "IIS" page, select your web site. select the "Custom Properties" tab and add a collection item like this:
image.jpg
image.jpg (55.02 KiB) Viewed 5358 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: IIS Database Connection?

Thanks for the information.

How to specify the values if the values such as, "Database server, Database port, Database name, username and password" are in property values?

:?:
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS Database Connection?

Hello,

You can use property formatted references in the "Value" field of the "connectionString" item, like this:

Code: Select all

Server=[SERVER_PROP], PORT=[PORT_PROP], etc
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: IIS Database Connection?

Hello,

I get this error message when installing,

Image
https://www.dropbox.com/s/ipmv27glmcdfd ... 1.png?dl=0

But when the "IIS Custom Properties" is removed then it gets installed without any error messages.
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS Database Connection?

Hello,

I'm not sure why this happens. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: IIS Database Connection?

Hello,

It seems it was the port number that was wrong. I gave as 80. I change it to 1433.
K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: IIS Database Connection?

Thank you for your follow up. I'm glad you got this resolved.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Codename K
Posts: 479
Joined: Fri Jan 29, 2010 3:04 pm

Re: IIS Database Connection?

Thank you for your help.
K

Return to “Common Problems”