当我在服务器上部署我的网站时出现一些错误

问题描述:

when i was publish my website and checking in IIS localy its working fine,everthing is working properly locally but when i was deploying my website on server getting some error i dont know what exactly the problem is going on....

the error is like that.................

Could not load the assembly 'App_Web_pkjyx2oe' Make sure that it is compiled before accessing the page.


Line 1:  <%@ page language="C#" autoeventwireup="true" inherits="Default2, App_Web_pkjyx2oe" %>
Line 2:
Line 3:  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



i know something i m missing while publishing my website on server but what exactly is that i didn't get

anybudy have knowledge about this issue so please guide me.

Thanks is Advance

您可以通过两种方式部署asp.net网站.
1.在编译模式下
2.在未编译模式下.

发布网站时,如果以未编译的方式进行,则需要部署所有代码,包括cs/vb文件.

另一方面,如果您以编译模式进行部署,则您的cs文件将被编译为一个或多个dll.

如果您使用Visual Studio以默认配置编译您的应用程序,则每个背后的代码可能会为其生成一个dll.

检查bin文件夹中是否有名为"App_Web_pkjyx2oe"的dll.

谢谢
You can deploy asp.net sites in 2 ways.
1. In compiled mode
2. In un-compiled mode.

When you publish your website, if you do it in un-compiled fashion you will need to deploy all of your codes including cs/vb files.

On the other hand if you deploy in compiled mode your cs files are compiled to one or more dlls.

If you use visual studio to compile your app with default configuration, each codebehind may generate one dll for it.

Check if you have the dll named "App_Web_pkjyx2oe" in your bin folder.

Thanks