ftg
Posts: 3
|
Posted: 03/11/2008, 2:22 PM |
|
###################
How to reproduce error:
###################
(1) Settings > Add Locale
* Language: Chinese
(use defaults for the rest)
now you will have "English (Default)" and "Chinese" locale
(2) Now press F9 to compile and publish the project.
######
ERROR
######
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0101: The namespace 'Resources' already contains a definition for 'Strings'
Source Error:
Line 10: //------------------------------------------------------------------------------
Line 11:
Line 12: namespace Resources.Strings {
Line 13: using System;
Line 14:
Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.1.cs Line: 12
Show Detailed Compiler Output:
c:\windows\system32\inetsrv> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\assembly\dl3\ff0102fb\925a43f9_455fc801\InMotion.Web.Features.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.dll" /D:DEBUG /debug+ /optimize- /res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\resources.strings.resources" /res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\resources.strings.zh.resources" /w:4 /nowarn:1659;1699 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.2.cs"
Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.1.cs(12,21): error CS0101: The namespace 'Resources' already contains a definition for 'Strings'
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ccsim\d0ebd70e\6dbb67bf\App_GlobalResources.roi7nj-s.0.cs(26,18): (Location of symbol related to previous error)
Show Complete Compilation Source:
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210
|
|
|
NickT
Posts: 18
|
Posted: 03/12/2008, 7:48 AM |
|
Hi, I'm one of InMotion Framework developers and will try to answer on your question.
The Microsoft .Net Framework does not contain culture with name "zh" (Chinese), but you can solve your problem by country specification into locale settings (say China).
_________________
Nick T.
InMotion Systems |
|
|
|