Reply to topic
compiled dll versus src file
wildorf


Joined: 13 Aug 2004
Posts: 3
Location: HP, IL
Reply with quote
does anyone know why I am able to use .net with uncompiled source files and not with the compiled .dll file in a bin directory Confused
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
Could be taht you're not referencing the class or namespace correctly in your code.
No I don't think so.
wildorf


Joined: 13 Aug 2004
Posts: 3
Location: HP, IL
Reply with quote
I have one page at http://militaryringsandgifts.com/nobinSimp/WebForm1.aspx and another with a compiled .dll file in bin subdirectory at
http://militaryringsandgifts.com/binSimp/WebForm1.aspx .

The nobinSimp is an aspx page with an aspx.vb code module in the same directory that is compiled at run time; no dll .

Both pages run the same on my developement machine.

Do you have any other thoughts Question

I would really like to be able to use .Net in my development but if I can't reference classes outside the page class I'm up a creek woap.

Just for my info, I should be able to run my .Net pages with code behind and other data access classes compiled into dll located in the bin subdirectory.

I think this forum is great by the way.
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
the error is trying reference a type... that doesn't seem right. What version of .net are you using; 1.0, 1.1, or 1.1 SP1?

Try changing your page directive to...
Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebForm1"%>


OR

Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="binsemp"%>
Figured it out - yeah!
wildorf


Joined: 13 Aug 2004
Posts: 3
Location: HP, IL
Reply with quote
I overestimated the portability of the dll that was built on my development machine onto the web server. Apparently the .Net framework on the web server doesn't have the resources that the dll requests.
The answer was to build the dll on the web server. I used front page extensions to create a subweb, used VS.net to to create the project in the new web folder and within minutes had the results I am accustomed to on my development machine.
So hope this helps somebody
Visit my website at http://militaryringsandgifts.com
Josh
Forum Regular

Joined: 01 Apr 2004
Posts: 1047
Location: Felton, Delaware
Reply with quote
Glad you figured it out Very Happy That's BOUND to help somebody in the future!!!
compiled dll versus src file
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic