Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / August 2006

Tip: Looking for answers? Try searching our database.

Newbie help with the imports statement

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hawkz - 07 Aug 2006 01:46 GMT
Hi there,

I am coming to grips with VB.NET currently and I have a problem.
I am building an asp.net website

I wish to create a custom class that contains the custom functions that I
use frequently. the aim is to reduce code replication.

I have a file called "functions.vb" it is a simple test class with a
function called "speak(by val words as String)"

In another aspx.vb file I am using the statment "Imports functions"

At this stage, (using VS2005) doing a debugging load it all works. But when
I try to load this website on the remote server, it comes up with the
following error:

"
c:\inetpub\wwwroot\asp\anzmac07\login.aspx.vb(1) : warning BC40056:
Namespace or type specified in the Imports 'myFunctions.functions' doesn't
contain any public member or cannot be found. Make sure the namespace or the
type is defined and contains at least one public member. Make sure the
imported element name doesn't use any aliases."

So my question is, why does this web page project work locally in VS2005 and
not on the main webserver. I am extremely frustrated as I have googled until
blue in the face.

Does anyone have some suggestions.

Pleaaaase

Cheers.
GhostInAK - 07 Aug 2006 05:00 GMT
Hello Hawkz,

You have to copy the aspx page, the App_Code directory, and the bin directory
to the web server.

-Boo

> Hi there,
>
[quoted text clipped - 30 lines]
>
> Cheers.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.