Bug 23559 - Cannot open .cshtml files
Summary: Cannot open .cshtml files
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 5.4
Hardware: PC Windows
: --- normal
Target Milestone: 5.7
Assignee: Mikayla Hutchinson [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2014-10-02 15:58 UTC by Andres G. Aragoneses
Modified: 2014-11-26 23:43 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Andres G. Aragoneses 2014-10-02 15:58:06 UTC
I have an ASP.NET project inside a solution that contains some .cshtml files.

When I try to open them, I get the following error:

System.IO.FileNotFoundException: No se puede cargar el archivo o ensamblado 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ni una de sus dependencias. El sistema no puede encontrar el archivo especificado.
Nombre de archivo: 'System.Web.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   en MonoDevelop.AspNet.Razor.RazorCSharpParser.Parse(Boolean storeAst, String fileName, TextReader content, Project project)
   en MonoDevelop.SourceEditor.SourceEditorView.RunFirstTimeFoldUpdate(String text)
   en MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName, Encoding loadEncoding, Boolean reload)
   en MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName)
   en MonoDevelop.Ide.Gui.LoadFileWrapper.Invoke(String fileName)

AVS: El registro del enlace de ensamblado está desactivado.
Para habilitar el registro de errores del enlace de ensamblado, establezca el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) como 1.
Nota: existe una disminución del rendimiento asociada registro de errores del enlace de ensamblado.
Para desactivar esta característica, elimine el valor de Registro [HKLM\Software\Microsoft\Fusion!EnableLog].


Note: ASP.NET is properly installed in this box because I can compile the solution with MSBuild just fine, and I can serve it properly with IIS and render it properly with my browser.
Comment 1 Mikayla Hutchinson [MSFT] 2014-10-03 03:24:41 UTC
Should be fixed in https://github.com/mono/monodevelop/commit/12d610fb3f6dce121df538e36f21d8c2eeb0a6e3
Comment 2 Arpit Jha 2014-11-26 23:43:05 UTC
I have checked this issue and this issue is working fine as shown in screencast: http://www.screencast.com/t/L4IOGO4Y

Hence closing this issue.

XS 5.7.596 + XVS 3.9.28