将 ASP.NET MVC 2 与 Sharepoint 发布结合使用
我需要在 sharepoint 中包含 asp mvc 项目,找到了本指南 http://aspalliance.com/1944_Using_ASPNET_MVC_2_with_Sharepoint_Publishing.all但是当我尝试继续 http://samplemvc 时出现错误 - 无法加载文件或程序集“SampleMVC”。 MVC 和 Sharepoint 在同一个应用程序池中。也许有人知道如何解决这个问题或者知道另一种一起使用它的方法。 我知道 SharepointMvc,但他不适合。 我使用 Windows 7、Sharepoint 2010、iis 7.5
I need include asp mvc project in sharepoint, found this guide http://aspalliance.com/1944_Using_ASPNET_MVC_2_with_Sharepoint_Publishing.all but when i try go on http://samplemvc get error - Unable to load file or assembly "SampleMVC". MVC and Sharepoint in same application pool. Maybe somebody know how solved this problem or know another way to use it together.
I know about SharepointMvc, but he not suitable.
I use windows 7, sharepoint 2010, iis 7.5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您收到该错误时,通常意味着它正在寻找 SampleMVC.dll,但在 GAC 或 IIS 站点上的 bin 目录中都找不到它。您部署了 SampleMVC.dll 吗?
从您提供的链接中,SampleMVC.dll 是包含 CustomHttpApplication 类定义的程序集。
When you get that error, it typically means that it's looking for SampleMVC.dll, but it can't find it in either the GAC or the bin directory on the IIS site. Did you deploy SampleMVC.dll?
From the link you provided, SampleMVC.dll is the assembly that contains your definition for the CustomHttpApplication class.