Wednesday, December 18, 2013

webclient.dll failed to open file for writing

webclient.dll failed to open file for writing

Problem :


We come across this common exception when we are trying to install Qualiy Center 10 in Internet Explorer 8 or above. I was using windows 7 operating system. Lets see how we can resolve this.

Exception I Encountered Was :


#########################################################################################
The following client components where not downloaded successfully :

1 . ExtensibilityAPI.dll :
(Error 5) Access is denied.
Failed to open file for writing

2 . OTAClient.dll :
(Error 5) Access is denied.
Failed to open file for writing

3 . WebClient.dll :
(Error 5) Access is denied.
Failed to open file for writing

4 . QCClientUI.ocx :
(Error 5) Access is denied.
Failed to open file for writing

5 . wexectrl.exe :
(Error 5) Access is denied.
Failed to open file for writing

6 . XGO.ocx :
(Error 5) Access is denied.
Failed to open file for writing

7 . OTAXml.dll :
(Error 5) Access is denied.
Failed to open file for writing

8 . OtaReport.dll :
(Error 5) Access is denied.
Failed to open file for writing

9 . SRunner.ocx :
(Error 5) Access is denied.
Failed to open file for writing

10 . TdComandProtocol.exe :
(Error 5) Access is denied.
Failed to open file for writing

11 . sr_exec_agnt.exe :
(Error 5) Access is denied.
Failed to open file for writing

12 . MercResourceLogger.dll :
(Error 5) Access is denied.
Failed to open file for writing

13 . bp_exec_agent.exe :
(Error 5) Access is denied.
Failed to open file for writing

14 . BPTreports.cab :
(Error 5) Access is denied.
Failed to open file for writing

15 . Client.cab :
(Error 5) Access is denied.
Failed to open file for writing

16 . Free_MSR_Player.exe :
(Error 5) Access is denied.
Failed to open file for writing

17 . dsoframer.ocx :
(Error 5) Access is denied.
Failed to open file for writing

18 . VugenTestType.dll :
(Error 5) Access is denied.
Failed to open file for writing

19 . QCClient.UI.Customization.dll :
(Error 5) Access is denied.
Failed to open file for writing

20 . QCClient.UI.Components.BPT.TPC.dll :
(Error 5) Access is denied.
Failed to open file for writing

21 . BuiltInPlugin.cab :
(Error 5) Access is denied.
Failed to open file for writing

22 . Plugin.cab :
(Error 5) Access is denied.
Failed to open file for writing

23 . BuiltInPlugin.dll :
(Error 5) Access is denied.
Failed to open file for writing

24 . ReportViewerForTD.dll :
(Error 5) Access is denied.
Failed to open file for writing

25 . QTGrid.dll :
(Error 5) Access is denied.
Failed to open file for writing

26 . ArgsEditor.dll :
(Error 5) Access is denied.
Failed to open file for writing

27 . Arguments.dll :
(Error 5) Access is denied.
Failed to open file for writing

28 . ConfigViewerForTD.dll :
(Error 5) Access is denied.
Failed to open file for writing

29 . ExGrid.dll :
(Error 5) Access is denied.
Failed to open file for writing

30 . CompStrgHelper.dll :
(Error 5) Access is denied.
Failed to open file for writing

31 . BuiltInScriptView.dll :
(Error 5) Access is denied.
Failed to open file for writing

32 . QAIAd.dll :
(Error 5) Access is denied.
Failed to open file for writing

33 . WITestType.dll :
(Error 5) Access is denied.
Failed to open file for writing

34 . ExtensibilityAPI.dll :
Cannot load type library 

35 . ExtensibilityAPI.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

36 . OTAClient.dll :
Cannot load type library 

37 . OTAClient.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

38 . WebClient.dll :
Cannot load type library 

39 . WebClient.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

40 . QCClientUI.ocx :
Cannot load type library 

41 . QCClientUI.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

42 . XGO.ocx :
Cannot load type library 

43 . XGO.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

44 . OTAXml.dll :
Cannot load type library 

45 . OTAXml.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

46 . OtaReport.dll :
Cannot load type library 

47 . OtaReport.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

48 . SRunner.ocx :
Cannot load type library 

49 . SRunner.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

50 . MercResourceLogger.dll :
Cannot load type library 

51 . MercResourceLogger.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

52 . BPTReportSetup.dll :
Cannot load type library 

53 . BPTReportSetup.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

54 . dsoframer.ocx :
Cannot load type library 

55 . dsoframer.ocx :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

56 . VugenTestType.dll :
Cannot load type library 

57 . VugenTestType.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

58 . Plugin.tlb :
Cannot load type library 

59 . Plugin.tlb :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

60 . BuiltInPlugin.dll :
Cannot load type library 

61 . BuiltInPlugin.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

62 . ReportViewerForTD.dll :
Cannot load type library 

63 . ReportViewerForTD.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

64 . QTGrid.dll :
Cannot load type library 

65 . QTGrid.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

66 . ArgsEditor.dll :
Cannot load type library 

67 . ArgsEditor.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

68 . Arguments.dll :
Cannot load type library 

69 . Arguments.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

70 . ConfigViewerForTD.dll :
Cannot load type library 

71 . ConfigViewerForTD.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

72 . ExGrid.dll :
Cannot load type library 

73 . ExGrid.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

74 . CompStrgHelper.dll :
Cannot load type library 

75 . CompStrgHelper.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

76 . QAIAd.dll :
Cannot load type library 

77 . QAIAd.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

78 . WITestType.dll :
Cannot load type library 

79 . WITestType.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

80 . test_type.ini :
(Error 5) Access is denied.
Failed to open file for writing

Close all connections to Server and try again.

#########################################################################################

Solution :


This exception was caused when i tried to install quality center 10 in internet explorer 10. You should have admin rights to install it. Just right click and say run as administrator and it should install fine.



Example :


Right click the file and select run as administrator.


Similar Exception :

     

- ArgsEditor.dll :
Cannot load type library 

- ArgsEditor.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library 

- Arguments.dll :
Cannot load type library 

- Arguments.dll :
(Error 1008) An attempt was made to reference a token that does not exist.
Cannot register type library