[Mono-aspnet-list] Compiler Error Message: CS0433: The imported type `ProfileCommon' is defined multiple times

jedei jedei at 163.com
Wed Apr 1 00:50:56 EDT 2009


My environment
------------------------
OS: Gentoo 2008 x64
Mono-2.2 / Mono-2.4
Libgdiplus-2.2 / Libgdiplus-2.4
MySQL 5.0.54
MySQL.Data 5.2.5.0
MySQL.Web 5.2.5.0

my web app is simple, only one page, if profile enabled then i received 
Compiler Error Message: CS0433: The imported type `ProfileCommon' is defined
multiple times

profile settings in web.config
---------------------------------------------------------------
    <anonymousIdentification enabled="true"/>
    <profile enabled="true" defaultProvider="MySQLProfileProvider"
automaticSaveEnabled="false">
      <providers>
        <clear />
        <add autogenerateschema="false" connectionStringName="test_mysql"
applicationName="/" name="MySQLProfileProvider"
type="MySql.Web.Profile.MySQLProfileProvider, MySql.Web, Version=5.2.5.0,
Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
      </providers>
      <properties>
        <add name="FullName" type="String" allowAnonymous="true"/>
      </properties>
    </profile>



Error Messages
--------------------------------------------------------------------------------

Compilation Error
Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error. 

Compiler Error Message: CS0433: The imported type `ProfileCommon' is defined
multiple times

Source Error: 

Line 65:         }
Line 66:         
Line 67:         protected ProfileCommon Profile {
Line 68:             get {
Line 69:                 return ((ProfileCommon)(this.Context.Profile));



Show Complete Compilation Source:
-------------------------------------------------------------------------
Line 1: //
------------------------------------------------------------------------------
Line 2: //  <autogenerated>
Line 3: //      This code was generated by a tool.
Line 4: //      Mono Runtime Version: 2.0.50727.1433
Line 5: // 
Line 6: //      Changes to this file may cause incorrect behavior and will
be lost if 
Line 7: //      the code is regenerated.
Line 8: //  </autogenerated>
Line 9: //
------------------------------------------------------------------------------
Line 10: 
Line 11: #pragma checksum "/home/zd/test/test.aspx"
"{406ea660-64cf-4c82-b6f0-42d48172a799}" ""
Line 12: 
Line 13: namespace ASP {
Line 14:     using System;
Line 15:     using System.Collections;
Line 16:     using System.Collections.Specialized;
Line 17:     using System.Configuration;
Line 18:     using System.Text;
Line 19:     using System.Text.RegularExpressions;
Line 20:     using System.Web;
Line 21:     using System.Web.Caching;
Line 22:     using System.Web.SessionState;
Line 23:     using System.Web.Security;
Line 24:     using System.Web.Profile;
Line 25:     using System.Web.UI;
Line 26:     using System.Web.UI.WebControls;
Line 27:     using System.Web.UI.HtmlControls;
Line 28:     
Line 29:     
Line 30:     public class test_aspx : global::page_test,
System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 31:         
Line 32:         private static bool __initialized = false;
Line 33:         
Line 34:         private static object __stringResource = null;
Line 35:         
Line 36:         private static object __fileDependencies = null;
Line 37:         
Line 38:         private static int __autoHandlers;
Line 39:         
Line 40:         public test_aspx() {
Line 41:             string[] dependencies;
Line 42:             ((global::page_test)(this)).AppRelativeVirtualPath =
"~/test.aspx";
Line 43:             if ((global::ASP.test_aspx.__initialized == false)) {
Line 44:                 dependencies = new string[1];
Line 45:                 dependencies[0] = "~/test.aspx";
Line 46:                 global::ASP.test_aspx.__fileDependencies =
this.GetWrappedFileDependencies(dependencies);
Line 47:                 global::ASP.test_aspx.__initialized = true;
Line 48:             }
Line 49:         }
Line 50:         
Line 51:         [System.Obsolete()]
Line 52:         protected override int AutoHandlers {
Line 53:             get {
Line 54:                 return ASP.test_aspx.__autoHandlers;
Line 55:             }
Line 56:             set {
Line 57:                 ASP.test_aspx.__autoHandlers = value;
Line 58:             }
Line 59:         }
Line 60:         
Line 61:         protected System.Web.HttpApplication ApplicationInstance {
Line 62:             get {
Line 63:                 return
((System.Web.HttpApplication)(this.Context.ApplicationInstance));
Line 64:             }
Line 65:         }
Line 66:         
Line 67:         protected ProfileCommon Profile {
Line 68:             get {
Line 69:                 return ((ProfileCommon)(this.Context.Profile));
Line 70:             }
Line 71:         }
Line 72:         
Line 73:         private void __BuildControlTree(test_aspx __ctrl) {
Line 74:             
Line 75:             #line 1 "/home/zd/test/test.aspx"
Line 76:             __ctrl.StyleSheetTheme = "Default";
Line 77:             
Line 78:             #line default
Line 79:             #line hidden
Line 80:             
Line 81:             #line 1 "/home/zd/test/test.aspx"
Line 82:             this.InitializeCulture();
Line 83:             
Line 84:             #line default
Line 85:             #line hidden
Line 86:             System.Web.UI.IParserAccessor __parser =
((System.Web.UI.IParserAccessor)(__ctrl));
Line 87:             
Line 88:             #line 1 "/home/zd/test/test.aspx"
Line 89:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("<div class=\"page\" id=\"home-fixed\">\n   
"));
Line 90:             
Line 91:             #line default
Line 92:             #line hidden
Line 93:             
Line 94:             #line 1 "/home/zd/test/test.aspx"
Line 95:             this.__BuildControl_MultiView1();
Line 96:             
Line 97:             #line default
Line 98:             #line hidden
Line 99:             
Line 100:             #line 1 "/home/zd/test/test.aspx"
Line 101:             __parser.AddParsedSubObject(this.MultiView1);
Line 102:             
Line 103:             #line default
Line 104:             #line hidden
Line 105:             
Line 106:             #line 1 "/home/zd/test/test.aspx"
Line 107:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("\n</div>\n"));
Line 108:             
Line 109:             #line default
Line 110:             #line hidden
Line 111:         }
Line 112:         
Line 113:         private System.Web.UI.Control __BuildControl_MultiView1()
{
Line 114:             System.Web.UI.WebControls.MultiView __ctrl;
Line 115:             
Line 116:             #line 11 "/home/zd/test/test.aspx"
Line 117:             __ctrl = new System.Web.UI.WebControls.MultiView();
Line 118:             
Line 119:             #line default
Line 120:             #line hidden
Line 121:             
Line 122:             #line 11 "/home/zd/test/test.aspx"
Line 123:             this.MultiView1 = __ctrl;
Line 124:             
Line 125:             #line default
Line 126:             #line hidden
Line 127:             
Line 128:             #line 11 "/home/zd/test/test.aspx"
Line 129:             __ctrl.ID = "MultiView1";
Line 130:             
Line 131:             #line default
Line 132:             #line hidden
Line 133:             
Line 134:             #line 11 "/home/zd/test/test.aspx"
Line 135:             __ctrl.ActiveViewIndex = 0;
Line 136:             
Line 137:             #line default
Line 138:             #line hidden
Line 139:             
Line 140:             #line 11 "/home/zd/test/test.aspx"
Line 141:             __ctrl.EnableViewState = false;
Line 142:             
Line 143:             #line default
Line 144:             #line hidden
Line 145:             System.Web.UI.IParserAccessor __parser =
((System.Web.UI.IParserAccessor)(__ctrl));
Line 146:             
Line 147:             #line 11 "/home/zd/test/test.aspx"
Line 148:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("\n        "));
Line 149:             
Line 150:             #line default
Line 151:             #line hidden
Line 152:             
Line 153:             #line 11 "/home/zd/test/test.aspx"
Line 154:             this.__BuildControl_View1();
Line 155:             
Line 156:             #line default
Line 157:             #line hidden
Line 158:             
Line 159:             #line 11 "/home/zd/test/test.aspx"
Line 160:             __parser.AddParsedSubObject(this.View1);
Line 161:             
Line 162:             #line default
Line 163:             #line hidden
Line 164:             
Line 165:             #line 11 "/home/zd/test/test.aspx"
Line 166:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("\n        "));
Line 167:             
Line 168:             #line default
Line 169:             #line hidden
Line 170:             
Line 171:             #line 11 "/home/zd/test/test.aspx"
Line 172:             this.__BuildControl_View2();
Line 173:             
Line 174:             #line default
Line 175:             #line hidden
Line 176:             
Line 177:             #line 11 "/home/zd/test/test.aspx"
Line 178:             __parser.AddParsedSubObject(this.View2);
Line 179:             
Line 180:             #line default
Line 181:             #line hidden
Line 182:             
Line 183:             #line 11 "/home/zd/test/test.aspx"
Line 184:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("        \n    "));
Line 185:             
Line 186:             #line default
Line 187:             #line hidden
Line 188:             return __ctrl;
Line 189:         }
Line 190:         
Line 191:         private System.Web.UI.Control __BuildControl_View1() {
Line 192:             System.Web.UI.WebControls.View __ctrl;
Line 193:             
Line 194:             #line 11 "/home/zd/test/test.aspx"
Line 195:             __ctrl = new System.Web.UI.WebControls.View();
Line 196:             
Line 197:             #line default
Line 198:             #line hidden
Line 199:             
Line 200:             #line 11 "/home/zd/test/test.aspx"
Line 201:             this.View1 = __ctrl;
Line 202:             
Line 203:             #line default
Line 204:             #line hidden
Line 205:             
Line 206:             #line 11 "/home/zd/test/test.aspx"
Line 207:             __ctrl.ID = "View1";
Line 208:             
Line 209:             #line default
Line 210:             #line hidden
Line 211:             
Line 212:             #line 11 "/home/zd/test/test.aspx"
Line 213:             __ctrl.EnableViewState = false;
Line 214:             
Line 215:             #line default
Line 216:             #line hidden
Line 217:             System.Web.UI.IParserAccessor __parser =
((System.Web.UI.IParserAccessor)(__ctrl));
Line 218:             
Line 219:             #line 11 "/home/zd/test/test.aspx"
Line 220:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("\n\t\t\t\t<p class=\"introText\">test
mono</p>\n            "));
Line 221:             
Line 222:             #line default
Line 223:             #line hidden
Line 224:             return __ctrl;
Line 225:         }
Line 226:         
Line 227:         private System.Web.UI.Control __BuildControl_View2() {
Line 228:             System.Web.UI.WebControls.View __ctrl;
Line 229:             
Line 230:             #line 11 "/home/zd/test/test.aspx"
Line 231:             __ctrl = new System.Web.UI.WebControls.View();
Line 232:             
Line 233:             #line default
Line 234:             #line hidden
Line 235:             
Line 236:             #line 11 "/home/zd/test/test.aspx"
Line 237:             this.View2 = __ctrl;
Line 238:             
Line 239:             #line default
Line 240:             #line hidden
Line 241:             
Line 242:             #line 11 "/home/zd/test/test.aspx"
Line 243:             __ctrl.ID = "View2";
Line 244:             
Line 245:             #line default
Line 246:             #line hidden
Line 247:             
Line 248:             #line 11 "/home/zd/test/test.aspx"
Line 249:             __ctrl.EnableViewState = false;
Line 250:             
Line 251:             #line default
Line 252:             #line hidden
Line 253:             System.Web.UI.IParserAccessor __parser =
((System.Web.UI.IParserAccessor)(__ctrl));
Line 254:             
Line 255:             #line 11 "/home/zd/test/test.aspx"
Line 256:             __parser.AddParsedSubObject(new
System.Web.UI.LiteralControl("\n            bbb"));
Line 257:             
Line 258:             #line default
Line 259:             #line hidden
Line 260:             return __ctrl;
Line 261:         }
Line 262:         
Line 263:         protected override void FrameworkInitialize() {
Line 264:             this.StyleSheetTheme = "Default";
Line 265:             base.FrameworkInitialize();
Line 266:            
this.SetStringResourcePointer(global::ASP.test_aspx.__stringResource, 0);
Line 267:             this.__BuildControlTree(this);
Line 268:            
this.AddWrappedFileDependencies(global::ASP.test_aspx.__fileDependencies);
Line 269:             this.Request.ValidateInput();
Line 270:         }
Line 271:         
Line 272:         public override int GetTypeHashCode() {
Line 273:             return 1488235122;
Line 274:         }
Line 275:     }
Line 276: }




-- 
View this message in context: http://www.nabble.com/Compiler-Error-Message%3A-CS0433%3A-The-imported-type-%60ProfileCommon%27-is-defined-multiple-times-tp22819758p22819758.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list