このブログを検索

ラベル install の投稿を表示しています。 すべての投稿を表示
ラベル install の投稿を表示しています。 すべての投稿を表示

2014/08/23

Runtime error - dotNet runtime exception

フリーのスクリプト(dll付き)を実行したら以下の警告が表示されたと連絡があった。
自分のパソコンでも試してみたが結果は同じだった。
---------------------------
MAXScript MacroScript Error Exception
---------------------------
-- Runtime error: dotNet runtime exception: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkId=155569 for more information.
---------------------------
OK   
---------------------------
表示された警告内のリンクに飛んでみると
<loadFromRemoteSources enabled="true|false"/>
を追加したら?みたいな事が書いてあったが、そういう事じゃない気がすると思って他の方法を探す事にした。
うーん、と悩んでいると以下のサイトに行き当たった。

http://blogs.msdn.com/b/drew/archive/2009/12/24/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem.aspx

おお、そういうことかと。
dllって署名付いてないと実行できないんですね。
署名ついてに場合はファイルのプロパティから「ブロックの解除」をしてあげないと使いないんだ。知らなかった。

2014/04/19

"S1023"と表示され、DirectX SDK(June 2010)インストールできない

DirectX SDK(June 2010)をインストールしようたが、ウィザードの最後で”S1023”と表示され(しかも、他の文章は文字化けで)インストールを完了できない.

うーん、と思い調べてみたら、インストールされているMicrosoft Visual C++ 2010 RedistributableのバージョンがDirectX SDKで必要とするバージョンでないのが原因だったようだ.

新しいMicrosoft Visual C++ 2010 Redistributable 10.0.40219 (x86 and x64) をアンインストールし、 10.0.30319をインストールしたら、ちゃんとインストールできた.

詳細:
"S1023" error when you install the DirectX SDK (June 2010)
http://support.microsoft.com/kb/2728613