csharpfritz / csharpfritz/WebFormsTest
WebApplicationProxy.cs GetHttpApplicationType() exception
- 主要语言
- JavaScript
- 星标
- 26
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
描述
Just by doing this in my xUnit test:
[Fact]
public void TestMethod1()
{
WebApplicationProxy.Create(typeof(Studio.StudioLogin));
}
I am getting this exception in WebApplicationProxy.cs GetHttpApplicationType() method.
'_Instance._compiler.GetCompiledType("/Default.aspx")' threw an exception of type 'System.Web.HttpException'
A bit more detail - System.InvalidOperationException : The WebApplicationProxy has not been created and initialized properly
So it seems like I'm missing some crucial step here. Is there something wrong with the web application? It is a rather old and complicated legacy application with some non-standard techniques being used.
@csharpfritz
贡献指南
这个仓库没有索引到贡献指南
调研方向
Start with WebApplicationProxy.cs, specifically GetHttpApplicationType(), and reproduce the exception using the xUnit test shown in the issue with WebApplicationProxy.Create(typeof(Studio.StudioLogin)). Trace the initialization state around _Instance._compiler and the /Default.aspx lookup. Done means identifying why the proxy is not initialized properly and documenting a verified fix or required setup.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- backend, testing
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100