Dengue virus (DENV) nonstructural protein 4B (NS4B) is an endoplasmic reticulum (ER) membrane-associated protein, and mutagenesis studies have revealed its significance in viral genome replication. In this work, we demonstrated that NS4B is an N-glycosylated protein in virus-infected cells as well as in recombinant protein expression. NS4B is N glycosylated at residues 58 and 62 and exists in two forms, glycosylated and unglycosylated. We manipulated full-length infectious RNA clones and subgenomic replicons to generate N58Q, N62Q, and N58QN62Q mutants. Each of the single mutants had distinct effects, but the N58QN62Q mutation resulted in dramatic reduction of viral production efficiency without affecting secretion or infectivity of the virion in mammalian and mosquito C6/36 hosts. Real-time quantitative PCR (qPCR), subgenomic replicon, and trans-complementation assays indicated that the N58QN62Q mutation affected RNA replication possibly by the loss of glycans. In addition, four intragenic mutations (S59Y, S59F, T66A, and A137T) were obtained from mammalian and/or mosquito C6/36 cell culture systems. All of these second-site mutations compensated for the replication defect of the N58QN62Q mutant without creating novel glycosylation sites. In vivo protein stability analyses revealed that the N58QN62Q mutation alone or plus a compensatory mutation did not affect the stability of NS4B. Overall, our findings indicated that mutation of putative N-glycosylation sites affected the biological function of NS4B in the viral replication complex.