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="Global.asax.vb"
Inherits="myapp.Global"%>
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:"C:\Program
Files\Microsoft.NET\OracleClient.Net\system.Data.OracleClient.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Shared.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.ReportSource.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.CrystalReports.Engine.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\crystaldecisions.web.dll"
/reference:System.Web.Services.dll
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Framework.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Report.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.InfoStore.dll"
/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
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="Global.asax.vb"
Inherits="myapp.Global"%>
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:"C:\Program
Files\Microsoft.NET\OracleClient.Net\system.Data.OracleClient.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Shared.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.ReportSource.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.CrystalReports.Engine.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\crystaldecisions.web.dll"
/reference:System.Web.Services.dll
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Framework.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.Report.dll"
/reference:"C:\Program Files\Common Files\Crystal
Decisions\2.0\managed\CrystalDecisions.Enterprise.InfoStore.dll"
/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