asp.net,c#在站点服务器时的网站编译错误。 [英] asp.net,c# web site compilation error when hosted in server.

查看:59
本文介绍了asp.net,c#在站点服务器时的网站编译错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从vs10和2.0 framework.host服务器选择作为网站的项目是3.5支持。但它显示错误。这是-----



a project selected as a website from vs10 and in 2.0 framework.host server is 3.5 supported.but it showing an error.that is-----

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'userhome' exists in both 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\assembly\dl3\185e9574\0370ee63_3ce2ce01\App_Web_p4g0wd0t.DLL' and 'c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\assembly\dl3\16b0f4d8\0370ee63_3ce2ce01\App_Web_gjcxxm1h.DLL'

Source Error:


Line 110:
Line 111:    [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
Line 112:    public class userhome_aspx : global::userhome, System.Web.SessionState.IRequiresSessionState, System.Web.IHttpHandler {
Line 113:
Line 114:        private static bool @__initialized;

Source File: c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\d947a4fb\f1022238\App_Web_userhome.aspx.cdcab7d2.4zmvg_rm.0.cs    Line: 112


Show Detailed Compiler Output:

Show Complete Compilation Source:


Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456









--- --------------------

但是登录页面正在运行并且还从sql server获取数据。但是当页面userhome.aspx是tring重定向显示错误。



i已经托管了另一个用于测试pourpose的项目,它已成功运行...



请帮帮我....



thnx提前........





-----------------------
but the login page is working and also fetching data from sql server.but when the page userhome.aspx is tring to redirect it showing the error.

i had hosted an another project for testing pourpose and it was runnig successfully...

Please help me out....

thnx in advance........

推荐答案

你好朋友,



你可以尝试一件事,你需要从你的托管系统中清除你的Temporary ASP.NET Files文件夹,所以它可能会解决您的问题。



申请池





.net 2.0则

C:\ Windows \ microsoft.NET \ Framework \v2.0.50727 \Temporary ASP.NET Files

for 64bit

C:\ Windows \ microsicoft.NET \ Framework64 \v2.0.50727 \Temporary ASP.NET Files







.net 4.0则



C:\ Windows \ microsoft.NET \ Framework \v4.0.30319 \Temporary ASP.NET Files

for 64位

C:\ Windows \ microsoft.NET \ Framework64 \v4.0.30319 \Temporary ASP.NET Files



或根据您在应用程序池中使用的.net框架版本,您需要清除Temporary ASP.NET Files文件夹。



只需删除所有文件夹,包括子文件夹和文件。或者如果你不能这样做,请停止你的iis服务一段时间,然后尝试删除这些文件,然后再次启动你的iis。



in您的情况下您的应用程序是使用应用程序池2.0托管的,因此您需要清除2.0 Temporary ASP.NET Files文件夹并尝试检查您的应用程序。
Hello friend,

can you try one thing, you need to clear your "Temporary ASP.NET Files" folder from your hosted system, so it might resolve your issue.

Application pool


.net 2.0 then
C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
for 64bit
"C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files"

or

.net 4.0 then

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files
for 64bit
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files

or based on your .net framework version you are using in your application pool you need to clear your Temporary ASP.NET Files folder.

just delete all the folder including sub folder and files from it. or if you are not able to do so, the please stop your iis service for some time and then try to delete this files and then start your iis again.

in your case your application is hosted using application pool 2.0 so you need to clear your 2.0 Temporary ASP.NET Files folder and try to check your app.


这篇关于asp.net,c#在站点服务器时的网站编译错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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