Witam.
Mam poważny problem. Stworzyłem bazę danych w accessie oraz programik kktóry z tą bazą współpracuje. Baza jest na serwerze lokalnym, zaś programik odpalam z pozycji mojego komputera. Programik ogólnie pracuje na tabelach bazy. Problem pojawia się wtedy, gdy program umieszczam w tym samym katalogu na serwerze, co stworzona wcześniej baza. Są jakieś problemy z dostępem do bazy danych, tak sądzę. Błędy z zakresu OleDB.Permision. Zamieszczam poniżej wynik uruchomienia programu na serwerze. Zaznaczam, że jak program odpalam z lokala (baza cały czas na serwerze), to nie ma żadnego problemu, wszystko działa.
LOG:
System.Security.SecurityException: Request for the permission of type 'System.Da
ta.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicK
eyToken=b77a5c561934e089' failed.
at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMa
rk& stackMark, Boolean isPermSet)
at System.Security.PermissionSet.Demand()
at System.Data.Common.DbConnectionOptions.DemandPermission()
at System.Data.OleDb.OleDbConnection.PermissionDemand()
at System.Data.OleDb.OleDbConnectionFactory.PermissionDemand(DbConnection out
erConnection)
at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection ou
terConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[]
datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand co
mmand, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable)
at Katalog08.Program.GetData()
The action that failed was:
Demand
The type of the first permission that failed was:
System.Data.OleDb.OleDbPermission
The Zone of the assembly that failed was:
Intranet