Register | Login
Thursday, February 09, 2012
  Search
 Discussion Forums at Locopon's Minimize
 
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorError during installationError during installation
Previous Previous
 
Next Next
New Post
 3/3/2006 7:11 AM
 

I just installed your DSLocalizator module on a production server, and the installation failed.

I am running a DNN installation in a restricted mode (The SQL user I use to connect to the db is NOT dbowner).

Fir DNN to work you stilI need to specify this user as dbo in the settings of the web.config file.

The problem is that the SQL script of your module references tables like {databaseowner}.sysobjects. This causes exceptions because my user is not the owner of this table. The owner of this table in my DNN installation is dbo. And the owner of other tables is my restricted user.

I suppose that this would work if I change the references of {databaseowner} to dbo in your SQL scripts, but I would appreciate it if you could confirm this.

Any help would be appreciated.

regards

New Post
 3/3/2006 9:29 AM
 

Well, you will see that the standard way to create scripts is to use the {databaseOwner} and {objectQualifier} tags inside each sql script.

The purpose of doing that is that those are replaced by your configuration at your web.config before each script is executed.

At your web.config, locate the following line:

<add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="SiteSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />

And look at the two last values. If your configuration is the same, then you already are using dbo instead of anything.

Hope it helps

New Post
 3/4/2006 1:03 PM
 

I know very well the standard way to create those scripts are using these placeholders. And I'm not saying not to use them. I think the problem is the same as the one gvilas mentions in this post.

The issue is that when calling system tables like sysobject I need to be using something like dbo.sysobjects and when calling or creating other tables I do it with restricteduser.whatevertable.

Does this module require changes to the sysobjects table? Because if it does I will probably run into problems installing it.

Can I simply change the {databaseowner} tags in those places where system tables are called? Will this work?

Regards

New Post
 3/4/2006 4:09 PM
 
stunsch wrote

Does this module require changes to the sysobjects table? Because if it does I will probably run into problems installing it.

Not directly, but any module that creates a table or stored procedure modifies it (It stores information for every table or stored procedure in the system)

stunsch wrote

Can I simply change the {databaseowner} tags in those places where system tables are called? Will this work?

Change then as your want. Don't forget to make a backup first.

New Post
 3/5/2006 1:14 AM
 

I managed to install the module by changing in the sql scripts all references of {databaseowner}sysobjects to dbo.sysobjects.

I have also been able to activate the Install Helper options.

But when I try to change the "General Options" I get the following error:

DotNetNuke.Services.Exceptions.ModuleLoadException: Parameter count does not match Parameter Value count. ---> System.ArgumentException: Parameter count does not match Parameter Value count. at Microsoft.ApplicationBlocks.Data.SqlHelper.AssignParameterValues(SqlParameter[] commandParameters, Object[] parameterValues) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at Delisoft.DNN.Modules.DSLocalizator.Data.SqlDataProvider.UpdateTabLocalization_Options(Int32 portalId, Int32 useSQLViewState, Boolean useTabLocalization, Boolean useModuleLocalization, Boolean enableSearch, String SqlViewStateIp, Boolean tabPreviewEnabled, Boolean UsePortalSettingsLocalization, Boolean SelectorNotUsingCookie, Boolean SelectorNotUsingParam, Boolean SelectorNotUsingBrowser, Boolean SelectorNotUsingGeoIP, String SelectorParamText, Boolean SQLViewStatePerPage, String SelectorCookieName, String LocaleDetectionOrder, Boolean UseWhiteSpaceRemover, Boolean useLocaleTranslation, String localeTranslationRules) at Delisoft.DNN.Modules.DSLocalizator.Business.TabLocalization_OptionsController.Update(TabLocalization_OptionsInfo objTabLocalization_Options) at Delisoft.DNN.Modules.DSLocalizator.DSLocalizatorOptions.b(Object A_0, EventArgs A_1) --- Fin del seguimiento de la pila de la excepción interna ---

What can this be?

Regards

Previous Previous
 
Next Next
Forum / ForosForum / ForosModules/ModulosModules/ModulosDSLocalizatorDSLocalizatorError during installationError during installation