简体   繁体   English

网站作为IIS 7中的应用程序

[英]web site as application in IIS 7

I am working with ScrewTurn Wiki. 我正在使用ScrewTurn Wiki。 It is pre-complied Version. 它是预完成版本。 So When I am tring to run on IIS as Application under my pet website than it gives error like The type or namespace name 'AddressInfo' could not be found. 因此,当我尝试在我的宠物网站下作为应用程序在IIS上运行时,它会显示错误消息,例如找不到类型或名称空间名称“ AddressInfo”。 But When I am run it as website than it works fine. 但是,当我将其作为网站运行时,效果会更好。 Where I am doing mistake any reference to be add or thing i missed. 在我做错任何要添加或我错过的事情的地方。

public class ProfileCommon : System.Web.Profile.ProfileBase 
 { public virtual AddressInfo BillingAddress 
        { get { return ((AddressInfo)(this.GetPropertyValue("BillingAddress"))); 

I have published the WIKI and placed under my website. 我已经发布了WIKI,并将其放置在我的网站下。 Now in iis 7, I have made web application for WIKI under my website. 现在在iis 7中,我已经在我的网站下为WIKI制作了Web应用程序。 It is working fine. 一切正常。 But Web.config of WIKI is given error, for resolving I have changed with disable sessionState configuration and added 但是WIKI的Web.config给出了错误,为解决我更改了禁用sessionState配置并添加了

<clear/>
<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

under httpModules. 在httpModules下。

Now it works as sub folder of my website. 现在它可以作为我网站的子文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM