• I have done scheduling by copying the code and made the job in SQL server agent.

    However, while running job, it gives error message like below.

    Executed as user: VGROUP\BI-SERVER$. System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config' is denied. (C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config) ---> System.UnauthorizedAccessException: Access to the path 'C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Config\machine.config' is denied. at System.IO.__Error.WinIOError(Int32 errorCode<c/> String maybeFullPath) at System.IO.FileStream.Init(String path<c/> FileMode mode<c/> FileAccess access<c/> Int32 rights<c/> Boolean useRights<c/> FileShare share<c/> Int32 bufferSize<c/> FileOptions options<c/> SECURITY_ATTRIBUTES secAttrs<c/> String msgPath<c/> Boolean bFromProxy) at System.IO.FileStream..ctor(String path<c/> FileMode mode<c/> FileAccess access<c/> FileShare share<c/> Int32 bufferSize<c/> FileOptions options<c/> String msgPath<c/> Boolean bFromProxy) at System.IO.FileStream..ctor(String path<c/> FileMode mode<c/> FileAccess access<c/> FileShare share) at System.Configuration.Internal.InternalConfigHost.StaticOpenStreamForRead(String streamName) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName<c/> Boolean assertPermissions) at System.Configuration.Internal.InternalConfigHost.System.Configuration.Internal.IInternalConfigHost.OpenStreamForRead(String streamName) at System.Configuration.ClientConfigurationHost.OpenStreamForRead(String streamName) at System.Configuration.BaseConfigurationRecord.InitConfigFromFile() --- End of inner exception stack trace --- at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal) at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors() at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) --- End of inner exception stack trace --- at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey) at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName) at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName) at System.Net.Configuration.SettingsSectionInternal.get_Section() at System.Net.Sockets.Socket.InitializeSockets() at System.Net.IPAddress.InternalParse(String ipString<c/> Boolean tryParse) at System.Net.NetworkInformation.IpAddrString.ToIPAddressCollection() at System.Net.NetworkInformation.FixedInfo..ctor(FIXED_INFO info) at System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() at System.Net.NetworkInformation.SystemIPGlobalProperties.get_DomainName() at System.Net.CookieContainer..ctor() at Microsoft.AnalysisServices.Xmla.XmlaClient..ctor(StringCollection log) at Microsoft.SqlServer.Management.Smo.Olap.SoapClient..ctor(String serverName<c/> String connectionString) at OlapEvent(SCH_STEP* pStep<c/> SUBSYSTEM* pSubSystem<c/> SUBSYSTEMPARAMS* pSubSystemParams<c/> Boolean fQueryFlag). The step failed.

    Please suggest.

    Thanks in advance.