Could not load type: 'HelloWorld2.Global'

R

Rob Hughes

I created a HelloWorld app on localhost that just has a textbox,
button and label and it works fine on localhost. I tried to copy the
app to the server and I started getting the 'Could not load type'
error. I've researched the problem on the internet but I can't find
the solution.

- The DLL exists and is in the \bin directory
- machine.config has the <add assembly="*"/> line but just to make
sure, I have tried adding <add assembly="HelloWorld2" /> to
web.config, I also tried <add assembly="*" /> and various combinations
of both but that didn't work

What else should I be looking into?
 
R

Rob Hughes

Thanks for the reply, yes it's configured as an application. Pages
work fine if the code is inline, only a problem with code-behind.

I worked with the IT guy for a while yesterday and found out that they
had the physical location of the files on a different server than the
web server. He copied over the files to the machine with the web
server as a test and it worked so it has something to do with the
virtual directory pointing to a different machine. Any ideas on that??
 

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
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top