I have a MVC2 website that uses views from other assemblies. To do this, I marked the view as "Embedded Resource."
I managed to see the view, but now when I change the view, I no longer see the changes.
The way I call the view as an inline resource looks like this:
return View("~/Extension/Extensions.MyExtension.dll/" +
"Extensions.MyExtension.Views.MyItem.Details.ascx", entity);
in this case, the βExtensionβ part indicates that the view should be loaded as an embedded resource. The next part indicates the assemblies that contain the view. The last part is the location of the view (including the namespace).
How can it be that data from an earlier view is still displayed after changing the entire contents of the view. Or even cancel the view as an embedded resource.
To make sure I have the latest build of Extensions.myExtension.dll, I copied the assembly to the bin folder on the website. I checked the assembly with a reflector to make sure that the assembly is in the correct view. This is the correct view, but I still see the old view.
Changing the name of the view resolves the problem temporarily, but I'm not the right solution for me. When I change the name of the view to what it was, the old view was shown.
source
share