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!

compiling using vbc - "could not load type"

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello. This problem is driving me totally bonkers and I need to get it solved soon. I have a asp.net application that I am creating using vs.net. Several developers are
deploying our changed files to 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;%>

I know this problem isn't a security issue because if I copy the application from my development pc to the server, it works fiine.

Here are the scripts that I used to create the .dll file:

SCRIPT #1 (I run this batch file from windows explorer)
cd c:\inetpub\vbc /out:bin\toad.dll @c:\vbcoptions.txt > c:\toad.log
notepad c:\toad.log

SCRIPT #2 (vbcoptions.txt)
/target:library
/recurse:*.vb
/verbose
/reference:System.dll
/reference:System.Data.dll
/reference:System.Drawing.dll
/reference:System.Web.dll
/reference:System.XML.dll
/reference:&quot;C:\Program
Files\Microsoft.NET\OracleClient.Net\system.Data.OracleClient.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Shared.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.ReportSource.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.CrystalReports.Engine.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\crystaldecisions.web.dll&quot;
/reference:System.Web.Services.dll
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Framework.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Report.dll&quot;
/reference:&quot;C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.InfoStore.dll&quot;
/imports:Microsoft.VisualBasic
/imports:System,System.Collections
/imports:System.Configuration
/imports:System.Data
/imports:System.Drawing
/imports:System.Web
/imports:System.Web.UI
/imports:System.Web.UI.HtmlControls
/imports:System.Web.UI.WebControls

========================================
If there is another newsgroup that this should be posted in, please let me know.

Thank you for your help!!!

SteveS
sms@hmbnet.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top