csharpfritz / csharpfritz/WebFormsTest

WebApplicationProxy.cs GetHttpApplicationType() exception

Offen
#55 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
26
Forks
14
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.