Shared aspx files

G

Guest

Hi,

I'm trying to create a library of shared code, some of which are ascx and aspx files. I'm pretty much following the procedure outlined in http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q324785 . This has been working fine when working on my local machine. I have moved the shared code to a remote machine, updated my virtual directory to point to the remote machine path, and added a reference to the remote dll. All is otherwise setup exactly as when the shared code was local. However I am now getting 'Could not load type' error when the compiler is parsing the first line of the shared apsx page (which does have code behind).
The referenced dll is copied locally and I can reference and interact with it in my local code.

Any ideas why the type is not being loaded when referenced from the aspx page at runtime?

Cheers for any help
Kimpton
 
B

bruce barker

did you copy the shared dll to bin directory, this will be done if you use a
VS deploy project, otherwise you must manually copy the dll to each vdir's
bin that uses the shared code, ie, only the aspx and asc files are shared,
the dll's must be copied to each project (vs does this for you when you run
your project)

-- bruce (sqlwork.com)

kimpton said:
Hi,

I'm trying to create a library of shared code, some of which are ascx and
aspx files. I'm pretty much following the procedure outlined in
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q324785 . This has
been working fine when working on my local machine. I have moved the shared
code to a remote machine, updated my virtual directory to point to the
remote machine path, and added a reference to the remote dll. All is
otherwise setup exactly as when the shared code was local. However I am now
getting 'Could not load type' error when the compiler is parsing the first
line of the shared apsx page (which does have code behind).
 

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

No members online now.

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top