AnsweredAssumed Answered

Error while trying to hit the data archive from web application

Question asked by swetha on Dec 29, 2016
Latest reply on Jan 3, 2017 by gavin.strack

 

Hi,

 

I am trying to host an application and the application throws an error when it tries to access the data archive.

I think it has something to do with PISDKRegistry.dll.Can someone please suggest?

 

Please find the error details below.

 

 

Server Error in '/PITag-New' Application.

 

  

 

Retrieving the COM class factory for component with CLSID {7D36BED3-9635-484F-92E0-478369C450EC} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

 

  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.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {7D36BED3-9635-484F-92E0-478369C450EC} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

 

  

 

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

 

  

 

To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

 

  

 

Source Error:

 

  

 

  

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. 

 

  

 

Stack Trace:

 

  

 

  

 

  

 

[UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {7D36BED3-9635-484F-92E0-478369C450EC} failed due to the following error: 80070005 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).]

 

   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0

 

   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +119

 

   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232

 

   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83

 

   System.Activator.CreateInstance(Type type) +11

 

   OSIsoft.PI.Configuration.Schema.PISDKRegistrySchema.AccessRegistry(Action`1 action) +125

 

   OSIsoft.PI.Configuration.Schema.PISDKRegistrySchema.RunInReaderLock(Action`1 action) +176

 

   OSIsoft.PI.Configuration.Schema.PISDKRegistrySchema.get_DefaultServer() +70

 

   OSIsoft.PI.Configuration.PISDKRegistryDirectoryProvider.AddDefaultServiceToDomainTable(DomainTable table) +99

 

   OSIsoft.PI.Configuration.PISDKRegistryDirectoryProvider.GetDomainTable() +92

 

   OSIsoft.PI.Configuration.PISDKRegistryDirectoryProvider.GetTable(TableType type) +135

 

   OSIsoft.AF.PI.PIServersGlobal.Load(Boolean force) +376

 

   OSIsoft.AF.PI.PIServersGlobal..ctor(PISystemsGlobal systems) +134

 

   OSIsoft.AF.PISystemsGlobal.get_PIServers() +86

 

   OSIsoft.AF.PI.PIServersGlobal.GetPIServers(PISystemsGlobal systems) +13

 

   OSIsoft.AF.PI.PIServers..ctor() +37

 

   Accenture.PICapability.PIUtilityLibrary.GlobalClass..cctor() +249

 

  

 

[TypeInitializationException: The type initializer for 'Accenture.PICapability.PIUtilityLibrary.GlobalClass' threw an exception.]

 

   Accenture.PICapability.PIUtilityLibrary.ConnSingleton.GetPIConnection() +820

 

   PITagCreater_ASPNet.LOGIN.btnLogin_Click(Object sender, EventArgs e) +318

 

   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +9669962

 

   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +108

 

   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12

 

   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15

 

   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35

 

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3562

 

 

 

  

 

 

 

Outcomes