当我在服务器上部署我的网站时出现一些错误 [英] when i deploy my website on server getting some error

查看:60
本文介绍了当我在服务器上部署我的网站时出现一些错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


这篇关于当我在服务器上部署我的网站时出现一些错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆