2012-02-10 81 views
1

我正在使用ScrewTurn Wiki。它是预先编辑的版本。所以,当我在我的宠物网站上运行IIS作为应用程序时,它会给出错误,例如无法找到类型或命名空间名称“AddressInfo”。但是,当我运行它作为网站比它工作正常。我在哪里做错了任何参考添加或我错过的东西。作为应用程序在IIS 7中的网站

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

在女巫DLL这个AddressInfo是?也许你忘了包括它? – Aristos 2012-02-10 06:08:39

+0

public class ProfileCommon:System.Web.Profile.ProfileBase { public virtual AddressInfo BillingAddress { return {(AddressInfo)(this.GetPropertyValue(“BillingAddress”))); – 2012-02-10 06:17:54

回答

0

我已经发布了WIKI并放置在我的网站下。现在在iis 7中,我已经在我的网站下为WIKI制作了Web应用程序。它工作正常。但是WIKI的Web.config文件中给出的错误,解决我与禁用的sessionState配置更改和添加

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

现在它作为我的网站的子文件夹。

相关问题