Hello,
@Rob
Thank you for your responce.
I did what you told me and this is the result:
(Server Error in '/' Application.
The SELECT permission was denied on the object 'MC40200', database 'DYNAMICS', schema 'dbo'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: The SELECT permission was denied on the object 'MC40200', database 'DYNAMICS', schema 'dbo'.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%@ Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. )
Stack Trace:
[SqlException (0x80131904): The SELECT permission was denied on the object 'MC40200', database 'DYNAMICS', schema 'dbo'.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1099
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +58
System.Data.SqlClient.SqlDataReader.get_MetaData() +112
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6291924
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6292993
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
System.Data.SqlClient.SqlCommand.ExecuteReader() +117
Microsoft.BusinessFramework.Data.SqlAdHocQuery.ExecuteCommand(AdHocStatementBuilder builder) +105
[GeneralDatabaseException: The SELECT permission was denied on the object 'MC40200', database 'DYNAMICS', schema 'dbo'.]
Microsoft.BusinessFramework.Data.Storage.StorageUtil.ThrowStorageException(SqlException sqlException) +777
Microsoft.BusinessFramework.Data.SqlAdHocQuery.ExecuteCommand(AdHocStatementBuilder builder) +476
Microsoft.BusinessFramework.Data.SqlAdHocQuery.ExecuteAdHocQuery(Object genericParams) +88
Microsoft.BusinessFramework.Data.Internal.TransactionServicesNative.BeginSupported(CallThroughMethod callThroughMethod, Object passThroughParams) +268
Microsoft.BusinessFramework.Data.TransactionServices.EstablishContext(TransactionOption requestedOption, IsolationLevel isoLevel, Type targetClass, CallThroughMethod callbackClass, Object passThroughParams) +594
Microsoft.BusinessFramework.Data.SqlAdHocQuery.ExecuteQuery(AdHocQueryCriteria criteria, EntityPersistenceOptions options, Boolean reverseOrder) +453
Microsoft.BusinessFramework.Entity.AdHocQueryBlockEnumeratorService.MoveNext(IAdHocQueryBlockReader blockReader, IAdHocQueryBookMark currentDataRow) +981
Microsoft.BusinessFramework.Security.AdHocQuerySecurityService.MoveNext(IAdHocQueryBlockReader blockReader, IAdHocQueryBookMark currentDataRow) +697
Microsoft.BusinessFramework.Entity.AdHocQueryBlockEnumerator.MoveNext() +468
Microsoft.BusinessFramework.Entity.AdHocQuery.GetDataSet(AdHocQueryCriteria criteria) +251
Microsoft.Dynamics.DynamicsCurrencyProvider.FillCurrencyLookupTable() +648
Microsoft.Dynamics.DynamicsCurrencyProvider..ctor() +24
Microsoft.Dynamics.DynamicsCurrencyProvider.Initialize() +90
ASP.global_asax.Application_PreRequestHandlerExecute(Object sender, EventArgs e) +21
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
Version Information: Microsoft .NET Framework Version:2.0.50727.5420; ASP.NET Version:2.0.50727.5420 )
Please i need your help.
Thank you