Disablesetup

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/4/2012 12:56:17 AM
Gravatar
Total Posts 2

Disablesetup

A have change source code and then had rebuild some dll. Then i copied compiled files from release folder to bin folder in mojoportal.

Changes is working, but after this action when i try login as administrator, mojoportal say me that:

Setup starting. MSSQL started, right enough for changing data schema, main schema need for update, 7 sites found, and tnen p/s that i may change disablesetup to false and nothig more.

After chaging to true or false noway to continue.

Please help me. Whats happning. sites working normally but i can't login to main site as administrator/

How mojo decide that anything changed? because offer me setup?

I don't want setup anything

 

"Установка отключена. Для активации установите опцию DisableSetup = false в файле Web.config" it's mean that Setup disabled, for activation i must change disablesetup to true. But i don't need setup. Otherwise after changing disablesetup to true nothing happining, and say me that

6/4/2012 7:24:07 AM
Gravatar
Total Posts 2239

Re: Disablesetup

Hi,

Not sure what could be the problem because you have changed the source code. Please read "Avoid Forking The Code."

Are you changing the disableSetup key in the web.config or in the user.config? If you are changing the user.config, make sure you add an empty line to the web.config and save it. This will make your website application restart which will then cause the user.config to be reloaded.

Thanks,
Joe D.

6/4/2012 7:33:52 AM
Gravatar
Total Posts 18439

Re: Disablesetup

Note also that disabling setup doesn't change the fact that setup may need to run. If an unhandled error occurs mojoPortal checks the schema version recorded in the database for mojoPortal core in the mp_SchemaVersion table vs the schema version declared in code, if the code version is higher then it knows it still needs to run  setup scripts to modify the database and the cause of the error is most likely that the database schema isn't synced with the code, so it will redirect to the setup page regardless of whether setup is disabled.

You must sign in to post in the forums. This thread is closed to new posts.