0

when i access my ASP.Net IIS site (W2K3) from i get the following error:

SQLite error Access is denied.

[SQLiteException (0x80004005): SQLite error Access is denied.]

It happens when i call:

Object retVal = new System.Data.SQLite.SQLiteCommand("SELECT load_extension('libspatialite-4.dll');", conn).ExecuteScalar();

When i use Visual Studio all works perfectly.

So in that case i can rule out any dll problems. All non-spatial SQLIte queries work fine from IIS and Visual Studio too.

I'm sure i have to set a permission setting somewhere, but where and what user.

4

1 に答える 1

1

Spatiallite フォルダがシステムパスではなく、パスにあるようです。また、IIS に使用されるユーザー ID を再確認してください。ASP.NET とは異なる場合があります。

それでもうまくいかない場合は、プロセス モニターhttp://technet.microsoft.com/en-us/sysinternals/bb896645を使用してサーバーを監視してみてください。許可が拒否されたというエラーを監視すると、正しいパスに進むはずです。

于 2013-02-03T13:38:29.313 に答える