Compilation question - nearing wits end!

B

Bob H

Hi,

I've had to go back to a creating simple app to see if I can find out what
is going wrong with an app I've done. I've been trying various ways and they
all work on my local dev PC (using inline code, code behind, compiling
business dll,compiling code behind file into dll). The following is what
I've done to get files working in local WS and IIS.

1) Create simple (showquote) business dll component. Compiled using vbc in
command tool. Move to project bin folder. Set a reference to dll in project.
2) Create aspx page and code behind vb file, referencing component.
3) Compile project to project.dll

This works fine on local setup. When trying to run on live webserver I've
Moved the project.dll & showquote.dll to live webserver MyApp/bin folder and
aspx file to MyApp folder.

When I try to run this I'm getting internal server error (500) showing. This
is without web.config file in the folder...which mucks things up even more.

If I try the above project on the live webserver using inline code which
references the dll in the bin folder, it works okay

The webserver guy has informed me that ASPNet_wp is running, folders are
'application' status.

Any clues, since we are both running very low on ideas.

cheers

bob
 
M

Martin Dechev

Hi, Bob,

Is the reference to the assembly with Copy Local set to true (right-click
the reference and choose Properties, then Copy Local is the only non-greyed
property)?

If it is with false - the runtime first looks it up in the GAC and then in
the absolute path specified for the reference.

Most probably the absolute path to the webapp's bin folder differs on the
two machines and the reference is with Copy Local = false. Try setting it to
true.

Hope this helps
Martin
 
B

Bob H

Thanks Martin. The Copy Local was set to true. I've also tried referencing
the showquote.dll using MyApp.Showquote in the aspx code behind form,
compiled project and moved aspx file and MyApp.dll file only to webserver
(as opposed to referencing dll in project).

Still no joy.

....grim day 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

Top