我的Asp.Net Web应用程序中的配置错误 [英] Configuration Error In My Asp.Net Web Application

查看:56
本文介绍了我的Asp.Net Web应用程序中的配置错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用3个项目制作了一个Web应用程序,

1.BAL
2.DAL
3.Rukmini
BAL是类库项目,包含应用程序中所需的类文件.

DAL也是一个类库项目,其中包含应用程序所需的类文件.

Rukmini是包含实际aspx文件(例如login.aspx等)的文件夹.
我已将上述Web应用程序上传到主服务器上(而不是任何本地IIS上),而我的web.config仅位于Rukmini文件夹中.

当我在线运行应用程序时,出现以下错误----

使用超出应用程序级别注册为allowDefinition ="MachineToApplication"的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的."

我也尝试了所有身份验证模式="None"和"Windows"和"Forms",但是它给出了相同的错误消息,指向web.config文件中的身份验证模式="None"行.

请帮忙..

您可以在invoice.rukminiiron.com/Rukmini/Login.aspx

I have made a web application using 3 projects as

1.BAL
2.DAL
3.Rukmini
BAL is class library project containing class files needed in the application.

DAL is also a class library project containing class files needed in the application.

Rukmini Is the folder which contains actual aspx files such as login.aspx,etc

I have uploaded my above web application on main server(not on any local e.g IIS) and my web.config is only in Rukmini folder.

when i run my application online it gives following error----

"It is an error to use a section registered as allowDefinition=''MachineToApplication'' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS."

I have also tried authentication mode="None" and "Windows" and "Forms" all, but it gives same error message pointing at authentication mode="None" line in web.config file.

Please help..

You can view my error message at invoice.rukminiiron.com/Rukmini/Login.aspx

推荐答案

上查看我的错误消息,然后将文件夹和必要的DLL一起上传了,转换成网站?正确托管在IIS上,以便可以访问它?
对于托管Web应用程序: MSDN:演练:发布网站 [ ^ ]

IIS特定:
1.在IIS7中:在IIS 7.0上部署ASP.NET网站 [在IIS上部署网站 [
After you uploaded the folder along with necessary DLL''s, did you converted it into a website? Hosted properly on IIS such that it can be accessed?
For hosting a web application: MSDN: Walkthrough: Publishing a Web Site[^]

IIS Specific:
1. In IIS7: Deploying ASP.NET Websites on IIS 7.0 [^]
2. In IIS6: Deployment of a Website on IIS[^]



Further, make sure you don''t have multiple config files in your root folder. Only one config file should exist.


检查您的应用程序,如果它在不同的继承层次上具有多个web.config 文件,那么也会发生此错误.
删除其他web.config,然后运行.
Check your application ,if it have more than one web.config file at different heirarch levels,then this error occurs also.
Remove other web.config and then run.




请检查
在IIS 7.0上部署ASP.NET网站 [^ ]链接.并为您的网站执行步骤4.

上面的步骤应该可以解决您的问题

谢谢
-Amit.
Hi,

Please check Deploying ASP.NET Websites on IIS 7.0 [^] link. and do the Step 4 for your website.

above step should resolve your problem

Thanks
-Amit.


这篇关于我的Asp.Net Web应用程序中的配置错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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