Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

could not load type "myapp.Global" error.

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello. I have a asp.net that I am creating using vs.net. I am deploying this on our test server which does not contain vs.net. So, I created a script file using vbc.exe to compile it there. The script compiles perfectly fine. However, when I open the website in a browser, I get this
error:

Parser Error Message: Could not load type 'myapp.Global'.
Source Error:
Line 1: <%@ Application Codebehind=&quot;Global.asax.vb&quot; Inherits=&quot;myapp.Global&quot;
%>

The virtual directories are the same name on my development pc and test server. Also, both directories are called c:\inetpub\
Any ideas what could be wrong? Your help is greatly appreciated!

SteveS
sms@hmbnet.com
 
Your test server needs the .NET Framework.
Now that I've got that off my back, I would suggest you compile your project on the development machine (with VS.NET) and then copy the aspx files (along with the images) and the bin directory. That's really all you need to run and view an ASP.NET compiled application.

hth Daren J. Lahey
Just another computer guy...
FAQ183-874 contains &quot;Suggestions for Getting Quick and Appropriate Answers&quot; to your questions.
Support your forums TODAY!
 
The test server already has the .Net Framework. Plus, I also ran the script from that server.

The reason why I don't want to compile it on a development machine is because we have many developers working on multiple pages on the same project. For example, If I am working on 3 separate pages and I only want to move 1 of those pages to our test server, I can't compile it on my development pc because the other 2 pages are not ready yet. Make sense?

If there is another way to accomplish this without running a script on that test server, I would love that! Any ideas?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top