473,383 Members | 1,958 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,383 software developers and data experts.

Module Not Found

I am trying to figure out the @Assembly directive.

I have an application which uses "codebehind" and only
uses source code, so I
am using the "src=" option of the @Page directive. So I
have something that
looks like the following:

ASPX Files ASPX.VB Files
Page1.aspx Page1.aspx.vb
Page2.aspx Page2.aspx.vb
Page3.aspx Page3.aspx.vb

Now all of these three pages have a common program, let's
call it "Common.vb"
which is called from Page1.aspx.vb, Page2.aspx.vb,
Page2.aspx.vb.

When I run using the @Page src="Pag1.aspx.vb"
inherits="Page1", when
Page1.aspx.vb instatiates the "Common.vb" I get a compile
error indicating
that the class can not be found.

If I copy "Common.vb" and append it to "Page1.aspx.vb"...
then no problem, it
works just fine.

I am trying to find a way to enable these pages to
find "Common.vb" without me
having to copy the source into each of these pages.

I have taken to "Common.vb" and created a seperate
project, and compiled it
and placed the code in the "bin" folder, but still not
luck.

Looking at the @Assembly option, it would appear to me
that this may allow the
assembly to be found, but no matter what I put into this
directive, even
garbage, it has not effect. It has a "src=" option which
indicates that the
specified program will be compiled on the fly.

So any ideas as to what I need to do to enable the program
to be found and
compiled on the fly? Or for that matter, found in
the "bin" folder? Although
I believe it will look in the "Bin" folder for
the "folder" which is
identified as an "application folder" and unfortuneatly
the folder that I am
executing from is not an application folder and nor do I
have access to the
folder which is the application folder to place my
compiled program into.

Your assistance would be greatly appreciated!!!!!!!!!!!
Nov 17 '05 #1
1 1133
If you want to use classes that are part of a compiled assembly you need an
Import declaration at the top of your aspx page, as opposed to Inherits:
<%@ Import Namespace="MyComponent" %>

in article 0a****************************@phx.gbl, Jim Heavey at
an*******@discussions.microsoft.com wrote on 10/27/03 15:50:
I am trying to figure out the @Assembly directive.

I have an application which uses "codebehind" and only
uses source code, so I
am using the "src=" option of the @Page directive. So I
have something that
looks like the following:

ASPX Files ASPX.VB Files
Page1.aspx Page1.aspx.vb
Page2.aspx Page2.aspx.vb
Page3.aspx Page3.aspx.vb

Now all of these three pages have a common program, let's
call it "Common.vb"
which is called from Page1.aspx.vb, Page2.aspx.vb,
Page2.aspx.vb.

When I run using the @Page src="Pag1.aspx.vb"
inherits="Page1", when
Page1.aspx.vb instatiates the "Common.vb" I get a compile
error indicating
that the class can not be found.

If I copy "Common.vb" and append it to "Page1.aspx.vb"...
then no problem, it
works just fine.

I am trying to find a way to enable these pages to
find "Common.vb" without me
having to copy the source into each of these pages.

I have taken to "Common.vb" and created a seperate
project, and compiled it
and placed the code in the "bin" folder, but still not
luck.

Looking at the @Assembly option, it would appear to me
that this may allow the
assembly to be found, but no matter what I put into this
directive, even
garbage, it has not effect. It has a "src=" option which
indicates that the
specified program will be compiled on the fly.

So any ideas as to what I need to do to enable the program
to be found and
compiled on the fly? Or for that matter, found in
the "bin" folder? Although
I believe it will look in the "Bin" folder for
the "folder" which is
identified as an "application folder" and unfortuneatly
the folder that I am
executing from is not an application folder and nor do I
have access to the
folder which is the application folder to place my
compiled program into.

Your assistance would be greatly appreciated!!!!!!!!!!!


Nov 17 '05 #2

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

Similar topics

0
by: RDahlstedt | last post by:
I am relatively new to PHP, but with over a decade of experience in C and other programming languages I can usually pick up a new programming language relatively quickly (to be reasonably...
3
by: Stefan Quandt | last post by:
I want to set a modules global variable from outside like this: <begin a.py> v = None def setv( x ): v = x def getv(): return v <end a.py> <begin b.py>
18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
2
by: Kenneth McDonald | last post by:
I'd like to propose a new PEP , for a standard library module that deals with files and file paths in an object oriented manner. I believe this module should be included as part of the standard...
0
by: RCM | last post by:
I am really eager to quit the Microsoft world and get into LAMP. For the immediate future I can't do the Apache part, so I am at least trying to get PHP up and running under IIS to learn it. I...
0
by: pianomaestro | last post by:
I have a cython extension module "mux" where the initialization is being called more than once (the initmux c function). I am wondering if my use of multiple threads causes this. Can't multiple...
9
by: Larry Hale | last post by:
I've heard tell of a Python binding for libmagic (file(1) *nixy command; see http://darwinsys.com/file/). Generally, has anybody built this and worked with it under Windows? The only thing I've...
6
by: dudeja.rajat | last post by:
Hi, I found on the net that there is something called module initialization. Unfortunately, there is not much information for this. However, small the information I found module initialization...
3
ram09
by: ram09 | last post by:
After deploying our site in the iis7 server, we encountered this error... ModuleName AspNetInitializationExceptionModule Notification 1 HttpStatus 500 HttpReason Internal Server Error ...
4
by: yogarajan | last post by:
The specified module could not be found. (Exception from HRESULT: 0x8007007E) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.