Resolving HRESULT Error 0x80030005 Access Denied in WinCC V5.1
SIMATIC WinCC V5.1 is the legacy PC-based HMI/SCADA platform used on Chinese-built machinery with S7-300 PLCs and PC-based operator stations. A frequent commissioning complaint on these installations is HRESULT error 0x80030005: Access denied when the integrator or end-user attempts to open a transferred WinCC project in the WinCC Explorer. This reference details the underlying root cause, the Windows-level remediation, project-file recovery steps, and the secondary PROFIBUS connection setup between an S7-300 CPU and the WinCC station.
STG_E_ACCESSDENIED from the COM storage subsystem. Operators frequently misdiagnose the fault as a damaged .pdl, .mcp, or .ldb file and waste hours reinstalling the software when the real fix is a 30-second user-account change.1. Problem Description and Symptoms
On a freshly delivered Chinese-built production machine running SIMATIC WinCC V5.1 ASIA (Chinese localization) on Windows 2000, the integrator attempts to open a WinCC project from the manufacturer-supplied restore media. WinCC Explorer returns the dialog:
Hresult error 0x80030005: Access denied.
The following symptoms are observed on a typical installation:
- Project opens partially, then hangs at Project initialization.
- WinCC Explorer event log reports
CSArchive / OLE-COM storage could not be opened. - Re-installation of WinCC 5.1 ASIA does not resolve the issue.
- Formatting the hard drive and re-imaging from the vendor DVD also fails on the same error code.
- The vendor's default username/password combination
001 / 001is rejected by WinCC Explorer.
None of the symptoms indicate a defective media image because the same image opens correctly under a freshly created Windows administrator account. The error reproduces on every login until the user-rights constraint is corrected.
2. Root Cause Analysis
2.1 HRESULT 0x80030005 Mapping
HRESULT 0x80030005 corresponds to the COM structured-storage return code STG_E_ACCESSDENIED. WinCC V5.x stores project data inside OLE Compound Document files (*.pdl, project databases) and relies on Windows security descriptors to grant the logged-on user read/write access to the project directory tree. The structured-storage layer refuses to open the file when the caller's access token does not include FILE_GENERIC_READ and FILE_GENERIC_WRITE on the file.
| Field | Value |
|---|---|
| HRESULT hex | 0x80030005 |
| HRESULT decimal | -2147287035 |
| Facility | STORAGE (FACILITY_STORAGE = 0x0003) |
| Error code | 0x0005 (Access Denied) |
| Symbolic name | STG_E_ACCESSDENIED |
| Component | OLE32 / COM structured storage |
| Affected WinCC versions | V5.0, V5.1, V5.1 ASIA, V6.0 (legacy mode) |
| Affected OS | Windows 2000, XP, Server 2003 |
2.2 Why the Project Looks Corrupted
The OLE storage layer opens the compound document, enumerates the directory entries, and validates the security descriptor against the caller's token. When the Windows user logged into the HMI PC is a member of Users rather than Administrators, the structured-storage API fails at the very first IStorage::OpenStream call. WinCC V5.1 then surfaces the lower-level COM error to the operator, who assumes the *.pdl archive is unreadable. The 30% size of project files being identical to the vendor backup is the first evidence that the file itself is intact.
2.3 Vendor Default Account Behavior
Chinese machine builders commonly ship the HMI PC with a non-administrative local account (often named 001 with password 001) to satisfy factory-acceptance-test checklists. This account is intentionally restricted so that line operators cannot modify the project. WinCC V5.1 honors this restriction: even with the correct credentials, the limited account cannot load the project's Regensburg archive. WinCC never asks for project-level passwords in this scenario; it fails before reaching the project authentication screen.
001 / 001, wincc / wincc, or operator / 0000 are Windows logins, not WinCC user-administrator credentials. Confusing the two is the most common source of repeated commissioning delays.3. Prerequisites for the Fix
- Windows 2000 / XP / Server 2003 administrator password for the local PC (or ability to boot Safe Mode and rename accounts).
- WinCC V5.1 ASIA installation CD or pre-installed
C:\SIEMENS\WinCCpath. - Vendor-supplied WinCC project restore media (CD, USB, or network share).
- Read/write access to the destination project directory (typically
D:\Projects\<MachineName>\orC:\SIEMENS\WinCC\Projects\). - For the secondary PROFIBUS task: SIMATIC NET PC software, CP 5611 / CP 5613 / CP 5614 PROFIBUS card, and the S7-300 station with its MPI/DP port configured.
4. Step-by-Step Resolution
Step 1 - Identify the Active Windows Account
- Press
Ctrl+Alt+Deland select Log Off on Windows 2000 / XP. - At the login prompt, note the username. If the field is greyed out, the default account is
001with auto-login enabled. - Click Cancel and log in as a local administrator using
Administratorwith the password set during imaging (typically blank on factory-default Chinese machines - reset immediately).
Step 2 - Promote the Operating Account to Administrator
- Open Control Panel > Administrative Tools > Computer Management.
- Expand Local Users and Groups > Users.
- Right-click the operator account (for example
001) and choose Properties. - Select the Member Of tab.
- Click Add, type
Administrators, and confirm with Check Names. - Click OK twice and close Computer Management.
Step 3 - Reset NTFS Permissions on the Project Tree
- Open Windows Explorer and navigate to the WinCC project root, for example:
D:\Projects\FeedingSystem\ - Right-click the folder and select Properties > Security.
- Click Advanced and enable Replace permission entries on all child objects.
- Add
EveryonewithFull Controlif commissioning, orUserswithRead/Write/Modifyif hardening for production. - Apply and confirm the security propagation warning.
Step 4 - Clear the Lock and Temp Files
- Stop any orphaned WinCC process via Task Manager (kill
CCExplorer.exe,WinCC.exe,S7wnasvc.exe). - Delete stale lock files inside the project directory:
del /s /q *.ldb del /s /q *.lck del /s /q ~*.* - Empty the recycle bin to release COM storage handles.
Step 5 - Reopen the WinCC Project
- Log off and log back in as the operator account (now in
Administratorsgroup). - Launch WinCC Explorer from
Start > SIMATIC > WinCC > Windows Control Center. - Select Open > Open Project and choose the project's
*.mcpmaster file. - Verify that WinCC Explorer enters Runtime ready state without the HRESULT dialog.
5. PROFIBUS Connection Between S7-300 and the WinCC PC
After the project loads, the second commissioning task is establishing the S7-300 to PC link. The classic recipe for WinCC V5.x on a Chinese-built feeding system uses the integrated PROFIBUS / MPI interface on the S7-300 CPU and a CP 5611 / CP 5613 card on the PC side.
5.1 Hardware Topology
+----------------+ PROFIBUS DP / MPI +----------------+
| S7-300 CPU | ----------------------------------> | WinCC PC |
| (e.g. 314C-2 | 9.6 kbit/s ... 12 Mbit/s | CP 5611 A2 |
| DP / 315-2DP)| bus terminator ON at both ends | or CP 5613 A2 |
+----------------+ +----------------+
5.2 SIMATIC NET Configuration in the PC Station
- Open SIMATIC NET Commissioning Tool (part of the WinCC V5.1 ASIA install).
- Insert a new PC station and add the CP 5611 / CP 5613 module under Index 1.
- Set the PROFIBUS address on the CP to
1(the PC station). The S7-300 default is2. - Confirm the bus profile matches the S7-300 CPU. Use
Universal (DP/FMS)with187.5 kbit/sfor legacy wiring or1.5 Mbit/sfor new installations.
5.3 WinCC Variable Driver Setup
- In WinCC Explorer, open Tag Management > SIMATIC S7 PROTOCOL SUITE > PROFIBUS.
- Right-click PROFIBUS and select System Parameters. The default logical connection name is
PROFIBUS(1). - In Connection Properties, enter the S7-300 station address (
2), the rack (0), and the slot of the CPU (2for an S7-300). - Create the connection and verify with Status > Connection Status in WinCC Explorer.
5.4 STEP 7 Side - Enable PROFIBUS on the S7-300
- Open the STEP 7 project for the feeding system.
- In HW Config, double-click the CPU's DP/MPI port.
- On the Interface tab, select PROFIBUS and assign address
2. - On the Subnet tab, click New to create a PROFIBUS(1) subnet with the chosen transmission rate.
- Save and download the hardware configuration to the CPU.
5.5 MPI as a Fallback
If PROFIBUS cabling is not feasible, WinCC V5.1 can also communicate over MPI at 187.5 kbit/s using the same CP 5611 / CP 5613. In WinCC Tag Management, select SIMATIC S7 PROTOCOL SUITE > MPI instead of PROFIBUS, set the PC station address to 0, and the S7-300 MPI address remains 2. MPI is limited to a single master and a maximum of 32 nodes, which is acceptable for a single HMI station.
6. Verification Procedure
- Confirm WinCC Explorer opens the project with no COM error dialog.
- Activate the project (File > Activate) and observe WinCC Runtime startup; absence of
Channel DLL not loadedorConnection failuremessages indicates a healthy tag driver. - Open WinCC Tag Management > Diagnostics. Tag status should show
OKfor every external variable tied to the S7-300. - On the S7-300 side, observe the SF / BF LEDs. BF (bus fault) must be off; SF (system fault) must be off.
- Toggle a test bit in the S7-300 OB1 and confirm it reflects in the WinCC screen within one update cycle.
- Run the WinCC project for a full 30-minute burn-in to expose intermittent COM-storage access problems.
7. Troubleshooting Matrix
| Symptom | Likely Cause | Remediation |
|---|---|---|
| HRESULT 0x80030005 on project open | Insufficient NTFS rights on project folder | Promote user to Administrators group, reset NTFS ACLs |
| Login window rejects 001/001 | WinCC user-admin level disabled; default 001 is a Windows account | Open WinCC Explorer > User Administration > create WinCC user; or operate as Windows admin |
| WinCC Runtime shows "No connection to AS" | Wrong CP address, wrong CPU slot, PROFIBUS cable reversed | Check SIMATIC NET configuration, verify bus terminators, swap A/B cores |
| BF LED lit on S7-300 DP port | Bus short, missing terminator, duplicate station address | Power down, measure A-B resistance (~220 ohm), check station addresses |
| Tags show "#" / "Invalid value" | Wrong DB number / offset or bit-vs-byte mismatch | Cross-check STEP 7 symbol table against WinCC tag addresses |
| Chinese characters render as boxes | ASIA language pack not installed, regional settings wrong | Install WinCC V5.1 ASIA, set Windows locale to Chinese (PRC) |
| Re-imaged PC still errors | Image was deployed with the operator account intact | Re-image as Administrator, then promote the operator account separately |
8. Project Recovery if the .pdl Archive is Genuinely Damaged
In rare cases where the OLE compound document is actually corrupted (for example, the restore media is scratched or the operator pulled power during a write), recover the project using the following layered approach:
- Restore from the most recent WinCC project backup. By default WinCC V5.1 saves to
<Project>\<ProjectName>.bak\. - If no backup exists, request the machine builder's
*.zipexport that contains theGraCS\,Library\, andPAS\subfolders. - Re-create the project in WinCC Explorer: File > New Project, then File > Migrate Project if migrating from WinCC V5.0.
- Re-import pictures via Graphics Designer > File > Open from the recovered
GraCS\folder. - Re-link the S7-300 connection in Tag Management.
*.bak image is written every shutdown cycle.9. Hardening the PC After Commissioning
Once WinCC is operational, reduce the administrator privilege back to the operational level:
- Create a dedicated WinCC user
winccopas a member ofUsersonly. - Assign NTFS rights
Read,Write,Modifyon the project folder,Read & ExecuteonC:\SIEMENS\. - Disable auto-login and require the operator to log in with the restricted account.
- Enable the Windows 2000 / XP Do not display last user name policy to prevent password probing.
- Apply the latest WinCC V5.1 SP updates (Service Packs 5 and 6 are the last released for V5.x; refer to the official SIMATIC WinCC V5.1 ASIA Sales/Delivery Release notice for shipped media content).
10. Reference Tables
| Parameter | S7-300 | WinCC PC (CP 5611 / CP 5613) |
|---|---|---|
| PROFIBUS address | 2 | 1 |
| MPI address | 2 | 0 |
| Rack | 0 | - |
| Slot (CPU) | 2 | - |
| Bus profile | DP master | DP master class 1 (CP 5613) or DP slave (CP 5611) |
| Baud rate | 187.5 kbit/s ... 12 Mbit/s | 187.5 kbit/s ... 12 Mbit/s |
| Bus terminator | ON | ON |
| Cable type | PROFIBUS DP, 2-wire, shielded | Same |
| Component | Path | Purpose |
|---|---|---|
| WinCC Explorer | C:\SIEMENS\WinCC\bin\CCExplorer.exe | Project manager |
| Graphics Designer | C:\SIEMENS\WinCC\bin\PDLRT.exe | Picture editor |
| Tag Management | Inside WinCC Explorer | S7 tag import / configuration |
| User Administrator | Inside WinCC Explorer | WinCC-level (not Windows) rights |
| SIMATIC NET | C:\SIEMENS\SIMATIC.NET\ | CP configuration, PG/PC interface |
| Channel DLL | C:\SIEMENS\WinCC\bin\S7chns7x.dll | S7 driver for PROFIBUS / MPI / TCP |
11. FAQ
What does HRESULT 0x80030005 mean in WinCC V5.1?
HResult 0x80030005 is the COM structured-storage return code STG_E_ACCESSDENIED. WinCC V5.1 surfaces this code when the logged-on Windows user lacks read/write permission on the project folder or its OLE compound documents (typically *.pdl). It is a Windows security issue, not a project-file corruption issue.
Why does the vendor default username and password 001/001 not open the WinCC project?
The 001 / 001 pair is the Windows operating-system account, not the WinCC User Administrator credential. If the WinCC user table is empty (factory default), WinCC accepts any Windows login that has administrator rights on the project directory. Add the 001 account to the local Administrators group, then re-open the project.
Can I run WinCC V5.1 ASIA on Windows 10 or Windows 11?
No. WinCC V5.1 ASIA is certified for Windows 2000, Windows XP Professional, and Windows Server 2003 only. Newer operating systems break the COM structured-storage layer and the legacy SIMATIC NET PC drivers. For modern hardware, migrate to TIA Portal WinCC or WinCC Unified - see the official Siemens documentation for transferring a project with WinCC.
What baud rate should I use for PROFIBUS between an S7-300 and WinCC?
For legacy Chinese-built machinery, 187.5 kbit/s is the safe default and is supported by every S7-300 CPU. Use 1.5 Mbit/s for new wiring where both stations support it. The CP 5611 / CP 5613 PC card and the S7-300 DP port must be configured to the identical baud rate; mismatched rates cause BF (bus fault) without diagnostic text.
How do I transfer a WinCC project to a newer HMI panel via S7 routing?
Use S7 routing across two networks - for example, PROFINET on LAN 1 and PROFIBUS on LAN 2. Configure the S7 router in STEP 7 HW Config and enable the route in the WinCC transfer dialog. Siemens documents the procedure in detail at Transferring a project to an HMI panel using S7 routing.