tag:blogger.com,1999:blog-95879907422503159.post1142229434275164055..comments2024-03-21T12:08:37.183+05:30Comments on Passionate Techie: Custom Variation Landing pageBhushan Gawalehttp://www.blogger.com/profile/10947796894313016081noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-95879907422503159.post-88012255176484321102013-02-12T16:18:18.310+05:302013-02-12T16:18:18.310+05:30Getting "Same key has already been added"...Getting "Same key has already been added" error.<br />This is related to my previous question.-<br />I have the follwing Language Variations.<br />en-US (source)<br />en(Global),<br />fr-CA(French-Canada),<br />en-CA(English-Canada),<br />de-De(German(Germany)),<br />fr(Global). <br />When I executed the below code, Please let me know what are the values will be added to the "languageToUrl". <br /><br />if (_cultureInfo != null)<br />{<br />string[] _displayLanguage = _cultureInfo.EnglishName.Split('(');<br /> _languageToUrl.Add(_displayLanguage[0].Trim(), _label.TopWebUrl);<br /> }<br /><br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-68080568643110273622013-02-12T14:56:43.878+05:302013-02-12T14:56:43.878+05:30I followed your code to implement Custom Variation...I followed your code to implement Custom Variation Landing Logic. I created a dll and deployed in C:\interpub\wwwroot\wss\VirtuatDirectory\port\-app_bin folder. Register the dll in VariationRootPageLayout.aspx . I also remove reference to the VariationRootLanding.ascx control(in ~/14/Templete/ControlTemplate folder). When I hit the URL of my site, I am getiing an error in VariationRoot.aspx-An item with the same key has already been added. Kindly help me. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-24286827291498304092013-02-01T00:36:32.551+05:302013-02-01T00:36:32.551+05:30Have you added the the additional method mentioned...Have you added the the additional method mentioned above in your code?Bhushan Gawalehttps://www.blogger.com/profile/10947796894313016081noreply@blogger.comtag:blogger.com,1999:blog-95879907422503159.post-85950530914234537682013-01-30T20:19:20.564+05:302013-01-30T20:19:20.564+05:30I am getting error while Creating Culture Info fro...I am getting error while Creating Culture Info from a Label. I am using VS2008<br /><br />//Your code<br />if (!languageToUrl.ContainsKey(label.Language))<br /> {<br /> CultureInfo cultureInfo =CreateCulture(label);<br /> //I am getting Error as The name 'CreateCulture' does not exists in current context. Please Help Anonymousnoreply@blogger.com