Quantcast
Channel: RazorGenerator Issue Tracker Rss Feed
Viewing all 525 articles
Browse latest View live

Commented Unassigned: The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs [117]

$
0
0
Hi,

I used Razor Generator for the cshtml files.

My project structure is like:
1. Controllers(Folder) ->LoginController -> LoginPage action
2.ViewModel(folder) -> LoginDetails.cs file

While creating a view for LoginPage action i did LoginDetails model as strongly typed, After that when i did build i got error like ___"Error 3 The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs 33 71 Login"___

I added namespace in the both web.config files as "Login.ViewModels" but still getting the error.

How to resolve this issue.
Comments: Looks like some namespace confusion due to the duplicated 'Login' token in `Login.Views.Login`. Similar to [this one](https://razorgenerator.codeplex.com/discussions/291071), and same suggestions should work.

Commented Unassigned: The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs [117]

$
0
0
Hi,

I used Razor Generator for the cshtml files.

My project structure is like:
1. Controllers(Folder) ->LoginController -> LoginPage action
2.ViewModel(folder) -> LoginDetails.cs file

While creating a view for LoginPage action i did LoginDetails model as strongly typed, After that when i did build i got error like ___"Error 3 The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs 33 71 Login"___

I added namespace in the both web.config files as "Login.ViewModels" but still getting the error.

How to resolve this issue.
Comments: Thanks davidebbo its working fine now. Instead of "Login" i changed controller name as "LoginPage".

Closed Unassigned: The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs [117]

$
0
0
Hi,

I used Razor Generator for the cshtml files.

My project structure is like:
1. Controllers(Folder) ->LoginController -> LoginPage action
2.ViewModel(folder) -> LoginDetails.cs file

While creating a view for LoginPage action i did LoginDetails model as strongly typed, After that when i did build i got error like ___"Error 3 The type or namespace name 'ViewModels' does not exist in the namespace 'Login.Views.Login' (are you missing an assembly reference?) C:\Users\E561158\Desktop\Login\Login\Views\Login\LoginPage.generated.cs 33 71 Login"___

I added namespace in the both web.config files as "Login.ViewModels" but still getting the error.

How to resolve this issue.

Created Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?

Commented Issue: VS2012: "The custom tool 'RazorGenerator' failed. The method or operation is not implemented" [72]

$
0
0
I'm getting the above error when choosing "Run custom tool" on a razor file; when I just save, nothing happens.

In Visual Studio's Error List, I get the following:
"Custom tool error: Could not load file or assembly 'file:///C:\Users\john\AppData\Local\assembly\dl3\MH40ZN5E.14X\44VHO17O.KV9\f801bc8b\bb84bb72_a7abcd01\RazorGenerator.Core.v1.dll' or one of its dependencies. The system cannot find the file specified."

The "bb84bb72_a7abcd01" folder mentioned doesn't exist.

I have verified that the project is running MVC 3 and WebPages 1.
I have uninstalled and reinstalled both the Nuget package and the VS extension.
I have run devenv.exe /log but no error messages in the log file (but I'm attaching it anyway).
It still works fine in VS2010 on the same project.

Any ideas?
Comments: I am also seeing the same issue. My solution has an MVC 4 webapp and a class library. In our case, reversing the solution order fixed the issue, but it still pops up for other applications. In other words, with this structure: |-* webapp solution folder |- * webapp solution file |- * webapp proj folder |-* class lib solution folder |- * class lib solution file |- * class lib proj folder Both solutions contain both projects (and the solution files are identical, except for the projects relative paths). Opening the webapp solution folder DOES NOT WORK (it shows the error message), but opening the class library solution works fine (no error, you can generate code). If needed, I could try and generate a minimal case that can be reproduced. Thanks

Commented Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?
Comments: I'm running VS2012 Update 2 and haven't encountered this as yet. What version of VS are you running? Also do you think you could share a sample app \ cshtml file where it hangs?

Commented Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?
Comments: I've got update 3. Unfortunately I can't recreate the issue in a sample app, the solution it is happening in is quite large, 66 projects. Does RazorGenerator keep any logs?

Created Unassigned: Eventually get OutOfMemoryException when VS is started with extension enabled [119]

$
0
0
Unfortunately, if (and only if) I have the RazorGenerator extension enabled in VS2012, I eventually get a yellow screen of death (see below) when running my app in the Azure SDK 2.0 emulator (using IIS Express).

To avoid getting the OOM condition, I can disable the extension and the precompiled views continue to work fine, but of course I'm not able to edit/recompile any of the views because the tool is disabled!

Anyone else have this issue? David, have you seen this and do you know what could be causing this problem?

I have used VS2013 Ultimate preview and procdump generated managed memory dumps of iisexpress to verify there is no memory leak in my app.

[Aside: I also have the issue described here -- https://razorgenerator.codeplex.com/workitem/72. This is NOT the cause of the OOM condition, but is a little aggravating since the dlls disappear regularly, requiring the workaround in the post each time it happens.]

Detailed exception info follows.....

-----------------------------------

Server Error in '/' Application.

Insufficient memory to continue the execution of the program.

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.OutOfMemoryException: Insufficient memory to continue the execution of the program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Insufficient memory to continue the execution of the program.]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3103

System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +240

Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +347

Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +808

Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +203

System.Web.Compilation.AssemblyBuilder.Compile() +2695

System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +566

System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +565

System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +201

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +177

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +56

RazorGenerator.Mvc.PrecompiledMvcEngine.CreateInstance(String virtualPath) +235

System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +219

System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +201

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) +273

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) +236

RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +782
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380

System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263

System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240

System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288




Commented Unassigned: Eventually get OutOfMemoryException when VS is started with extension enabled [119]

$
0
0
Unfortunately, if (and only if) I have the RazorGenerator extension enabled in VS2012, I eventually get a yellow screen of death (see below) when running my app in the Azure SDK 2.0 emulator (using IIS Express).

To avoid getting the OOM condition, I can disable the extension and the precompiled views continue to work fine, but of course I'm not able to edit/recompile any of the views because the tool is disabled!

Anyone else have this issue? David, have you seen this and do you know what could be causing this problem?

I have used VS2013 Ultimate preview and procdump generated managed memory dumps of iisexpress to verify there is no memory leak in my app.

[Aside: I also have the issue described here -- https://razorgenerator.codeplex.com/workitem/72. This is NOT the cause of the OOM condition, but is a little aggravating since the dlls disappear regularly, requiring the workaround in the post each time it happens.]

Detailed exception info follows.....

-----------------------------------

Server Error in '/' Application.

Insufficient memory to continue the execution of the program.

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.OutOfMemoryException: Insufficient memory to continue the execution of the program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Insufficient memory to continue the execution of the program.]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3103

System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +240

Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +347

Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +808

Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +203

System.Web.Compilation.AssemblyBuilder.Compile() +2695

System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +566

System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +565

System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +201

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +177

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +56

RazorGenerator.Mvc.PrecompiledMvcEngine.CreateInstance(String virtualPath) +235

System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +219

System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +201

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) +273

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) +236

RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +782
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380

System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263

System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240

System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288



Comments: This is strange because the generator runs in the VS process (devenv), while the site runs in the web server process (e.g. w3wp, though there could be others). Can you confirm that? Also, in Task Manager, are any processes taking an abnormal amount of memory? Is the system low on memory?

Commented Unassigned: Eventually get OutOfMemoryException when VS is started with extension enabled [119]

$
0
0
Unfortunately, if (and only if) I have the RazorGenerator extension enabled in VS2012, I eventually get a yellow screen of death (see below) when running my app in the Azure SDK 2.0 emulator (using IIS Express).

To avoid getting the OOM condition, I can disable the extension and the precompiled views continue to work fine, but of course I'm not able to edit/recompile any of the views because the tool is disabled!

Anyone else have this issue? David, have you seen this and do you know what could be causing this problem?

I have used VS2013 Ultimate preview and procdump generated managed memory dumps of iisexpress to verify there is no memory leak in my app.

[Aside: I also have the issue described here -- https://razorgenerator.codeplex.com/workitem/72. This is NOT the cause of the OOM condition, but is a little aggravating since the dlls disappear regularly, requiring the workaround in the post each time it happens.]

Detailed exception info follows.....

-----------------------------------

Server Error in '/' Application.

Insufficient memory to continue the execution of the program.

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.OutOfMemoryException: Insufficient memory to continue the execution of the program.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Insufficient memory to continue the execution of the program.]

System.CodeDom.Compiler.Executor.ExecWaitWithCaptureUnimpersonated(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +3103

System.CodeDom.Compiler.Executor.ExecWaitWithCapture(SafeUserTokenHandle userToken, String cmd, String currentDir, TempFileCollection tempFiles, String& outputName, String& errorName, String trueCmdLine) +240

Microsoft.CSharp.CSharpCodeGenerator.Compile(CompilerParameters options, String compilerDirectory, String compilerExe, String arguments, String& outputFile, Int32& nativeReturnValue, String trueArgs) +347

Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters options, String[] fileNames) +808

Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) +203

System.Web.Compilation.AssemblyBuilder.Compile() +2695

System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) +566

System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +565

System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +201

System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound) +177

System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +56

RazorGenerator.Mvc.PrecompiledMvcEngine.CreateInstance(String virtualPath) +235

System.Web.WebPages.VirtualPathFactoryExtensions.CreateInstance(IVirtualPathFactory factory, String virtualPath) +219

System.Web.WebPages.VirtualPathFactoryManager.CreateInstanceOfType(String virtualPath) +201

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, IVirtualPathFactory virtualPathFactory, String appDomainAppVirtualPath, String fileName, IEnumerable`1 supportedExtensions) +273

System.Web.WebPages.StartPage.GetStartPage(WebPageRenderingBase page, String fileName, IEnumerable`1 supportedExtensions) +236

RazorGenerator.Mvc.PrecompiledMvcView.Render(ViewContext viewContext, TextWriter writer) +782
System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +380

System.Web.Mvc.<>c__DisplayClass1a.<InvokeActionResultWithFilters>b__17() +33

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilter(IResultFilter filter, ResultExecutingContext preContext, Func`1 continuation) +613

System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList`1 filters, ActionResult actionResult) +263

System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +240

System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +28

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +42

System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +15

System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +640

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288



Comments: Yes, that's right. devenv loads the tooling and core dlls of RG, and iisexpress loads my dlls and the Mvc and templating dlls of RG. (WaIISHost and WaWorkerHost also load my dlls.) And yes, if my site is running fine (no OOM yet), I can close devenv and the site continues to run. But no, my system is not low on memory. It usually has at least 700MB of physical RAM free, and I even saw this OOM today with 1.5GB of RAM free. No processes are taking up an abnormal amount of memory, virtual private bytes used by iisexpress and devenv generally stay below the OOM range of 1GB. (In fact, the OOM often happens when both have private bytes under 500MB.) Thinking that the virtual address space might be getting fragmented, I even switched all .NET processes to x64 so fragmentation of the virtual address space could not be a cause. (I assume I'll need to switch my projects back to targeting "Any" rather than x64 before deploying to Azure, isn't that right? I assume I can't count on having x64 on Azure...) Unfortunately, that didn't solve the problem either. The OOM usually occurs after running the RazorGenerator custom tool on a view and rebuilding the solution, although if I'm coding for a while and rebuilding a number of times, I have even seen the OOM immediately after launching the emulator and iisexpress. With all the free RAM and the OOM, it looks like fragmentation (e.g., http://blogs.msdn.com/b/david.wang/archive/2006/02/14/more-on-virtual-memory-memory-fragmentation-and-leaks-and-wow64.aspx), but it seems to be related to the running of the RG extension in devenv. Indeed, with the RG extension running, I have seen nearly 100 threads in the devenv process with start address clr.dll!InstallCustomModule+0x1b2. Even though the threads use very little CPU (the max was 0.48%), the threads are constantly started and stopped. Without the RG extension running, I see just a few threads with that start address, and many few total threads (e.g, about 25 rather than 100) in devenv. I just came across this reference for fragmentation: http://blogs.msdn.com/b/tom/archive/2008/02/18/high-memory-part-5-fragmentation.aspx One of the two scenarios described there may be the cause. I can do further memory dump analysis as described in that blog post, but I'd rather send the results to you privately.

Created Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries

Commented Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: For the lack of a better way of having a better way of sharing this - could you try replacing RazorGenerator.Core with this one - https://www.dropbox.com/s/dorfb0e3tupqgz8/RazorGenerator.Core.dll and see if that works for you?

Commented Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: It worked!! Thank you very much for looking into this and fixing it. I'd love to see the diff of what fixed it if you can merge this back into the project.

Commented Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: The code change is in this branch - https://razorgenerator.codeplex.com/SourceControl/changeset/1c4b41b7ff4d07339aa2937d6cfe546565dbcab6. I need to figure out a better place to put the AssemblyResolve in. As it stands now, we'll keep adding ResolveEventHandlers each time we precompile a file.

Commented Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: Would you happen to know how msbuild + csc.exe work together to resolve assemblies? Is there a way to tie into the same system so that they're always consistent? That is, if it the csproj can compile/build the files then RazorGenerator should be able to do so as well. Alternatively, what's the process that the ASP.NET live compilation uses for assembly resolution? That'd be closer to what RazorGenerator needs. As a last resort, could add an AppDomain static that sees if the resolver has already been added? Many thanks for looking into this and providing a quick fix.

Commented Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: The problem isn't with msbuild \ csc, it's with the way the ConfigurationManager loads assemblies when it sees a config section. Perhaps Assembly.LoadFrom does not check if an Assembly is already loaded into the AppDomain. Regardless, the idea would be to refactor it so that the event handler is only assigned once and that it does not affect the VS tooling (they share the same code path). I can get around to it by today evening.

Commented Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?
Comments: Removing the Razor Generator extension has fixed the problem for the whole team, we are now compiling views at build time rather than on the fly.

Commented Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?
Comments: Glad to hear that. If you do manage to repro it with a smaller app any time it would be great if you could share it. Until then I'll go ahead and mark the bug as closed.

Closed Unassigned: RazorGenerator Hanging VS2012 [118]

$
0
0
I'm experiencing frequent crashes when applying the custom tool to a single view through the properties window. Visual studio is just hanging, I've tried with all other extensions switched off and still experiencing the same issues. Are there any common issues that cause this to happen?
Comments: Reopen it with a sample repro

Closed Issue: Reading config section in MvcConfigTransform does not locate Razor binaries [120]

$
0
0
From http://stackoverflow.com/questions/17863627/msbuild-cannot-find-a-dll-that-has-been-bindingredirectd-via-web-config

It seems that despite loading the System.Web.* binaries into the AppDomain, invoking the WebConfigurationManager complains about not being able to find the binaries
Comments: Fixed in RazorGenerator.MsBuild 2.1.2
Viewing all 525 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>