Add Reference Error Fx. 4.0
Hi to all in a machine with Windows Server 2008 R2 with VS 2010 i'm working on a web application that have 7 external assembly referenced. In development and debug all working good. When deploy the web application on IIS 7.0, this web application don't see any reference. I have try to compile and deploy on x86, x64, Fx.3.5 and Fx. 4.0 but i have always the next error: Compiler Error Message: CS0246: The type or namespace name 'NBMI' could not be found (are you missing a using directive or an assembly reference?) NBMI is the same namespace name. Nell'event viewer appeare the next warning: Log Name: Application Source: ASP.NET 2.0.50727.0 Date: 6/29/2011 3:18:53 PM Event ID: 1310 Task Category: Web Event Level: Warning Keywords: Classic User: N/A Computer: MILBIZTALK01.corp.tamoild1.local Description: Event code: 3006 Event message: A parser error has occurred. Event time: 6/29/2011 3:18:53 PM Event time (UTC): 6/29/2011 1:18:53 PM Event ID: bf12155e489046ddaca44149507dabb4 Event sequence: 37 Event occurrence: 2 Event detail code: 0 Application information: Application domain: /LM/W3SVC/1/ROOT/BizWeb-1-129538261361719973 Trust level: Full Application Virtual Path: /BizWeb Application Path: D:\Tambiz\Dev\BizWeb\ Machine name: MILBIZTALK01 Process information: Process ID: 4876 Process name: w3wp.exe Account name: IIS APPPOOL\Default Exception information: Exception type: HttpParseException Exception message: d:\Tambiz\Dev\BizWeb\modules\SingleLogicError.ascx.cs(24): error CS0246: The type or namespace name 'NBMI' could not be found (are you missing a using directive or an assembly reference?) Request information: Request URL: http://localhost/BizWeb/viewsingleLogicError.aspx?Cod=208&Element= Request path: /BizWeb/viewsingleLogicError.aspx User host address: ::1 User: CORP\bizaxapta Is authenticated: True Authentication Type: Negotiate Thread account name: CORP\bizaxapta Thread information: Thread ID: 7 Thread account name: CORP\bizaxapta Is impersonating: False Stack trace: at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Custom event details: Event Xml: <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="ASP.NET 2.0.50727.0" /> <EventID Qualifiers="32768">1310</EventID> <Level>3</Level> <Task>3</Task> <Keywords>0x80000000000000</Keywords> <TimeCreated SystemTime="2011-06-29T13:18:53.000000000Z" /> <EventRecordID>22516</EventRecordID> <Channel>Application</Channel> <Computer>MILBIZTALK01.corp.tamoild1.local</Computer> <Security /> </System> <EventData> <Data>3006</Data> <Data>A parser error has occurred.</Data> <Data>6/29/2011 3:18:53 PM</Data> <Data>6/29/2011 1:18:53 PM</Data> <Data>bf12155e489046ddaca44149507dabb4</Data> <Data>37</Data> <Data>2</Data> <Data>0</Data> <Data>/LM/W3SVC/1/ROOT/BizWeb-1-129538261361719973</Data> <Data>Full</Data> <Data>/BizWeb</Data> <Data>D:\Tambiz\Dev\BizWeb\</Data> <Data>MILBIZTALK01</Data> <Data> </Data> <Data>4876</Data> <Data>w3wp.exe</Data> <Data>IIS APPPOOL\Default</Data> <Data>HttpParseException</Data> <Data>d:\Tambiz\Dev\BizWeb\modules\SingleLogicError.ascx.cs(24): error CS0246: The type or namespace name 'NBMI' could not be found (are you missing a using directive or an assembly reference?)</Data> <Data>http://localhost/BizWeb/viewsingleLogicError.aspx?Cod=208&amp;Element=</Data> <Data>/BizWeb/viewsingleLogicError.aspx</Data> <Data>::1</Data> <Data>CORP\bizaxapta</Data> <Data>True</Data> <Data>Negotiate</Data> <Data>CORP\bizaxapta</Data> <Data>7</Data> <Data>CORP\bizaxapta</Data> <Data>False</Data> <Data> at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath) at System.Web.UI.TemplateParser.ParseInternal() at System.Web.UI.TemplateParser.Parse() at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) </Data> </EventData> </Event> How can i solve this bad situation? Thanks in advance EZ BizTalk Specialist
June 29th, 2011 9:42am

Hi, According to the problem description, this issue is related to IIS 7. For the IIS related issue, the best resource for you is IIS forum. It is recommended to submit a new question to IIS forum for further assistance. In that forum, the community users are familiar with your issue. IIS 7 http://forums.iis.net/default.aspx?GroupID=41 Thanks for your understanding! Regards, Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com . Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 29th, 2011 11:00pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics