Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Problems in Database Localization

$
0
0
Re: Problems in Database Localization
ASP.NET
Re: Problems in Database Localization
04/18/2012
03:56:48 PM
3HD0Y6H8I Show this entire thread in new window
Gratar Image based on email address
From:
Nick
To:
Attachments:
None
Not really. Punted and added a try/catch for that exception to the constructor...
public DbSimpleResourceProvider(string virtualPath, string className) { if (!ProviderLoaded) ProviderLoaded = true; _ResourceSetName = className; try { DbResourceConfiguration.LoadedProviders.Add(this); } catch (IndexOutOfRangeException) { DbResourceConfiguration.LoadedProviders = new List<IWestWindResourceProvider>(); DbResourceConfiguration.LoadedProviders.Add(this); Westwind.InternetTools.SmtpClientNative smtp = new Westwind.InternetTools.SmtpClientNative(); smtp.MailServer = "popsmtp.foo.com"; smtp.Recipient = "criticalerrors@foo.com"; smtp.SenderEmail = "support@foo.com"; smtp.Subject = "IndexOutOfRangeException in Westwind.Globalization.DbSimpleResourceProvider"; smtp.SendMailAsync(); } }


Hi,

did you ever find out the cause of this? We have started to see this error intermittently on one of our servers

Thanks

Stephen



Hi Rick Strahl,

I am finding some exception in the implementation of database localization, i want to know the root cause of that exception so that its never repeated in future
the details of exception is below:

<B>message:</B> Index was outside the bounds of the array.

<B>Stack Trace</B> - at System.Collections.Generic.List`1.Add(T item) at NextGLS.BLL.wwDbSimpleResourceProvider..ctor(String virtualPath, String className) in C:\Project\Aries\NextGLS\NextGLS.BLL\DBLocalization\DBSimpleResourceProvider.cs:line 95 at NextGLS.BLL.DBSimpleResourceProviderFactory.CreateLocalResourceProvider(String virtualPath) in C:\Project\Aries\NextGLS\NextGLS.BLL\DBLocalization\DBSimpleResourceProvider.cs:line 50 at System.Web.Compilation.ResourceExpressionBuilder.GetLocalResourceProvider(VirtualPath virtualPath) at System.Web.UI.TemplateControl.GetLocalResourceObject(String resourceKey) at ASP.secure_student_studenthomepage_aspx.__BuildControlTree(secure_student_studenthomepage_aspx __ctrl) at ASP.secure_student_studenthomepage_aspx.FrameworkInitialize() at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.secure_student_studenthomepage_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)


please reply me as soon as possible.
Thanks,
Satish




Viewing all articles
Browse latest Browse all 10393

Trending Articles