It is working fine on a simple page, but when i use it on a page witch contains pictures the "Application_BeginRequest" is called several times,
and i then get an error:
System.ArgumentNullException was unhandled by user code
Message="Value cannot be null.\r\nParameter name: name"
Source="mscorlib"
ParamName="name"
StackTrace:
at System.Globalization.CultureInfo.GetCultureInfo(String name)
at ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebLocalizationSample\Global.asax:line 48
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
pnr
Member
456 Points
116 Posts
Masterpage and Localization
Mar 15, 2006 09:13 AM|LINK
I have some problems using Masterpage and Localization together, but then I found this solution:
http://forums.asp.net/1219973/ShowPost.aspx
It is working fine on a simple page, but when i use it on a page witch contains pictures the "Application_BeginRequest" is called several times, and i then get an error:
System.ArgumentNullException was unhandled by user code
Message="Value cannot be null.\r\nParameter name: name"
Source="mscorlib"
ParamName="name"
StackTrace:
at System.Globalization.CultureInfo.GetCultureInfo(String name)
at ASP.global_asax.Application_BeginRequest(Object sender, EventArgs e) in c:\Inetpub\wwwroot\WebLocalizationSample\Global.asax:line 48
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)