Error trying to set featue "Setting value"

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/5/2013 3:54:15 PM
Gravatar
Total Posts 29

Error trying to set featue "Setting value"

mojoPortal version: 2.3.9.5 pgsql

I have been writing custom features for our site, and everything is great. But I want to use Feature Settings, and set a default value. I can add a setting just fine. 

Resource file: <no entry>
Group name key: <no entry>
Setting key: BidDetailsURL
Control type: TextBox
Control source: <no entry>
Setting value:
Sort order: 500
Help key: <no entry>
Regex validation expression: <no entry>

  • If I create a Setting with a blank value, then try to set a default value for it, I get the first error.
  • If I create a Setting with a blank value, then try to set an Instance value for it, I get the second error.
  • If I create a Setting with a default value included on creation, it saves without error.

When setting default value:

Server Error in '/' Application.

ERROR: 42601: syntax error at or near ":"

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: Npgsql.NpgsqlException: ERROR: 42601: syntax error at or near ":"

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[NpgsqlException (0x80004005): ERROR: 42601: syntax error at or near ":"] Npgsql.<ProcessBackendResponses_Ver_3>d__a.MoveNext() +502 Npgsql.ForwardsOnlyDataReader.GetNextResponseObject() +519 Npgsql.ForwardsOnlyDataReader.GetNextRowDescription() +77 Npgsql.ForwardsOnlyDataReader.NextResult() +67 Npgsql.ForwardsOnlyDataReader..ctor(IEnumerable`1 dataEnumeration, CommandBehavior behavior, NpgsqlCommand command, NotificationThreadBlock threadBlock, Boolean synchOnReadError) +119 Npgsql.NpgsqlCommand.GetReader(CommandBehavior cb) +285 Npgsql.NpgsqlCommand.ExecuteNonQuery() +72 mojoPortal.Data.NpgsqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, NpgsqlParameter[] commandParameters) +147 mojoPortal.Data.DBModuleDefinition.UpdateModuleDefinitionSettingById(Int32 id, Int32 moduleDefId, String resourceFile, String groupName, String settingName, String settingValue, String controlType, String regexValidationExpression, String controlSrc, String helpKey, Int32 sortOrder) +1258 mojoPortal.Business.ModuleDefinition.UpdateModuleDefinitionSettingById(Int32 id, Int32 moduleDefId, String resourceFile, String groupName, String settingName, String settingValue, String controlType, String regexValidationExpression, String controlSrc, String helpKey, Int32 sortOrder) +35 mojoPortal.Web.AdminUI.ModuleDefinitionSettingsPage.grdSettings_RowUpdating(Object sender, GridViewUpdateEventArgs e) +1457 System.Web.UI.WebControls.GridView.OnRowUpdating(GridViewUpdateEventArgs e) +139 System.Web.UI.WebControls.GridView.HandleUpdate(GridViewRow row, Int32 rowIndex, Boolean causesValidation) +808 System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +855 System.Web.UI.WebControls.GridView.OnBubbleEvent(Object source, EventArgs e) +95 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.GridViewRow.OnBubbleEvent(Object source, EventArgs e) +121 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +125 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +167 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

For instance value:

Server Error in '/' Application.

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources.m11uwhe9" at compile time, or that all the satellite assemblies required are loadable and fully signed.

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.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources.m11uwhe9" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Source Error: 
 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 
 

[MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Resources..resources" was correctly embedded or linked into assembly "App_GlobalResources.m11uwhe9" at compile time, or that all the satellite assemblies required are loadable and fully signed.] System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName) +408 System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark) +9618434 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark) +560 System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents) +48 System.Resources.ResourceManager.GetObject(String name, CultureInfo culture, Boolean wrapUnmanagedMemStream) +266 System.Resources.ResourceManager.GetObject(String name, CultureInfo culture) +10 System.Web.Compilation.BaseResXResourceProvider.GetObject(String resourceKey, CultureInfo culture) +68 System.Web.Compilation.ResourceExpressionBuilder.GetResourceObject(IResourceProvider resourceProvider, String resourceKey, CultureInfo culture, Type objType, String propName) +23 mojoPortal.Web.AdminUI.ModuleSettingsPage.btnSave_Click(Object sender, EventArgs e) +4172 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563

6/6/2013 12:11:29 PM
Gravatar
Total Posts 18439

Re: Error trying to set featue "Setting value"

Hi David,

Thanks for the bug report.

I was able to reproduce both of these problems using the latest code and then was able to fix it. It is now fixed in our source code repository so it will be fixed in the next release of mojoPortal. 

Best,

Joe

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