- 日志
- 好友
- 卖家信用

- 买家信用

- 注册时间
- 2009-1-11
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
x
本帖最后由 michaelmimi 于 2012-7-2 11:10 编辑
上次问了用ie host .net application的问题。
这次的问题是那个的发展版。
目的是做一个这样的机能
用c#做一个读取suica情报的程序,把这个程序在ie中host
现状是,
单独用c#(使用一个叫FelicaLib的lib)可以实现读取suica情报。
单独在ie中可以host一些动作(winform啊之类的)
但是把这个读取suica情报的app放在ie中,出现了如下的错误。
具体分析一下发现问题出现在使用FelicaLib的地方,
为什么在ie中使用FelicaLib就会出现权限报错呢?
到底是哪儿的权限不够呢?
谁能帮我看看
Just-In-Time (JIT) デバッグを呼び出すための詳細については、
ダイアログ ボックスではなく、このメッセージの最後を参照してください。
************** 例外テキスト **************
System.Security.SecurityException: System.Security.Permissions.SecurityPermission
場所 FelicaLib.Felica..ctor()
場所 _20120702.UserControl1.button1_Click(Object sender, EventArgs e)
場所 System.Windows.Forms.Control.OnClick(EventArgs e)
場所 System.Windows.Forms.Button.OnClick(EventArgs e)
場所 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
場所 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
場所 System.Windows.Forms.Control.WndProc(Message& m)
場所 System.Windows.Forms.ButtonBase.WndProc(Message& m)
場所 System.Windows.Forms.Button.WndProc(Message& m)
場所 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
場所 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
失敗した最初のアクセス許可の種類:
System.Security.Permissions.SecurityPermission
失敗したアセンブリのゾーン:
MyComputer
************** 読み込まれたアセンブリ **************
mscorlib
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
コードベース: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
System
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5456 (Win7SP1GDR.050727-5400)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
20120702
アセンブリ バージョン: 1.0.0.0
Win32 バージョン: N/A
コードベース: http://localhost/20120702.DLL
----------------------------------------
System.Windows.Forms
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5460 (Win7SP1GDR.050727-5400)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5462 (Win7SP1GDR.050727-5400)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Accessibility
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.4927 (NetFXspW7.050727-4900)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.mshtml
アセンブリ バージョン: 7.0.3300.0
Win32 バージョン: 7.0.3300.0
コードベース: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
System.resources
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5420 (Win7SP1.050727-5400)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_ja_b77a5c561934e089/System.resources.dll
----------------------------------------
System.Windows.Forms.resources
アセンブリ バージョン: 2.0.0.0
Win32 バージョン: 2.0.50727.5420 (Win7SP1.050727-5400)
コードベース: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_ja_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
************** JIT デバッグ **************
Just-In-Time (JIT) デバッグを有効にするには、このアプリケーション、
またはコンピュータ (machine.config) の構成ファイルの jitDebugging
値を system.windows.forms セクションで設定しなければなりません。
アプリケーションはまた、デバッグを有効にしてコンパイルされなければ
なりません。
例:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
JIT デバッグが有効なときは、このダイアログ ボックスで処理するよりも、
ハンドルされていない例外はすべてコンピュータに登録された
JIT デバッガに設定されなければなりません。
------------------------------------------------------------------------------------------------------------
①c#ソース见附件
②html文件不能上传,就写在这儿好了
<html>
<body>
<p>Hello World Control<br> <br></body>
<object id="HelloWorldControl1"
classid="http:20120702.dll#_20120702.UserControl1"
height="500" width="500" VIEWASTEXT>
</object>
<br><br>
</html>
③将html和生成的dll放在apache下,就可以看到效果了。(ie,信赖サイト)
我放了一份在服务器,url是http://www.axas-japan.co.jp/axhp/sitemap/hoge
|
|