Problemas com aplicação web

1,057 views
Skip to first unread message

Diogo A. Miranda

unread,
Apr 9, 2010, 4:54:31 PM4/9/10
to DotNet Brasil
Olá Pessoal,

Alguém já passou pelo erro abaixo? Como vocês resolveram?

Erro de Servidor no Aplicativo '/'.
--------------------------------------------------------------------------------

Não é possível converter um objeto do tipo
'System.Web.Compilation.BuildResultCompiledAssembly' no tipo
'System.Web.Compilation.BuildResultCompiledGlobalAsaxType'.
Descrição: Ocorreu uma exceção não tratada durante a execução da atual
solicitação da Web. Examine o rastreamento de pilha para obter mais
informações sobre o erro e onde foi originado no código.

Detalhes da Exceção: System.InvalidCastException: Não é possível
converter um objeto do tipo
'System.Web.Compilation.BuildResultCompiledAssembly' no tipo
'System.Web.Compilation.BuildResultCompiledGlobalAsaxType'.

Erro de Origem:

Exceção não tratada foi gerada durante a execução da atual solicitação
da Web. As informações relacionadas à origem e ao local da exceção
podem ser identificadas usando-se o rastreamento de pilha de exceção
abaixo.

Rastreamento de Pilha:


[InvalidCastException: Não é possível converter um objeto do tipo
'System.Web.Compilation.BuildResultCompiledAssembly' no tipo
'System.Web.Compilation.BuildResultCompiledGlobalAsaxType'.]

System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean
isPrecompiledApp) +303
System.Web.Compilation.BuildManager.CompileGlobalAsax() +52
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
+337

[HttpException (0x80004005): Não é possível converter um objeto do
tipo 'System.Web.Compilation.BuildResultCompiledAssembly' no tipo
'System.Web.Compilation.BuildResultCompiledGlobalAsaxType'.]

System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()
+58
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
+512
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager
appManager, IApplicationHost appHost, IConfigMapPathFactory
configMapPathFactory, HostingEnvironmentParameters hostingParameters)
+729

[HttpException (0x80004005): Não é possível converter um objeto do
tipo 'System.Web.Compilation.BuildResultCompiledAssembly' no tipo
'System.Web.Compilation.BuildResultCompiledGlobalAsaxType'.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context)
+8890735
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context)
+85

System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest
wr, HttpContext context) +333


--------------------------------------------------------------------------------
Informações sobre a Versão: Microsoft .NET Framework Versão:
2.0.50727.3603; Versão do ASP.NET:2.0.50727.3601

Juan Pedro A. Lopes

unread,
Apr 9, 2010, 4:57:59 PM4/9/10
to dotn...@googlegroups.com
http://yurykorolev.blogspot.com/2007/10/localization-errors-in-aspnet.html
The reason was in following line in AssemblyInfo.cs:
[assembly: AssemblyCulture("ru")]

When we removed that line all become ok.

Hope this post will help someone.
 
2010/4/9 Diogo A. Miranda <dms...@gmail.com>
--
==============================
Comunidade de desenvolvedores Dot Net no Brasil
".Net Br" no Google Groups: http://groups.google.com.br/group/dotnet_br/
E-mail
do Grupo: dotn...@googlegroups.com
"Your Potential. Our Passion."

==============================
Comunidade de desenvolvedores PHP
"LISTA PHP" no Google Groups: http://groups.google.com.br/group/listaphp
E-mail
do Grupo: list...@googlegroups.com

To unsubscribe, reply using "remove me" as the subject.

Daniel Freire

unread,
Apr 9, 2010, 6:05:34 PM4/9/10
to dotn...@googlegroups.com
rsrsrs, do jeitinho que veio do google, rsrsrs

2010/4/9 Juan Pedro A. Lopes <zero...@gmail.com>:

--
Daniel C. Freire
Analista Desenvolvedor
MCP, MCTS - Web Applications 2.0
(31) 8467-2331

Diogo Miranda

unread,
Apr 9, 2010, 6:07:33 PM4/9/10
to dotn...@googlegroups.com
É galera...
valeu mesmo.. retirei do Assembly culture e funcionou que nem uma beleza...
Juan, grande abraço!
--
Diogo A. Miranda
Analista e Desenvolvedor .NET
GIS Solutions
(11) 7617-5503
Reply all
Reply to author
Forward
0 new messages