From now onwards, FunnelWeb will be using a custom configuration file for connection information. This post explains how and why.

Introducing My.config

FunnelWeb stores most settings in the database, but there are a couple that we can't:

  1. Connection string (duh)
  2. Username/password for the maintenance user (you need to log in to upgrade the database or fix the connection string)

Previously we stored these in Web.config. For existing sites, that meant the upgrade experience was:

  1. Upload all the other files
  2. Leave your web.config
  3. Debug issues like NHibernate not being resolved (because our web.config included an assembly binding redirect but your old config didn't, etc.)
  4. Eventually give up out of frustration, take our web.config and manually merge yours back in

I have to upgrade two FunnelWeb sites, and it gets pretty tiring.

From today onwards, we now use a My.config. It's a custom XML file that looks like this:

<?xml version="1.0" encoding="utf-8"?>
<funnelweb xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <setting key="funnelweb.configuration.database.connection" value="database=FunnelWeb;server=.\SQLEXPRESS;trusted_connection=true;" />
  <setting key="funnelweb.configuration.authentication.username" value="test" />
  <setting key="funnelweb.configuration.authentication.password" value="test" />
</funnelweb>

The first time you upgrade to a FunnelWeb site that uses the new My.config, your installation will need to be:

  1. Take the default my.config, and overwrite it with your settings
  2. Upload the new Web.config, and your My.config, along with all other FunnelWeb files

From then on:

  1. Upload everything except My.config

Hopefully this results in a much better upgrade experience from here on.

configuration upgrade install
Posted by: The FunnelWeb Team
Last revised: 08 Apr, 2011 11:48 PM History

Comments

Denis
Denis
10 Aug, 2011 10:11 AM

You need to update the install instructions! Thats very important. I cant instal FunnelWeb at the moment because a database exception

jinxen
jinxen
12 Aug, 2011 11:42 AM

How to install, just leave the web.config as it is when downloading. Remove the "sample" from My.config, edit the file and put in your own databaseuser and password. Then you are good to go.

SandRock
SandRock
10 Feb, 2012 09:51 AM

I'm trying tu use SQL integrated security for install but I can't get it to work.

<setting key="funnelweb.configuration.database.connection" value="database=FunnelWeb;server=.\MSSQLSERVER;Integrated Security=true;" />

The / page redirects me to the /admin/login?databaseIssue=true page. There's no understandable error message. The page is asking me a login/password I don't know.

What should I do to continue?

Harry
Harry
28 May, 2011 07:31 AM

much better but you need to update the install instructions.

Hoyt Nelson
Hoyt Nelson
22 Jun, 2011 06:38 PM

You should update your installation instructions to reflect the change to My.config. I wasted a lot of time before I figured it out.

Cool architecture, based on the components; I haven't had time to examine the code, thus far. I selected FunnelWeb because I want to learn more about MVC. I hope it's stellar code. ;)

  • Hoytster
Fabzter
Fabzter
02 Dec, 2011 02:45 PM

As a new user (just installed it yesterday!) I second Denis' opinion: UPDATE THE INSTALL INSTRUCTIONS PLEASE : )

Ufi
Ufi
25 Apr, 2012 11:45 AM

When you get redirected to /admin/login?databaseIssue=true just enter username and password from My.config

this are defaults

username="test" password="test"

cheers

Peter
Peter
24 Dec, 2011 08:45 AM

UPDATE THE INSTALLATION GUIDE!

uggs
uggs
10 Oct, 2012 02:48 AM

This uggs uk Clearance has kept millions of people warm and fashionable during the cold winter season.

fdxg
fdxg
22 Oct, 2012 02:47 PM

asedf

Vahe
Vahe
26 Dec, 2012 03:34 PM

TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

ME
ME
26 Dec, 2012 03:35 PM

NEW TEST

30 Jan, 2013 06:22 PM

This is me testing the editor.

SamituDF
SamituDF
10 Feb, 2013 01:38 AM

Друзья вперед качать программы и игры. Все с файлобменников совершенно бесплатно для Вас здесь. Заходите и качайте скачать софт

Teedneulp
Teedneulp
12 Feb, 2013 07:11 AM

http://no-guns-ru.livejournal.com/88603.html?mode=reply Result: использован никнейм "AssedeToobafe"; ReCaptcha дешифрована; успех; BB-код не работает; скачать игру +на компютер gta

Sargekit
Sargekit
30 Apr, 2013 10:12 PM

canadian pharmacy cialis 20mg search generic cialis cialis 10 mg 4 tablet total members

01 May, 2013 02:22 PM

My opinion about information is that without it I would never learn anything. Your article teaches the reader to think about the content. Thank you.

Your Comments

Used for your gravatar. Not required. Will not be public.
Posting code? Indent it by four spaces to make it look nice. Learn more about Markdown.

Preview