-
Notifications
You must be signed in to change notification settings - Fork 2.1k
MVC/Razor issue after updating to beta6 with multiple in-memory assembly on local iis server and azure but not in debug #2959
Comments
Can you provide a repro project? |
Sure, I'll give it a try. |
The repo is very simple, add Dapper 1.41.0-beta5 to your dependency list and you will get this error. It's of course related to that version of Dapper being built on older packages in some way. But I actually had a look at the dependencies in Dapper before I sent this Issue and couldn't think of any problems related to that from the dependency list in Dappers nuget package and it didn't give me any warnings from my knowledge. But it took me a lot of time to understand what the problem was from the provided error message. I could get nightmares from that type of "help" ;-) So tho sum things up, I could of course build things only on Microsoft signed code and be all happy whit that, but this will still give me problems when I forget to fix my own code. And I also love all the code the community is sharing so I really want a better fault for problems like this one! :-) And I will file the issue with Dapper version support update where it belongs. :-) |
And one more question, why did it run on my local development machine but not on my lab 2012 IIS setup or on Azure? |
Can you make the sample application? What kind of application does it need to be? I assume you need razor views? Does it repro with a single view and that dependency and nothing else? |
Here you go, not much left more than a controller a view and a startup and i still get the same issue :) |
One thing is strange, I din´t get a 500 error on azure with this slimmed down solution, but I get it in my local 2012 IIS setup.. I will try to do some more thinking about this but it will take some time because I will be away traveling for some time, I will get back to you. |
@pranavkm Please take a look. |
I will try to create a better repo during next week. |
I have done some investigation and it is related to dependency "System.Runtime" : "4.0.20-beta-22816" and I have also tested "System.Runtime" : "4.0.20-beta-23109" with the same result. I have updated my repo app with this change https://github.com/Rinsen/DnxVersionIssues One thing that I do not understand at all is why there is a difference when I run this on IIS and Windows 2012 r2 compared to Azure and my local Windows 10/VS2015 dev machine where there is no problems at all. |
@Rinsen, I was able to repro the issue simply by building the application ( I've responded to your comment on DapperLib/Dapper#241 to suggest a work around to the issue. I've also sent a PR to fix the diagnostics in DNX (aspnet/dnx#2553) so the error is a bit more cogent. Closing this issue since there's not much Mvc can do here to resolve the issue. |
Thanks! I got the problem by simply change target platform on my local machine... So now I understand a bit more about that, and the fix in diagnostics in DNX will help a lot with this kind of problems! :) |
DNX version is 1.0.0-beta7 "dependencies": { I am getting this issue. |
If you run the beta8 runtime you should get the names of the duplicated assembly. I have had that issue now with the latest beta8 runtime also but now I got the correct error message as it should be after the change @pranavkm did in diagnostics. |
Hi!
I have been trying to understand why I get an error when I deploy my app to run on IIS, but not in debug in Visual Studio. I get the same result on all pages and some of them are nothing fancy at all, so one idea I have is that it is in some way related to _Layout.cshtml och some other file that is always running but is running in some other way on IIS than in Visual Studio.
Any idea on how to figure out what is wrong?
This is my stacktrace
The text was updated successfully, but these errors were encountered: