无法在服务器2012上查看Web应用程序 [英] Can't view Web app on server 2012

查看:80
本文介绍了无法在服务器2012上查看Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的Windows Server 2012.我有iis 8并添加了我需要的角色。我也有.NET 4.5框架。我用c#在VS 2010中编写了Web应用程序。它是一个4.0框架。我一步一步地将web应用程序添加到服务器和iis 8.当我输入网址时出现此错误:



I have a new windows server 2012. I have iis 8 and added the roles that I needed. I also have .NET 4.5 framework in place. I wrote the web app in VS 2010 with c#. It is a 4.0 framework. I went step by step on adding the web app to the server and to iis 8. When I type in the web address I get this error:

Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: 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.

Source Error:


Line 36:     <pages maintainScrollPositionOnPostBack="true"/>
Line 37:     <customErrors mode="Off" defaultRedirect="Oops.aspx"/>
Line 38:     <authentication mode="Forms">
Line 39:       <forms loginUrl="/Login.aspx"/>
Line 40:     </authentication>


Source File: C:\inetpub\wwwroot\fpapp2013\web.config    Line: 38

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18447 





有什么方法可以解决这个问题吗?我还需要什么?



Is there any way for me to fix this? What else do I need?

推荐答案

我可以想到两个问题:

1.您正在使用虚拟目录 - 在这种情况下把它变成一个应用程序

2. IIS中没有启用表单身份验证 - http://technet.microsoft.com/en-us/library/cc771077(v = ws.10).aspx [ ^ ]
I can think of two problems:
1. You are working with Virtual Directory - in that case turn it into an application
2. Form Authentication not enabled in IIS - http://technet.microsoft.com/en-us/library/cc771077(v=ws.10).aspx[^]


Kornfeld Eliyahu Peter帮助我找到了我的问题,当我这样做时,我发现了另一个问题。我在同一个文件夹中有两个相同的Web应用程序副本。删除了一个,另一个工作。现在有一个Crystal Reports的问题,这不是问题。
Kornfeld Eliyahu Peter helped me to find my issue and I found another issue when I did that. I had two copies of the same web app in the same folder. Removed one and the other worked. Now have a issue with Crystal Reports which is not a problem.


这篇关于无法在服务器2012上查看Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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