使用DotNetNuke设置单独的ASP.NET应用 [英] Setting up separate ASP.NET app with DotNetNuke

查看:58
本文介绍了使用DotNetNuke设置单独的ASP.NET应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2008 64位系统(后端数据库使用SQL Server 2008 64位)上安装了DotNetNuke(v5.1.4社区版),我想引用一个单独的ASP.NET应用程序从中。我计划通过DNN网站上的IFrame模块显示ASP.NET应用程序。我希望ASP.NET应用程序能够识别当前登录到DNN网站的用户。我正在尝试通过在Web服务器上的DNN网站下创建一个Web应用程序(在IIS中)来实现此目的。也就是说,ASP.NET Web应用程序是DNN网站(我们正在使用IIS7)的子级。

I've got DotNetNuke (v5.1.4 Community Edition) setup on a Windows Server 2008 64-bit system (using SQL Server 2008 64-bit for the backend database), and I want to reference a separate ASP.NET application from it. I plan to display the ASP.NET application via an IFrame module on the DNN site. I'd like the ASP.NET application to recognize the user that is currently logged into the DNN site. I'm trying to do this by creating a web application (in IIS) under the DNN web site on the web server. That is, the ASP.NET web application is a child of the DNN web site (we're using IIS7).

当我这样做时,然后导航至ASP .NET站点,我收到此错误消息:

When I do this and then navigate to the ASP.NET site I get this error message:


无法加载文件或程序集
'DotNetNuke.HttpModules'或其中之一其
依赖性。

"Could not load file or assembly 'DotNetNuke.HttpModules' or one of its dependencies."

基于本文。我添加了<清除/>标记到ASP.NET应用程序web.config的httpModules部分。

Based on this article. I added the < clear / > tag to the httpModules section of the ASP.NET applications web.config.

现在,我收到此错误消息:

Now I'm getting this error message:


无法加载文件或程序集
'DotNetNuke'或其
依赖项之一

"Could not load file or assembly 'DotNetNuke' or one of its dependencies"

此外,调试信息还提到了有关DotNetNuke.UI.WebControls.CaptchaHandler的内容,但我认为这不是问题的根源。也就是说,CaptchaHandler是httpHandlers部分中的第一项只是一个巧合。

Also, the debugging information mentions something about DotNetNuke.UI.WebControls.CaptchaHandler, but I don't think that's the source of the problem. That is, it's just a coincidence that the CaptchaHandler is the first item in the httpHandlers section.

我尝试添加< clear />标记到httpHandlers部分,但是得到以下错误消息:

I tried adding the < clear / > tag to the httpHandlers section, but get this error message:


未找到请求
类型的http处理程序'GET'

"No http handler was found for request type 'GET'"

关于可能发生的事情以及如何解决的任何想法?

Any ideas on what might be going on and how to fix it?

推荐答案

您可以修改dnn web.config根目录并添加 <位置InheritInChildApplications = false> < system.webServer> < system.web>周围的$ c> ; 标签。

You can modify the root dnn web.config and add <location inheritInChildApplications="false"> around the <system.webServer> and <system.web> tags.

最终结果将遵循以下原则……

The end result will be something along these lines...

<location path="." inheritInChildApplications="false">
  <system.webServer>

  ...

  </system.webServer>
  <system.web>

  ...

  </system.web>
</location>

这篇关于使用DotNetNuke设置单独的ASP.NET应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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