Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Code-behind dll in other folder than bin

Reply
Thread Tools

Code-behind dll in other folder than bin

 
 
Pavils Jurjans
Guest
Posts: n/a
 
      05-12-2004
Hello,

Please, I am fighting with this now for two days, and getting nowhere:

I have my application in a separate virtual folder:

c:\www\myApp

There is a bin folder there:

c:\www\myApp\bin

Now, I have this aspx page in c:\www\myApp\test.aspx:

<%@ Page Language="C#" enableSessionState="true" inherits="Testing.MyPage"%>

And, here's a codeBehind.cs file, that is compiled to dll:

using System;

namespace Testing
{
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");
}
}
}

Now, when this dll file is in c:\www\myApp\bin folder, all works fine. But,
I'd like to store it deeper in the bin folder, for example in
c:\www\myApp\bin\sub

As far as I understand, nurmal runtime probing for assemblies algorythm
applis also to the searching of code-behind classes, so I edit my
c:\www\myApp\web.config:

<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="bin,bin\sub"/>
</assemblyBinding>
</runtime>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>

Now, if I move the dll from c:\www\myApp\bin\ to c:\www\myApp\bin\sub,
refreshing the c:\www\myApp\test.aspx throws at me "Could not load type
'Testing.MyPage'" error. And that's where I am stuck now. Can't get it to
work in no way.

Please, I'd be happy for any hints

Thanks,

Pavils


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference dll from a folder other than bin D2 ASP .Net 3 06-13-2007 03:57 PM
How to access web.sitemap file from other virtual directories other than the current application root folder? hvajja@gmail.com ASP .Net 0 08-07-2006 08:26 PM
#!/usr/bin/ruby , #!/usr/bin/ruby -w , #!/usr/bin/ruby -T?, #!/usr/bin/ruby -T1... anne001 Ruby 1 04-23-2006 03:02 PM
_vti_cnf folder in the bin folder-- a problem? William LaMartin ASP .Net 1 11-10-2003 03:41 AM
msvcrt.dll, msvcirt.dll, msvcrt20.dll and msvcrt40.dll, explanation please! Snoopy NZ Computing 16 08-25-2003 12:34 PM



Advertisments