Introducing My.config
FunnelWeb stores most settings in the database, but there are a couple that we can't:
- Connection string (duh)
- 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:
- Upload all the other files
- Leave your web.config
- Debug issues like NHibernate not being resolved (because our web.config included an assembly binding redirect but your old config didn't, etc.)
- 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:
- Take the default my.config, and overwrite it with your settings
- Upload the new Web.config, and your My.config, along with all other FunnelWeb files
From then on:
- Upload everything except My.config
Hopefully this results in a much better upgrade experience from here on.
Comments
Denis
You need to update the install instructions! Thats very important. I cant instal FunnelWeb at the moment because a database exception
jinxen
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
I'm trying tu use SQL integrated security for install but I can't get it to work.
The
/page redirects me to the/admin/login?databaseIssue=truepage. 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
much better but you need to update the install instructions.
Hoyt Nelson
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. ;)
Fabzter
As a new user (just installed it yesterday!) I second Denis' opinion: UPDATE THE INSTALL INSTRUCTIONS PLEASE : )
Ufi
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
UPDATE THE INSTALLATION GUIDE!
uggs
This uggs uk Clearance has kept millions of people warm and fashionable during the cold winter season.
fdxg
asedf
Vahe
TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
ME
NEW TEST
Dave
This is me testing the editor.
SamituDF
Друзья вперед качать программы и игры. Все с файлобменников совершенно бесплатно для Вас здесь. Заходите и качайте скачать софт
Teedneulp
http://no-guns-ru.livejournal.com/88603.html?mode=reply Result: использован никнейм "AssedeToobafe"; ReCaptcha дешифрована; успех; BB-код не работает; скачать игру +на компютер gta
Sargekit
canadian pharmacy cialis 20mg search generic cialis cialis 10 mg 4 tablet total members
camping in acadia national park-8
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.