Usuário com melhor resposta
problema grave

Pergunta
-
Boa tarde,
Estou com esse problema ao executar meu projeto:
Server Error in '/' Application.
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: CS0433: The type 'ProfileCommon' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_Code.xy1rftji.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\0eb47a28\209205ef_252dcd01\Iron_2012.DLL'
Source Error:Line 221: } Line 222: Line 223: protected ProfileCommon Profile { Line 224: get { Line 225: return ((ProfileCommon)(this.Context.Profile));
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_global.asax.t_tmefdr.0.cs Line: 223Show Detailed Compiler Output:C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\d5ce7824\00a2c99c_84a4cc01\Westwind.Globalization.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\0e91fde5\00b4371f_33bccc01\Telerik.Web.Design.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_Code.xy1rftji.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\4922c90b\0085f9b6_70a4cc01\TSHAK.Components.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\c869d576\0035f9c3_aeeacc01\SampleChat.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\5a70fb06\0058c8b5_70a4cc01\RequiredIfValidator.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Design\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\0eb47a28\209205ef_252dcd01\Esc_Adv_Iron_2012.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\257279c3\00b4371f_33bccc01\Telerik.Web.UI.Skins.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\c81064d2\0085f9b6_70a4cc01\AjaxControlToolkit.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\1a7129dd\00144f54_0beeca01\HtmlAgilityPack.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_GlobalResources.apa0yphw.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\aeaafea7\0058c8b5_70a4cc01\JBFLibrary.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\288c6909\006db243_18b1cc01\PayPal.Web.UI.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\38afe8c6\0075989b_84a4cc01\Westwind.Tools.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\823d2ed6\0085f9b6_70a4cc01\ConversorVideo.Web.UI.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\32c7074a\00cffa9d_84a4cc01\Westwind.Web.Controls.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\cd0687a6\0085f9b6_70a4cc01\Itenso.TimePeriod.DLL" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\1bd2f8b5\0070e054_a50ecd01\Telerik.ReportViewer.Silverlight.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\4c1cae8e\00b4371f_33bccc01\Telerik.Web.UI.DLL" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DataVisualization\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DataVisualization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Speech\v4.0_4.0.0.0__31bf3856ad364e35\System.Speech.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\50f01298\0048679a_84a4cc01\Westwind.BusinessObjects.DLL" /out:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_global.asax.t_tmefdr.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701 /warnaserror- "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_global.asax.t_tmefdr.0.cs" "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_global.asax.t_tmefdr.1.cs" Microsoft (R) Visual C# 2010 Compiler version 4.0.30319.1 Copyright (C) Microsoft Corporation. All rights reserved. c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_global.asax.t_tmefdr.0.cs(223,19): error CS0433: The type 'ProfileCommon' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_Code.xy1rftji.dll' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\0eb47a28\209205ef_252dcd01\Esc_Adv_Iron_2012.DLL' c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\App_Code.xy1rftji.dll: (Location of symbol related to previous error) c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\a5dd2d70\548f9ff2\assembly\dl3\0eb47a28\209205ef_252dcd01\Esc_Adv_Iron_2012.DLL: (Location of symbol related to previous error)
Show Complete Compilation Source:Line 1: #pragma checksum "C:\Users\Administrador\Documents\Visual Studio 2010\Projects\Esc_Adv_Iron_2012\Esc_Adv_Iron_2012\global.asax" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "72DF1B48A626D1A097985923F86681D1" Line 2: //------------------------------------------------------------------------------ Line 3: // <auto-generated> Line 4: // This code was generated by a tool. Line 5: // Runtime Version:4.0.30319.261 Line 6: // Line 7: // Changes to this file may cause incorrect behavior and will be lost if Line 8: // the code is regenerated. Line 9: // </auto-generated> Line 10: //------------------------------------------------------------------------------ Line 11: Line 12: namespace ASP { Line 13: Line 14: #line 389 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 15: using System.Linq; Line 16: Line 17: #line default Line 18: #line hidden Line 19: Line 20: #line 385 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 21: using System.Collections.Generic; Line 22: Line 23: #line default Line 24: #line hidden Line 25: Line 26: #line 402 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 27: using System.Xml.Linq; Line 28: Line 29: #line default Line 30: #line hidden Line 31: Line 32: #line 392 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 33: using System.Web; Line 34: Line 35: #line default Line 36: #line hidden Line 37: Line 38: #line 399 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 39: using System.Web.UI.WebControls; Line 40: Line 41: #line default Line 42: #line hidden Line 43: Line 44: #line 383 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 45: using System; Line 46: Line 47: #line default Line 48: #line hidden Line 49: Line 50: #line 2 "C:\Users\Administrador\Documents\Visual Studio 2010\Projects\Esc_Adv_Iron_2012\Esc_Adv_Iron_2012\global.asax" Line 51: using System.Web.Routing; Line 52: Line 53: #line default Line 54: #line hidden Line 55: Line 56: #line 398 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 57: using System.Web.UI; Line 58: Line 59: #line default Line 60: #line hidden Line 61: Line 62: #line 401 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 63: using System.Web.UI.HtmlControls; Line 64: Line 65: #line default Line 66: #line hidden Line 67: Line 68: #line 396 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 69: using System.Web.Security; Line 70: Line 71: #line default Line 72: #line hidden Line 73: Line 74: #line 391 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 75: using System.Text.RegularExpressions; Line 76: Line 77: #line default Line 78: #line hidden Line 79: Line 80: #line 388 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 81: using System.Configuration; Line 82: Line 83: #line default Line 84: #line hidden Line 85: Line 86: #line 387 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 87: using System.ComponentModel.DataAnnotations; Line 88: Line 89: #line default Line 90: #line hidden Line 91: Line 92: #line 390 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 93: using System.Text; Line 94: Line 95: #line default Line 96: #line hidden Line 97: Line 98: #line 397 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 99: using System.Web.Profile; Line 100: Line 101: #line default Line 102: #line hidden Line 103: Line 104: #line 393 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 105: using System.Web.Caching; Line 106: Line 107: #line default Line 108: #line hidden Line 109: Line 110: #line 384 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 111: using System.Collections; Line 112: Line 113: #line default Line 114: #line hidden Line 115: Line 116: #line 400 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 117: using System.Web.UI.WebControls.WebParts; Line 118: Line 119: #line default Line 120: #line hidden Line 121: Line 122: #line 386 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 123: using System.Collections.Specialized; Line 124: Line 125: #line default Line 126: #line hidden Line 127: Line 128: #line 395 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 129: using System.Web.SessionState; Line 130: Line 131: #line default Line 132: #line hidden Line 133: Line 134: #line 394 "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config" Line 135: using System.Web.DynamicData; Line 136: Line 137: #line default Line 138: #line hidden Line 139: Line 140: Line 141: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()] Line 142: public class global_asax : global::System.Web.HttpApplication { Line 143: Line 144: private static bool @__initialized; Line 145: Line 146: Line 147: #line 3 "C:\Users\Administrador\Documents\Visual Studio 2010\Projects\Esc_Adv_Iron_2012\Esc_Adv_Iron_2012\global.asax" Line 148: Line 149: Line 150: public override string GetVaryByCustomString(HttpContext Context, string Custom) Line 151: { Line 152: if (Custom == "Culture") Line 153: { Line 154: // *** Figure out the supported language from the Line 155: // *** UserLanguage[] Line 156: string Lang = SetupCurrentCulture.GetSupportedLocale("pt, en", "pt-BR"); Line 157: return Lang; Line 158: } Line 159: return base.GetVaryByCustomString(Context, Custom); Line 160: } Line 161: Line 162: public void Profile_OnMigrateAnonymous(object sender, ProfileMigrateEventArgs args) Line 163: { Line 164: ProfileCommon anonymousProfile = Profile.GetProfile(args.AnonymousID); Line 165: Line 166: Profile.Cultura = anonymousProfile.Cultura; Line 167: Line 168: // Delete the anonymous profile. If the anonymous ID is not Line 169: // needed in the rest of the site, remove the anonymous cookie. Line 170: SettingsPropertyValueCollection SPC = anonymousProfile.PropertyValues; Line 171: //Only migrate if coming from the AddNew User stuff. And the SPC shows a correct count. Line 172: if (SPC.Count > 0 && args.Context.Request.AppRelativeCurrentExecutionFilePath == "~/WebResource.axd") Line 173: { Line 174: foreach (SettingsPropertyValue SP in SPC) Line 175: { Line 176: Profile.SetPropertyValue(SP.Name, SP.PropertyValue); Line 177: } Line 178: ProfileManager.DeleteProfile(args.AnonymousID); Line 179: AnonymousIdentificationModule.ClearAnonymousIdentifier(); Line 180: // Delete the user row that was created for the anonymous user. Line 181: Membership.DeleteUser(args.AnonymousID, true); Line 182: } Line 183: } Line 184: Line 185: Line 186: void Application_BeginRequest(object sender, EventArgs e) Line 187: { Line 188: /*HttpApplication app = sender as HttpApplication; Line 189: if (app.Request.Path.IndexOf("FriendlyPage.html") > 0) Line 190: { Line 191: app.Context.RewritePath("/UnfriendlyPage.aspx?SomeQuery=12345"); Line 192: } Line 193: */ Line 194: Line 195: } Line 196: Line 197: Line 198: void Application_Start(object sender, EventArgs e) Line 199: { Line 200: //routes.Ignore("{resource}.axd/{*pathInfo}"); Line 201: Line 202: //Routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); Line 203: RouteTable.Routes.MapPageRoute Line 204: ("StartPage", "", "~/Default.aspx"); Line 205: RouteTable.Routes.MapPageRoute Line 206: ("SiteCliente", "sites/{SiteName}", "~/intranet/site/Default.aspx"); Line 207: } Line 208: Line 209: Line 210: Line 211: Line 212: #line default Line 213: #line hidden Line 214: Line 215: Line 216: [System.Diagnostics.DebuggerNonUserCodeAttribute()] Line 217: public global_asax() { Line 218: if ((global::ASP.global_asax.@__initialized == false)) { Line 219: global::ASP.global_asax.@__initialized = true; Line 220: } Line 221: } Line 222: Line 223: protected ProfileCommon Profile { Line 224: get { Line 225: return ((ProfileCommon)(this.Context.Profile)); Line 226: } Line 227: } Line 228: } Line 229: } Line 230:
Podem me ajudar?? Obrigado.
- Editado anderson noleto terça-feira, 8 de maio de 2012 14:26
Respostas
-
Olá.
Procure dar um clean solution (clique direito na solution). Compile e rode novamente.
Deu erro?
Procure observar se a declaração:
protected ProfileCommon Profile { get { return ((ProfileCommon)(this.Context.Profile));
Não está sendo feita e mais de uma página.
Boa sorte!
É possível sim! Ponha isso na sua cabeça. É possível. "Steve Jobs"
- Sugerido como Resposta Olavo Oliveira NetoModerator quarta-feira, 9 de maio de 2012 12:17
- Marcado como Resposta anderson noleto quarta-feira, 9 de maio de 2012 13:35