Kasus: Udpating Database (XAF) using DBUpdater
Sebenarnya pada tahun 2012 saya pernah mengalami kasus serupa, ketika mencoba mengupdate database Server (NAS - Linux) di notebook saya dan tidak bisa.
Demikian juga di proyek yang lain, saya ingin mengupdate database ke Server (Windows Server 2008 R2) dan tidak bisa.
Keluar error:
InnerException:
Type: NotSupportedException
Message: 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.
Data: 0 entries
Stack trace:
InnerException is null
Kemudian saya browsing ke link yang disebutkan di atas dan dibawa ke:
http://msdn.microsoft.com/en-us/library/dd409252%28VS.100%29.aspx
Walhasil yang saya harus lakukan adalah menambah beberapa baris di DBUpdater.v13.1.exe menjadi:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>
Dan hasilnya setelah saya update, berhasil dilakukan.
No comments:
Post a Comment