复合 C1 IIS 虚拟目录设置
我正在尝试在虚拟目录中设置 Composite C1 站点,但似乎 Composite 不喜欢它,并且我收到了 C1PageRouting 错误。
我们正在将现有站点的某些部分实施到 Composite 中,因此要求是保持现有站点运行并用其复合替换模块替换已更改的模块。所以我发现做到这一点的唯一方法是通过 IIS 虚拟目录。
下面是我试图实现的 IIS 目录结构:
IIS_Sites [Level 0]
>>**NonC1WebSite** [Level 1]
>>**ca** (Virtual Directory) [Level 2]
>>**en** (Virtual Directory) [Level 3]
>>**CompositeWebSite** (IIS Application) [Level 4]
+ App_Browsers [Level 4]
+ App_Code [Level 4]
+ Composite [Level 4]
+ .......etc........ [Level 4]
+ NonC1WebSite Folder1 [Level 1]
+ NonC1WebSite Folder2 [Level 1]
下面是我收到的错误:
对象引用未设置到对象的实例。
描述:执行当前 Web 请求期间发生未处理的异常。请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。
异常详细信息:System.NullReferenceException:未将对象引用设置为对象的实例。
源错误:
当前 Web 请求执行期间生成未处理的异常。有关异常来源和位置的信息可以使用下面的异常堆栈跟踪来识别。 堆栈跟踪:
[NullReferenceException:未将对象引用设置为对象的实例。] Composite.Core.Routing.Pages.C1PageRouteHandler..cctor() +200
[TypeInitializationException:“Composite.Core.Routing.Pages.C1PageRouteHandler”的类型初始值设定项引发异常。] Composite.Core.Routing.Pages.C1PageRouteHandler..ctor() +0 Composite.Core.Routing.Pages.C1PageRoute.GetRouteData(HttpContextBase上下文)+968 System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext)+355 System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase上下文)+75 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&completedSynchronously) +270
版本信息:Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.237
如果您有什么想法,请提供帮助。
另外,我会要求 mawtex 让我知道我是否需要一些特殊设置才能使其正常工作。
谢谢。
I am trying to setup Composite C1 site inside a virtual directory but seems like Composite doesn't like it and i am getting C1PageRouting Errors.
We are implementing some parts of our existing sites into Composite so the requirement is to keep existing sites running and replace changed modules with their composite replacements. So the only way i found to do that is through IIS virtual directories.
Below is the IIS Directory structure i am trying to implement:
IIS_Sites [Level 0]
>>**NonC1WebSite** [Level 1]
>>**ca** (Virtual Directory) [Level 2]
>>**en** (Virtual Directory) [Level 3]
>>**CompositeWebSite** (IIS Application) [Level 4]
+ App_Browsers [Level 4]
+ App_Code [Level 4]
+ Composite [Level 4]
+ .......etc........ [Level 4]
+ NonC1WebSite Folder1 [Level 1]
+ NonC1WebSite Folder2 [Level 1]
And Below is the error i am getting:
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Composite.Core.Routing.Pages.C1PageRouteHandler..cctor() +200
[TypeInitializationException: The type initializer for 'Composite.Core.Routing.Pages.C1PageRouteHandler' threw an exception.]
Composite.Core.Routing.Pages.C1PageRouteHandler..ctor() +0
Composite.Core.Routing.Pages.C1PageRoute.GetRouteData(HttpContextBase context) +968
System.Web.Routing.RouteCollection.GetRouteData(HttpContextBase httpContext) +355
System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context) +75
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +270
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
Please help if something shoots your mind.
Also i would request mawtex to let me know if i need some special settings to make it working.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过升级到最新的复合 3.0 RC 解决了这个问题。谢谢。
I resolved the problem by upgrading to latest composite 3.0 RC. Thanks.