문제

I have a simple ASP.NET MVC 4 Project. I want to load assembly from 'lib' folder in root of my project instead of 'bin' folder.

I add <probing privatePath="lib" /> to my web.config. I have custom.dll in 'lib' folder. Now i can write using custom.namespace in my classes and it works fine but i cannot add this namespace in razor view pages.

In other words @using custom.namespace in my razor view does not work. If i place above dll in 'bin' folder (not 'lib' folder), I can use it in view pages.

How can i load assembly in razor view page when i use probing in web.config?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top