P
Pavils Jurjans
Hello,
This is my test.aspx page:
<%@ Page Language="C#" enableSessionState="true" inherits="MyPage"%>
This is code in CodeBehind.cs:
using System;
public class MyPage : System.Web.UI.Page
{
public void Page_Load(Object sender, EventArgs e)
{
}
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
System.Web.HttpContext currentContext = System.Web.HttpContext.Current;
currentContext.Response.Write("Hello");
}
}
The CodeBehind.cs is compiled to CodeBehind.dll, and saved in "<application
root>/bin/test" folder
The web.config file is this:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin\test"/>
</assemblyBinding>
</runtime>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Yet, when I try to look at test.aspx page, I get "Could not load type
'MyPage'" error.
What am I doing wrong here?
Thanks,
-- Pavils
This is my test.aspx page:
<%@ Page Language="C#" enableSessionState="true" inherits="MyPage"%>
This is code in CodeBehind.cs:
using System;
public class MyPage : System.Web.UI.Page
{
public void Page_Load(Object sender, EventArgs e)
{
}
protected override void Render(System.Web.UI.HtmlTextWriter writer)
{
System.Web.HttpContext currentContext = System.Web.HttpContext.Current;
currentContext.Response.Write("Hello");
}
}
The CodeBehind.cs is compiled to CodeBehind.dll, and saved in "<application
root>/bin/test" folder
The web.config file is this:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin;bin\test"/>
</assemblyBinding>
</runtime>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Yet, when I try to look at test.aspx page, I get "Could not load type
'MyPage'" error.
What am I doing wrong here?
Thanks,
-- Pavils