getting access to classes in separate vb files

  • Thread starter Humberto Alvarez
  • Start date
H

Humberto Alvarez

Hi

As you might know, some asp.net host companies don't like dll in their
servers, so one has to upload the source files, right?

Well, the problem is that I have class libraries (.vb files) and I want to
access methods in those classes from the webform source code
(webform.aspx.vb). I upload files in the same directory but errors appear.
The only way to have the application working is copying all class libraries
into the webform.aspx.vb file.

Is there someway to have the application working with different classes in
separate files? Maybe a header or something that I can write in
webform.aspx.vb?

Thanks,
Humberto
 
P

Peter Rilling

"As you might know"? I do not know that. I have never heard of a hosting
company that prevents .NET assemblies because they are integral to the usage
of .NET. What company are you talking about? If they truly prevent this,
then you might want to switch companies. By the way, .NET will not execute
without assemblies (.dll or exes). All code is compiled, even when included
in webpages. They are ALL compiled to dlls before being executed. So can
you clarify what you mean by them not allowing dlls?
 
M

Marina

I have heard of complaints about some companies doing this. I'm not sure why
they do this, but it must be something about having the compiled DLL vs just
the source code for it. As far as I understand it, they don't want any DLL's
being uploaded into the bin directory of the application. I would think it
would be just the .aspx files - and all code would have to be inline. And
yes, it all gets compiled eventually anyway, so I'm not sure why they care
about the timing of the compile.

In any case, I am in complete agreement that switching hosts is the real
solution to the problem.
 
H

Humberto Alvarez

By not allowing dll's I mean that the company doesn't want me to upload my
projects' dlls. So I can only upload sourcefiles.
 
P

Peter Rilling

I would switch companies. This is totally unacceptable in the .NET world to
disallow this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top