Questions tagged [precompiled-views]

11 questions
2
votes
0 answers

Entity Framework Code First: pre generated views work, but startup is still slow

I added pregenerated views to my EF project. It actually seems to be working. The init method gets called, the view is obviously loaded. FYI, this method is called: DbMappingView GetView(EntitySetBase extent). However, nothing changed. The startup…
1
vote
0 answers

Pre-compiled ASP.NET MVC views get slow after a while in Azure

I have been using pre-compiled views in my product publish / deploy process. We have experienced a much faster start and overall application performance. BUT, after a while (hours), we start to get slow pages again. The immediate solution for this…
1
vote
0 answers

.NET Core MvcRazorCompileOnPublish .Views.dll v .PrecompiledViews.dll

I have created a blank .NET Core 2.2 project and immediately published it. This is my published content: If I now add the following into my .csproj: true Then publish again, I get the following…
Murphybro2
  • 2,207
  • 1
  • 22
  • 36
1
vote
0 answers

MVC plug ins with Pre compiled views

I recently implemented a plug in framework using MEF to include exteranl MVC projects and all is working fine. However, trying to precompile the site does not allow the plug in views to be precomipled which makes sense given that they are not…
user1876229
  • 154
  • 1
  • 8
1
vote
1 answer

MVC RazorGenerator - "Type (...) already defines a member called 'Execute' with the same parameter types"

I've been working on a big MVC Application and now i need to improve application's startup performance (which is bad +1min for the first load). I installed RazorGenerator nugget and the extension too, but when i compile a lot of errors appear. May…
Leandro Soares
  • 2,902
  • 2
  • 27
  • 39
1
vote
1 answer

Issue with EF 4.1 Pre-Compiled View Generation

I have a Entity Framework 4.1 DbContext based model. I am using a PocoModelGenerator.tt file to generate my entities. I found that querying a 20,000 row SQL table takes around 5 seconds from my code locally. It takes less than a second when done…
Yasir
  • 1,595
  • 5
  • 23
  • 42
1
vote
1 answer

Which assembly should I place the compiled views for entity framework code first when context is in a separate project from the domain classes

In desperate need of help. I'm using entity framework code first and trying to follow Julie Lerman's suggestion about breaking out the context from the domain classes and I'm unable to get entity framework to recognize the compiled views. I've…
Blake
  • 309
  • 3
  • 10
0
votes
1 answer

Why is my deployed application still reading the cshtml view instead of the precompiled view

I am precompiling my razor views in my VS publish profile by setting the following properties: Precompile options: deselect "Allow precompile site to be updatable", deselect "Emit debug information" Merge options: select "Merge all outputs to a…
0
votes
0 answers

MapRequestHandler issue when deploying to IIS with precompiled views

I'm having issue deploying ASP.NET MVC app with precompiled views. Until now I was not precompiling views and app has worked for years flawlessly. If I precompile them, the site works on first start just as you'd expect. If I however restart it…
0
votes
1 answer

EF code first: Generate pre-compiled view (VS 13 express)

I have an application using EF code first. Unfortunately the first query takes an awful lot of time to load. When I goggled, I realized this is a quite common problem. Obviously EF needs to init/generate some views in order to work properly. To…
zacko
  • 339
  • 1
  • 7
  • 20
0
votes
1 answer

Will EF precompiled views work with Oracle and Devart?

We found an interesting article about improving performance of Entity Framework by using "precompiled views": http://neverindoubtnet.blogspot.ch/2012/03/squash-entity-framework-startup-time.html We have tried this - we use the EF Power Tools…