I have installed TwitterBootstrapMVC from NuGet in an ASP.NET MVC 4 project. I also obtained and added a trail license. The solution works with TwitterBootstrapMVC2. However, when I attempt to use TwitterBootstrapMVC3 the system is throwing this error:
Server Error in '/BootstrapTest' Application.
Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Source Error:
Line 9:
Line 10:
Line 11: @Html.Bootstrap().FormGroup().DisplayText("this is a test");
Line 12:
Line 13:
The ASP.NET MVC 4 version is using System.Xml.Linq, version 4. Can you provide assistance.
This issue is isolated to a single server. Last year I installed ASP.NET
MVC 4 on one of our development servers and we have been experiencing DLL
issues ever since. Not sure what the issue isŠthis may be related to nuget.
Anyway thanks for your response!
~Gary
From: "Dmitry A. Efimenko" notifications@github.com
Reply-To: DmitryEfimenko/TwitterBootstrapMvc
<reply+i-22353590-7f22a7cdb546eb56edfcd0687ce25711cfc92dc0-49449@reply.githu
b.com>
Date: Tuesday, November 26, 2013 at 3:57 AM
To: DmitryEfimenko/TwitterBootstrapMvc
TwitterBootstrapMvc@noreply.github.com
Cc: Gary Stewart garystewart247@hotmail.com
Subject: Re: [TwitterBootstrapMvc] Server Error in '/BootstrapTest'
Application. (#155)
I have installed TwitterBootstrapMVC from NuGet in an ASP.NET MVC 4 project. I also obtained and added a trail license. The solution works with TwitterBootstrapMVC2. However, when I attempt to use TwitterBootstrapMVC3 the system is throwing this error:
Server Error in '/BootstrapTest' Application. Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
Source Error:
Line 9:
Line 10:
The ASP.NET MVC 4 version is using System.Xml.Linq, version 4. Can you provide assistance.
I just tested this line of code. Works fine for me. Could you show stack trace?
Here is the stack trace.
Source Error:
Line 12:
Line 14: @Html.Bootstrap().FormGroup().TextBox("name"); Line 15: Line 16:
Source File: c:\src\BootstrapTest\BootstrapTest\Views\Home\Index.cshtml Line: 14
Stack Trace:
[Exception: Could not load file or assembly 'System.Xml.Linq, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, Retargetable=Yes' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)] TwitterBootstrap3.BootstrapHtmlExtension.Bootstrap(HtmlHelperb 22(IAsyncResult asyncResult) +956764
System.Web.Mvc.<>cDisplayClass1d.b 18(IAsyncResult asyncResult) +28
System.Web.Mvc.Async.<>cDisplayClass4.b 3(IAsyncResult ar) +20
System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +67
System.Web.Mvc.Async.<>cDisplayClass4.b 3(IAsyncResult ar) +20
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +53
System.Web.Mvc.<>cDisplayClass8.b 3(IAsyncResult asyncResult) +42
System.Web.Mvc.Async.<>cDisplayClass4.b 3(IAsyncResult ar) +20
System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +53
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +469
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375
1 helper) +367 ASP._Page_Views_Home_Index_cshtml.Execute() in c:\src\BootstrapTest\BootstrapTest\Views\Home\Index.cshtml:14 System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +280 System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +126 System.Web.WebPages.StartPage.ExecutePageHierarchy() +143 System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +181 System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +384 System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func
1 continuation) +970692 System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +265 System.Web.Mvc.Async.<>cDisplayClass25.It looks like there is some conflict in dlls. See if this will help FYI, BMVC targets .NET 4.0
were you able to resolve this?
I assume this was resolved.
This issue is isolated to a single server. Last year I installed ASP.NET MVC 4 on one of our development servers and we have been experiencing DLL issues ever since. Not sure what the issue isŠthis may be related to nuget. Anyway thanks for your response!
~Gary
From: "Dmitry A. Efimenko" notifications@github.com Reply-To: DmitryEfimenko/TwitterBootstrapMvc <reply+i-22353590-7f22a7cdb546eb56edfcd0687ce25711cfc92dc0-49449@reply.githu b.com> Date: Tuesday, November 26, 2013 at 3:57 AM To: DmitryEfimenko/TwitterBootstrapMvc TwitterBootstrapMvc@noreply.github.com Cc: Gary Stewart garystewart247@hotmail.com Subject: Re: [TwitterBootstrapMvc] Server Error in '/BootstrapTest' Application. (#155)
were you able to resolve this?
‹ Reply to this email directly or view it on GitHub https://github.com/DmitryEfimenko/TwitterBootstrapMvc/issues/155#issuecomme nt-29276141 .
Hi Gary, I am also experiencing the same problem. Were you able to resolve this? If yes, can you please let me know the solution?
Thank you