Reporting Bug while crating multilangauge site

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/30/2009 4:51:27 AM
Gravatar
Total Posts 17

Reporting Bug while creating multilangauge site

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:


Line 568: }
Line 569:
Line 570: base.Render(writer);
Line 571:
Line 572: }

Source File: F:\MojoProject_Backup on 2 March\Mojo Latest\Mojo\Web\Components\mojoBasePage.cs Line: 570

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:570
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

 

Hello Sir,

                I am using window xp as operating system . The version of mojo portal is mojoPortal 2.2.9.2.The database is mysql

i get this problem when i try to create a new child site by setting all the condition in web config as defined in

http://lucasnovae.blogspot.com/2009/03/tutorial-multilingual-mojoportal.html    url.

I get this problem when i try to run my created folder arabic under web folder of application having default.aspx under this arabic

folder :

 

error comes when i write url like this : http://localhost:1488/arabic/

 

Please provide me immediate solution . Thanks for help in advance

 

 

 

 

 

 

 

 

 

3/30/2009 6:28:32 AM
Gravatar
Total Posts 18439

Re: Reporting Bug while crating multilangauge site

You have to put Default.aspx on it like this http://localhost:1488/arabic/Default.aspx or else you have to create a real folder named arabic below the root of the site and put an empty text file there named Default.aspx 

http://www.mojoportal.com/multiplesitesbasedonfoldernames.aspx

Hope it helps,

Joe

3/31/2009 12:53:03 AM
Gravatar
Total Posts 17

Reporting Bug while crating multilangauge site

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.

3/31/2009 6:29:37 AM
Gravatar
Total Posts 18439

Re: Reporting Bug while crating multilangauge site

Hi,

I logged into your site and had a look around and tried a few things to diagnose it. I think the main problem is probably a bug but you are running an older version of mojoPortal (2.2.7.7). I cannot re-produce the problem in the latest version 2.2.9.6. I know there have been some bug fixes in the url re-writer in recent versions. I recommend upgrade to the latest version of mojoPortal as a first step. You will need to review your custom skins as described here: http://www.mojoportal.com/important-skin-changes.aspx

The latest mojoPortal does require .NET 3.5 SP1, but I think that is what you have.

Hope it helps,

Joe

3/31/2009 6:49:17 AM
Gravatar
Total Posts 17

Reporting Bug while crating multilangauge site

Hi Joe,

          Thanks for ur response. But what u have mentioned is different i think so , have u check my website with creating a subfolder for arabic langauge website and their by wiriting url as metioned

www.dynamic.website.co.in/arabic/default.aspx

 Their i got that error as mentioned in  my pervious form

 

3/31/2009 6:51:15 AM
Gravatar
Total Posts 18439

Re: Reporting Bug while crating multilangauge site

Yes, it is a bug in an older version, please upgrade to the newest version of mojoPortal. The bug is already fixed in the new version.

3/31/2009 6:54:47 AM
Gravatar
Total Posts 17

Reporting Bug while crating multilangauge site

Hi Joe ,

 

             Thanks for ur quick reply. Joe  if i upgrade my mojo portal version than would it be easy for me to create a multilanguage site in one web application  and will i have to again upload my wholde application again on server as it  consume lots of time so is their any alternate or what .Please suggest me in this regard. And can i discuss something  with you if you are available on chat , it would  much helping to me .

3/31/2009 7:02:04 AM
Gravatar
Total Posts 18439

Re: Reporting Bug while crating multilangauge site

I have given you a clear answer, I'm sorry if you don't like the answer but the answer doesn't change. The bug is fixed in the new version.

http://www.mojoportal.com/upgrading.aspx 

3/31/2009 7:14:18 AM
Gravatar
Total Posts 17

Reporting Bug while crating multilangauge site

Hi Joe

 

           I cannot find a link mentioned by you to download latest version of mojo portal. I mean when i click this it tell me  to login and that

nothing is mentioned to download latest version.

3/31/2009 7:19:04 AM
Gravatar
Total Posts 18439

Re: Reporting Bug while crating multilangauge site

I assumed you already know how to download it since you downloaded previous versions. You may notice a main link in the menu at the top of the page is "Download" http://www.mojoportal.com/download.aspx from there you will see instructions and a link to the download files on Codeplex.

You must sign in to post in the forums. This thread is closed to new posts.