Hello Joe,
Thanks for your quick response.
Joe still i am facing a critical problem for providing multilingual feature in my project. I want to explain my requirements in detail.
Actually i want to add multilingual support in my project (English, Arabic) with one database. When user click on "arabic" flag then, all the contents and links of website should be converted in "arabic". I have read many articles, but i find your article most suitable with my requirements.
Although I have tried your solution for this but still it is not working properly.
I have implemented following changes according to your article :-
1. I have changed following changes in web.config file.
- AllowMultipleSites = "true"
- UseFoldersInsteadOfHostnamesForMultipleSites="true"
2. In Admin > Site Settings in the first site. choose "New Site", then entered "OnlineArabic" for the new site and clicked Save button.
3. After saving the new site, i have mapped a folder named "arabic" to the second site.
4. I have created a physical folder beneath the root site with the same name ("arabic") and put an empty text file in there named Default.aspx.
5. Then I opened a browser and go to http://www.dynamicwebsite.co.in/arabic/Default.aspx to see the second site than it gives the following error.
Server Error in '/' Application.
Cannot use a leading .. to exit above the top directory.
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.Web.HttpException: Cannot use a leading .. to exit above the top directory.
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:
[HttpException (0x80004005): Cannot use a leading .. to exit above the top directory.]
System.Web.Util.UrlPath.ReduceVirtualPath(String path) +3626102
System.Web.Util.UrlPath.Reduce(String path) +84
System.Web.Util.UrlPath.Combine(String appPath, String basepath, String relative) +326
System.Web.UI.Control.ResolveClientUrl(String relativeUrl) +296
System.Web.UI.HtmlControls.HtmlLink.RenderAttributes(HtmlTextWriter writer) +112
System.Web.UI.HtmlControls.HtmlLink.Render(HtmlTextWriter writer) +39
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer) +14
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +199
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
mojoPortal.Web.mojoBasePage.Render(HtmlTextWriter writer) in F:\MojoProject_Backup on 2 March\Mojo Latest\Mojo\Web\Components\mojoBasePage.cs:518
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
6. I searched over google for this error then i find that above error occured due to url rewriting. So i set "UseUrlRewriting" = "false" in web.config.
7. After setting this key above error gone away but a blank page open and nothing happens.
Kindly help me for supporting multilingual in my website. following is the details of my online working website.
URL : www.dynamicwebsite.co.in
Username : admin@admin.com
Password : admin
kindly check above link.
i am waiting for your response.