We report on the use of one-dimensional photonic crystals to detect clinically relevant concentrations of the cancer biomarker ERBB2 in cell lysates. Overexpression of the ERBB2 protein is associated with aggressive breast cancer subtypes. To detect soluble ERBB2, we developed an optical set-up which operates in both label-free and fluorescence modes. The detection approach makes use of a sandwich assay, in which the one-dimensional photonic crystals sustaining Bloch surface waves are modified with monoclonal antibodies, in order to guarantee high specificity during the biological recognition. We present the results of exemplary protein G based label-free assays in complex biological matrices, reaching an estimated limit of detection of 0.5 ng/mL. On-chip and chip-to-chip variability of the results is addressed too, providing repeatability rates. Moreover, results on fluorescence operation demonstrate the capability to perform high sensitive cancer biomarker assays reaching a resolution of 0.6 ng/mL, without protein G assistance. The resolution obtained in both modes meets international guidelines and recommendations (15 ng/mL) for ERBB2 quantification assays, providing an alternative tool to phenotype and diagnose molecular cancer subtypes.