Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在vs2015中调试Altman.WinForm项目,提示“未将对像引用到对像实例中” #41

Open
lantianning opened this issue Jan 31, 2016 · 1 comment

Comments

@lantianning
Copy link

提示
“System.NullReferenceException”类型的未经处理的异常在 Altman.WinForm.exe 中发生

在Program.cs的第35行出错。
appDomain.ExecuteAssembly(Assembly.GetExecutingAssembly().CodeBase);

是什么原因呢?

@Alger23
Copy link

Alger23 commented Oct 31, 2018

提示
“System.NullReferenceException”类型的未经处理的异常在 Altman.WinForm.exe 中发生

在Program.cs的第35行出错。
appDomain.ExecuteAssembly(Assembly.GetExecutingAssembly().CodeBase);

是什么原因呢?

因為缺少執行時必要的文件,依下面步驟操作後可以執行

a. 請先安裝 GTK# for .NET

b. 請參閱:编译 步驟 1至 5

  1. 新建Build, Build\Bin, Build\Plugins, Build\Services目录
  2. 复制Resources\RunNeed目录下的所有文件到Build目录
  3. 复制Libraries\IronPython目录下所有文件到Build\Bin目录(如果本机已经安装IronPython,则跳过此步骤)
  4. 复制Libraries\Sqlite3目录下所有文件到Build目录
  5. 使用VS2012(或以上版本)或者MonoDevelop进行编译

== 依上述步驟操作後 Build 資料夾內容

Build
│   17monipdb.dat
│   Altman.dll
│   Altman.Gtk.exe
│   Altman.Gtk.exe.config
│   Altman.Gtk.pdb
│   Altman.pdb
│   Altman.Pex.dll
│   Altman.Pex.pdb
│   Altman.Plugin.dll
│   Altman.Plugin.pdb
│   Altman.Util.dll
│   Altman.Util.pdb
│   Altman.Webshell.dll
│   Altman.Webshell.pdb
│   Altman.WinForm.exe
│   Altman.WinForm.pdb
│   atk-sharp.dll
│   atk-sharp.pdb
│   data.db3
│   Eto.dll
│   Eto.Gtk2.dll
│   Eto.WinForms.dll
│   Eto.Wpf.dll
│   f.txt
│   gdk-sharp.dll
│   gdk-sharp.pdb
│   glib-sharp.dll
│   glib-sharp.pdb
│   gtk-sharp.dll
│   IronPython.dll
│   Microsoft.Dynamic.dll
│   Microsoft.Scripting.dll
│   Microsoft.Scripting.Metadata.dll
│   Mono.Cairo.dll
│   Mono.Data.Sqlite.dll
│   pango-sharp.dll
│   pango-sharp.pdb
│   setting.xml
│   sqlite3.dll
│   
├───Bin
│       IronPython.dll
│       IronPython.Modules.dll
│       IronPython.Stdlib.dll
│       Microsoft.Dynamic.dll
│       Microsoft.Scripting.dll
│       Microsoft.Scripting.Metadata.dll
│       
├───Config
│   └───Config
├───CustomType
│       aspEval.type
│       aspEval_BuiltIn.func
│       aspEval_Cookie.type
│       aspEval_Db.func
│       aspxEval.type
│       aspxEval_BuiltIn.func
│       aspxEval_Cookie.type
│       aspxEval_Db.func
│       jspBig.type
│       jspBig_BuiltIn.func
│       phpAssert.type
│       phpAssert_Base64.type
│       phpEval.type
│       phpEval_Base64.type
│       phpEval_BuiltIn.func
│       phpEval_Cookie.type
│       phpEval_Db.func
│       pythonEval.type
│       pythonEval_BuiltIn.func
│       _func.tree
│       
├───Languages
│       App_CN.xml
│       DbManager_CN.xml
│       FileManager_CN.xml
│       LanguageDefine.xml
│       PluginManager_CN.xml
│       ShellCmder_CN.xml
│       ShellManager_CN.xml
│       
├───Plugins
│   ├───DbManager
│   │       DbManager.dll
│   │       DbManager.pdb
│   │       
│   ├───DeveloperTool
│   │       DeveloperTool.dll
│   │       DeveloperTool.pdb
│   │       
│   ├───DoNetPluginTest
│   │       DoNetPluginTest.dll
│   │       DoNetPluginTest.pdb
│   │       
│   ├───Encoder
│   │       Encoder.dll
│   │       Encoder.pdb
│   │       
│   ├───FileManager
│   │       FileManager.dll
│   │       FileManager.pdb
│   │       
│   ├───IPQuery
│   │       IPQuery.dll
│   │       IPQuery.pdb
│   │       
│   ├───IronPythonPluginTest
│   │       IronPythonPluginTest.pdb
│   │       IronPythonPluginTest.py
│   │       
│   ├───PluginManager
│   │       PluginManager.dll
│   │       PluginManager.pdb
│   │       
│   ├───ShellCmder
│   │       ShellCmder.dll
│   │       ShellCmder.pdb
│   │       
│   └───ShellManager
│           ShellManager.dll
│           ShellManager.pdb
│           
└───Services
        Encode.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants