简体   繁体   English

发布ASP.net网站时无法加载类型错误

[英]Could not load type error while publishing ASP.net Site

I recently encountered an error for a certain web page that says "Could not load type ". 我最近在某个网页上遇到一个错误,提示“无法加载类型”。 I was solving this for the past weeks or so to no avail. 我在过去几周内一直在解决此问题,但无济于事。 It was working properly on my local PC but when I try to move it to the server via Tortoise SVN, it gives out that error. 它在我的本地PC上正常运行,但是当我尝试通过Tortoise SVN将其移动到服务器时,它发出了该错误。 Any help would be appreciated guys. 任何帮助将不胜感激的家伙。 Thanks in advance. 提前致谢。

Check that the project output path (project properties / Build) is set to bin and not bin\\Release or bin\\Debug 检查项目输出路径(项目属性/ Build)是否设置为bin而不是bin \\ Releasebin \\ Debug

For some reason IIS (VS development Server or Local IIS) always accesses the libraries from the bin directory (and won't look up for subdirectories) 出于某种原因,IIS(VS开发服务器或本地IIS)总是从bin目录访问库(并且不会查找子目录)

Hope this helps.. 希望这可以帮助..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM