After Migrating all the code and Database data Manually from Kentico 5.5R2 to Kentico 10, The code compiles perfectly in VS2015 but once I attempt to rin the Site I encounter the eeror posted bellow, any and all help would be gladly appreciated.
Server Error in '/' Application.
[SqlHelper.ReplaceSource]: Missing ##SOURCE## macro in the query text 'SELECT [TranslationText], [StringKey], [CultureCode] FROM CMS_ResourceString WHERE ##WHERE## ORDER BY ##ORDERBY##', cannot apply the source 'View_CMS_ResourceString_Joined'.
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.NotSupportedException: [SqlHelper.ReplaceSource]: Missing ##SOURCE## macro in the query text 'SELECT [TranslationText], [StringKey], [CultureCode] FROM CMS_ResourceString WHERE ##WHERE## ORDER BY ##ORDERBY##', cannot apply the source 'View_CMS_ResourceString_Joined'.
Source Error:
Line 19: string mPrefix = "http://";
Line 20:
Line 21: titleElem.TitleText = GetString("Message.InvalidWebSite");
Line 22: string mDomain = RequestContext.URL.Host;
Line 23: if (RequestContext.URL.Port != 80)
Source File: E:\webcmsdev\cmsmessages\invalidWebsite.aspx.cs Line: 21
Stack Trace:
[NotSupportedException: [SqlHelper.ReplaceSource]: Missing ##SOURCE## macro in the query text 'SELECT [TranslationText], [StringKey], [CultureCode] FROM CMS_ResourceString WHERE ##WHERE## ORDER BY ##ORDERBY##', cannot apply the source 'View_CMS_ResourceString_Joined'.]
CMS.DataEngine.SqlMacroHelper.ReplaceSource(String queryText, String source, String defaultSource) +237
CMS.DataEngine.SqlMacroHelper.ResolveMacrosInQueryText(QueryMacros queryMacros, String queryText) +88
CMS.DataEngine.SqlMacroHelper.ResolveQueryMacros(QueryMacros queryMacros, String queryText) +47
CMS.DataEngine.QueryParameters.ResolveMacrosInternal(Boolean updateQueryText) +54
CMS.DataEngine.GeneralConnection.ExecuteQuery(QueryParameters query) +27
CMS.DataEngine.GeneralConnection.ExecuteQuery(QueryParameters query, Int32& totalRecords) +62
CMS.DataEngine.DataQueryBase1.GetDataFromDBInternal() +104
CMS.DataEngine.DataQueryBase
1.GetDataFromDB() +49
CMS.DataEngine.DataQueryBase1.GetData() +118
CMS.DataEngine.DataQueryBase
1.get_Result() +93
CMS.DataEngine.ObjectQueryBase2.GetResults(IDataQuery query, Int32& totalRecords) +17
CMS.DataEngine.DataQueryBase
1.GetDataFromDB() +75
CMS.DataEngine.DataQueryBase1.GetData() +118
CMS.DataEngine.ObjectQueryBase
2.GetData() +108
CMS.DataEngine.DataQueryBase1.get_Result() +93
CMS.Localization.ResourceStringInfoProvider.LoadStringGeneration(ProviderDictionaryCollection sender, Int32 generation, Object parameter) +114
CMS.DataEngine.ProviderDictionaryCollection.LoadGeneration(Int32 generation) +114
CMS.DataEngine.ProviderDictionaryCollection.LoadDefaultItems() +49
CMS.Localization.ResourceStringInfoProvider.get_Resources() +303
CMS.Localization.ResourceStringInfoProvider.GetStringInternal(String key, String cultureCode, String defaultValue, Boolean useDefaultCulture) +59
CMS.Localization.SQLLocalizationSource.GetString(String stringName, String culture) +34
CMS.Localization.<>c__DisplayClasse.<GetStringFromLocalizationSource>b__7(ILocalizationStringSource source) +19
System.Linq.WhereSelectArrayIterator
2.MoveNext() +58
System.Linq.Enumerable.FirstOrDefault(IEnumerable1 source, Func
2 predicate) +94
CMS.Localization.LocalizationHelper.GetStringFromLocalizationSource(String stringName, String culture, Boolean useDefaultCulture, IEnumerable`1 sources) +175
CMS.Localization.LocalizationHelper.GetStringInternal(String stringName, String culture, String defaultValue, Boolean useDefaultCulture, Boolean allowMultiple) +229
CMS.Localization.LocalizationService.GetString(String stringName, String culture, Boolean useDefaultCulture) +38
CMS.UIControls.AbstractCMSPage.GetString(String stringName) +63
CMSMessages_invalidWebsite.Page_Load(Object sender, EventArgs e) in E:\webcmsdev\cmsmessages\invalidWebsite.aspx.cs:21
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnLoad(EventArgs e) +95
CMS.UIControls.CMSPage.OnLoad(EventArgs e) +64
System.Web.UI.Control.LoadRecursive() +59
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2952
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1085.0