473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

getting access to classes in separate vb files

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
Jan 4 '06 #1
4 1320
"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?

"Humberto Alvarez" <hu********@yahoo.com> wrote in message
news:ux*************@tk2msftngp13.phx.gbl...
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

Jan 4 '06 #2
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.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
"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?

"Humberto Alvarez" <hu********@yahoo.com> wrote in message
news:ux*************@tk2msftngp13.phx.gbl...
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


Jan 4 '06 #3
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.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
"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?

"Humberto Alvarez" <hu********@yahoo.com> wrote in message
news:ux*************@tk2msftngp13.phx.gbl...
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


Jan 4 '06 #4
I would switch companies. This is totally unacceptable in the .NET world to
disallow this.

"Humberto Alvarez" <hu********@yahoo.com> wrote in message
news:eX**************@TK2MSFTNGP14.phx.gbl...
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.

"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:uu**************@TK2MSFTNGP09.phx.gbl...
"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?

"Humberto Alvarez" <hu********@yahoo.com> wrote in message
news:ux*************@tk2msftngp13.phx.gbl...
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



Jan 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Roger | last post by:
My ISP provides me with minimal space on a dedicated server running PHP, and 250MB on a separate HTTP server. I'm trying to make a gallery using PHP. The script is held on the PHP server, and...
5
by: Hal Vaughan | last post by:
I think a lot of this is definately a question of personal programming style, but I'm new to Java and would like to hear a few opinions. I'm writing a control panel for an application that runs...
12
by: Sunny | last post by:
Hi All, I have a serious issue regarding classes scope and visibility. In my application, i have a class name "TextFile", and also a few other classes like "TotalWords", "TotalLines" and etc..,...
8
by: Robert W. | last post by:
I've almost completed building a Model-View-Controller but have run into a snag. When an event is fired on a form control I want to automatically updated the "connnected" property in the Model. ...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
11
by: John Salerno | last post by:
From my brief experience with C#, I learned that it was pretty standard practice to put each class in a separate file. I assume this is a benefit of a compiled language that the files can then be...
0
by: Bernie Beattie | last post by:
I'm new to ASP.NET 2.0 and I'm trying to get my head round the best way to approach data access for a website. According to the various articles I have read so far, it is best to separate out data...
9
by: JT | last post by:
Here is the overall structure I will be referring to: End-program ProvideWorkFlow.dll Forms and methods that properly manipulate calls to methods in AccessUtils AccessUtils (a web service)...
11
by: Sachin Garg | last post by:
I need to build two executables from my code, one having all the code (and thus application features) and other not having it all. How to best manage the code that shouldn't go in one of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.