Developer forum

Forum » Development » X64 and Language.mdb in SQL Server

X64 and Language.mdb in SQL Server


Reply

I have heard that it becomes possible to port Language.mdb to SQL server as a seperate SQL Server Database and then be able to run solutions in IIS running 64bit mode.

 

When is this released? Since I have a customer who only waits for this feature.


Replies

 
Nicolai Høeg Pedersen
Reply
ks wrote:

I have heard that it becomes possible to port Language.mdb to SQL server as a seperate SQL Server Database and then be able to run solutions in IIS running 64bit mode.

 

When is this released? Since I have a customer who only waits for this feature.


 

Hi Kevin

 

Its part of the release that comes out now. The build you can download from developer actually have this feature. It has not been fully tested in production yet and we have not said that much about it. I've made some tests though on W2008 x64 with IIS 7 in integrated pipeline mode, and it seems fine.

 

To activate, upsize /Admin/Language.mdb to a SQL-Server database and add the following to your /Files/Globalsettings.aspx <Database> section:

<

Translation>

 

<ConnectionString>

 

</ConnectionString>

 

<UserName>uid</UserName>

 

<Password>pwd</Password>

 

<Database>db</Database>

 

<SQLServer>transdbserver</SQLServer>

 

</Translation>

 

 
Reply
np wrote:
ks wrote:

I have heard that it becomes possible to port Language.mdb to SQL server as a seperate SQL Server Database and then be able to run solutions in IIS running 64bit mode.

 

When is this released? Since I have a customer who only waits for this feature.


 

Hi Kevin

 

Its part of the release that comes out now. The build you can download from developer actually have this feature. It has not been fully tested in production yet and we have not said that much about it. I've made some tests though on W2008 x64 with IIS 7 in integrated pipeline mode, and it seems fine.

 

To activate, upsize /Admin/Language.mdb to a SQL-Server database and add the following to your /Files/Globalsettings.aspx <Database> section:

 

 

Translation> <ConnectionString> </ConnectionString>

 

<UserName>uid</UserName>

 

<Password>pwd</Password>

 

<Database>db</Database>

 

<SQLServer>transdbserver</SQLServer>

 

</Translation>

 

 

 

 

 

<

 

Perfect, I'll try test it on W2003 x64 in IIS 6 and provide you with some feedback.
 

I get an exception when trying to access /admin

 

[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +3008024
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +13
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +189
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +138
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +35
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +220
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +25
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +21
   Dynamicweb.Backend.Translate.SetLanguage(Int32 LanguageID, Boolean blnResetLanguage) +1093
   Dynamicweb.Backend.Translate.GetWord(String Key, Int32 intAlternative, Boolean blnJs) +1420
   Dynamicweb.Backend.Translate.JsTranslate(String Key, Int32 intAlternative) +61
   ASP.admin_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +162
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4592
 

 

 
Reply
ks wrote:
np wrote:
ks wrote:

I have heard that it becomes possible to port Language.mdb to SQL server as a seperate SQL Server Database and then be able to run solutions in IIS running 64bit mode.

 

When is this released? Since I have a customer who only waits for this feature.


 

Hi Kevin

 

Its part of the release that comes out now. The build you can download from developer actually have this feature. It has not been fully tested in production yet and we have not said that much about it. I've made some tests though on W2008 x64 with IIS 7 in integrated pipeline mode, and it seems fine.

 

To activate, upsize /Admin/Language.mdb to a SQL-Server database and add the following to your /Files/Globalsettings.aspx <Database> section:

 

 

Translation> <ConnectionString> </ConnectionString> <UserName>uid</UserName>

 

<Password>pwd</Password>

 

<Database>db</Database>

 

<SQLServer>transdbserver</SQLServer>

 

</Translation>

 

 

 

 

 

<

 

 

 

Perfect, I'll try test it on W2003 x64 in IIS 6 and provide you with some feedback.
 

I get an exception when trying to access /admin

 

[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +3008024
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +13
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +189
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +138
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +35
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +220
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +25
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +21
   Dynamicweb.Backend.Translate.SetLanguage(Int32 LanguageID, Boolean blnResetLanguage) +1093
   Dynamicweb.Backend.Translate.GetWord(String Key, Int32 intAlternative, Boolean blnJs) +1420
   Dynamicweb.Backend.Translate.JsTranslate(String Key, Int32 intAlternative) +61
   ASP.admin_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) +162
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4592
 

 

Here some more debug info:
 

ExecuteReader requires an open and available Connection. The connection's current state is closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.

Source Error:

Line 7:  <head>
Line 8:  	<title>
Line 9:  		<%=Base.IIf(Trim(Base.GetGs("/Globalsettings/Settings/CommonInformation/SolutionTitle")) <> "", Base.GetGs("/Globalsettings/Settings/CommonInformation/SolutionTitle") & " - " & Translate.JSTranslate("Dynamicweb administration"), Translate.JSTranslate("Dynamicweb administration"))%>
Line 10: 	</title>
Line 11: 

Source File: E:\Dynamicweb.NET\Application\Admin\Default.aspx    Line: 9

Stack Trace:

[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +3008024
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +13
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +189
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +138
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +35
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +220
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +25
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +21
   Dynamicweb.Backend.Translate.SetLanguage(Int32 LanguageID, Boolean blnResetLanguage) +512
   Dynamicweb.Backend.Translate.GetWord(String Key, Int32 intAlternative, Boolean blnJs) +754
   Dynamicweb.Backend.Translate.JsTranslate(String Key, Int32 intAlternative) +12
   ASP.admin_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Dynamicweb.NET\Application\Admin\Default.aspx:9
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4592

 

 
Nicolai Høeg Pedersen
Reply

Hi Kevin

 

There was some hardcoded stuff I had not removed; sorry. Please download the latest build from developer download (from 18/11) - I've fixed it there.

 
Reply
np wrote:

Hi Kevin

 

There was some hardcoded stuff I had not removed; sorry. Please download the latest build from developer download (from 18/11) - I've fixed it there.


 

Thank you very much for fast response but i'm sorry to say it's not fixed :(

ExecuteReader requires an open and available Connection. The connection's current state is closed.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.

Source Error:

Line 7:  <head>
Line 8:  	<title>
Line 9:  		<%=Base.IIf(Trim(Base.GetGs("/Globalsettings/Settings/CommonInformation/SolutionTitle")) <> "", Base.GetGs("/Globalsettings/Settings/CommonInformation/SolutionTitle") & " - " & Translate.JSTranslate("Dynamicweb administration"), Translate.JSTranslate("Dynamicweb administration"))%>
Line 10: 	</title>
Line 11: 

Source File: E:\Dynamicweb.NET\Application\Admin\Default.aspx    Line: 9

Stack Trace:

[InvalidOperationException: ExecuteReader requires an open and available Connection. The connection's current state is closed.]
   System.Data.SqlClient.SqlConnection.GetOpenConnection(String method) +3008024
   System.Data.SqlClient.SqlConnection.ValidateConnectionForExecute(String method, SqlCommand command) +13
   System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) +189
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +138
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +35
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +220
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +25
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader() +21
   Dynamicweb.Backend.Translate.SetLanguage(Int32 LanguageID, Boolean blnResetLanguage) +512
   Dynamicweb.Backend.Translate.GetWord(String Key, Int32 intAlternative, Boolean blnJs) +754
   Dynamicweb.Backend.Translate.JsTranslate(String Key, Int32 intAlternative) +12
   ASP.admin_default_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Dynamicweb.NET\Application\Admin\Default.aspx:9
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4592

 

 
Nicolai Høeg Pedersen
Reply

Hi Kevin

 

I comitted my changes to the wrong branch in CVS - so the change was not part of the release from yesterday.

 

I've just mailed you a new set of assemblies with the changes.

 
Reply

Hi again

 

Though I never got your e-mail (I've have had problems before when poeple send me system files) I got the release of 19th november working.

 

But I found a tiny bug in the file /Admin/Module/Settings_cpl.aspx in line 152 theres a sql execution of the command:

sql = "SELECT * FROM [Languages] WHERE LanguageActive=True"

When running on SQL Server the word True is assumed to be a column so I fixed it writing:

sql = "SELECT * FROM [Languages] WHERE LanguageActive=1"

But so far its working, THX!

 

 

You must be logged in to post in the forum