Unable to run installation of mojoportal

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/22/2008 8:08:34 AM
Gravatar
Total Posts 11

Re: Unable to run installation of mojoportal

Dear Joe,

          I have checked the browser preferred langauges for both internet explorer and firefox, they have already have on and only language en-US. I am afraid the system is still unable to run even after i unzipped again the release files.

Waiting for your response.

Regards,

Muhammad Yasir Iqbal.

8/22/2008 8:21:01 AM
Gravatar
Total Posts 18439

Re: Unable to run installation of mojoportal

Try deleting these files from App_GlobalResources:

Resource.zh-Hant.resx
Resource.zh-CN.resx

and let me know if it makes any difference

This link has some relevant information:

http://blogs.msdn.com/shawnste/archive/2006/11/14/problems-compiling-resources-in-net-2-0-apps-after-updates.aspx

If that doesn't solve it then please google for this: "The namespace 'Resources' already contains a definition for 'Resource'"

and do your own research to try and solve it.

Hope it helps,

Joe

8/22/2008 8:26:56 AM
Gravatar
Total Posts 11

Re: Unable to run installation of mojoportal

Dear Joe,

       I googled for this error and found out the following message

Hi everyone.
i'm having some problems with the global resources in asp.net 2.0. i boiled
it doen to this:
i create a brand new website and add an App_GlobalResources folder. I then
add to this folder 2 resource files named:
MyResource.resx
MyResource.yi.resx
Then I build the site and get the following Error Message in the Error List:
The namespace 'Resources' already contains a definition for 'MyResource'
In file: App_GlobalResources.sg8-m9lm.1.cs
What I find is that if I change the "yi" to, for instance, "fr", then there
is no error. additionally if i rename the "MyResource.resx" to something else
like "MyOtherResource.resx", then it builds Ok, but then I dont have
strong-typed access to the rsource files.
What can the problem be? I would appreciate any lead. On google I didn't get
a single reference to this specific problem.
Thankfully,
YisMan
 

Now my question to you is that in release zip extracted files we have App_GlobalResources folder we have following files, does this error has some thing to with this, please confirm Resource.cs.resx,Resource.de.resx,Resource.es-MX.resx,Resource.fa.resx,Resource.it.resx,Resource.nl.resx,Resource.pt-BR.resx,

Resource.resx,Resource.ru.resx,Resource.sv.resx,Resource.tr.resx,Resource.zh-CN.resx,Resource.zh-Hant.resxResource.ru.resx

Regards,

Muhammad Yasir Iqbal.

8/22/2008 8:32:58 AM
Gravatar
Total Posts 11

Re: Unable to run installation of mojoportal

Dear Joe,

       Success atlast . Setup started successfully. I am thankful to you for your time. If any thing comes up i will let you know. I appriciate your concerns, you have been very helpful to me.

Thanks and regards,

Muhammad Yasir Iqbal.

8/22/2008 8:35:59 AM
Gravatar
Total Posts 11

Re: Unable to run installation of mojoportal

Dear Joe,

       After running /setup/Default.aspx. Following time out exception accured.

Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema needs to be created.
Running script mojoportal-core - 2.2.6.7 - 00:00:11.1699445
System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at mojoPortal.Data.SqlHelper.ExecuteNonQuery(SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(String script, String overrideConnectionInfo) at mojoPortal.Data.DBPortal.DatabaseHelperRunScript(FileInfo scriptFile, String overrideConnectionInfo) at mojoPortal.Business.DatabaseHelper.RunScript(Guid applicationId, FileInfo scriptFile, String overrideConnectionInfo) - 00:01:11.8313354
Note: This page shows some information that is helpful during setup and upgrades but for security it would be best not to show any information when the system is up to date. You can disable setup and suppress all information on this page by setting DisableSetup=true in Web.config. When you need to upgrade, you can set this back to false. If you are logged in as Administrator setup will run and you will be able to see this page even if it is disabled in Web.config so you can easily leave it disabled and just login before upgrading. But if you are not logged in you will need to enable setup in Web.config.
 

Do i have to run setup again or setup has been successful. Waiting for your response.

Regards,

Muhammad Yasir Iqbal.

8/22/2008 8:38:16 AM
Gravatar
Total Posts 18439

Re: Unable to run installation of mojoportal

So deleting those 2 files did solve it?

Its really a dificult problem as described in that blog post I linked above, it seems that on some machines it will work and on others it will not. Proabably it was the file Resource.zh-Hant.resx, on some machines (yours) it would probably work if that file was named Resource.zh-CHT.resx, but on other machines it needs to be Resource.zh-Hant.resx

At least now I know what to tell anyone if this problem comes up again.

Best,

Joe

8/22/2008 8:40:58 AM
Gravatar
Total Posts 18439

Re: Unable to run installation of mojoportal

It should not be needed to run setup again, if it ran ok before, but it looks likes you got a database timeout running it, so maybe it would be better to start over with a new empty db.

Hope it helps,

Joe

8/22/2008 8:50:59 AM
Gravatar
Total Posts 11

Re: Unable to run installation of mojoportal

Dear Joe,

       Every thing seems to be working fine . I am thankful to you. One thing i must say i very much like you and MojoPortal. Happy coding.

Regards,

Muhammad Yasir Iqbal.

8/24/2008 9:19:31 AM
Gravatar
Total Posts 5

Re: Unable to run installation of mojoportal

I'm a first time user and I just want to add my thanks as well!  I had exactly same problem.
I deleted the extra resource.*.resx files (Resource.nl.resx, Resource.ru.resx, Resource.de.resx etc) and it seem to work.

Just for future reference, my platform:

  • winXP sp2 (stand alone machine)
  • iis 5.1
  • asp 2.0.50727
  • Using application protection (medium)

 

8/24/2008 9:44:48 AM
Gravatar
Total Posts 18439

Re: Unable to run installation of mojoportal

Hi,

You only needed to delete Resource.zh-Hant.resx, it was not needed to delete all those other ones.

I think if you had upgraded your machine to XP SP 3 this problem would not happen.

The background information for this problem is discussed in this blog post:
http://blogs.msdn.com/shawnste/archive/2006/11/14/problems-compiling-resources-in-net-2-0-apps-after-updates.aspx

The problem is that ISO codes changed for some languages, in this case it is specifically the Traditional Chinese translation, where the ISO code changed from zh-CHT to zh-Hant. Our resource file for this language uses the new name Resource.zh-Hant.resx, but your machine apparently does not recognize the new ISO code zh-Hant and it causes this error.

The first thing you should do is run Windows Update and make sure you are up to date on all .NET updates and service paks (XP SP3). After doing that your machine may/should correctly recognize zh_Hant and if so it will fix the problem for you and this would be the best solution.

If getting all the updates does not solve it, try renaming the file Web/App_GlobalResources/Resource.zh-Hant.resx to Web/App_GlobalResources/Resource.zh-CHT.resx

If that doesn't work try just deleting the file that you renamed to Resource.zh-CHT.resx

Hope it helps,

Joe

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