title: Asp.NET ReportViewer :: PDF Export = System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied
body: <p>I am using the ReportViewer over asp.net pages on a web hosting service. </p>
  
  <p>All export works okay when I test the report on my local machine and in Visual Studio.  After I FTP the web application to the remote web host the report still works but only the Excel and Word exports properly.  The export to PDF or Word generates the error</p>
  
  <p><strong>System.DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied</strong></p>
  
  <pre><code>[DllNotFoundException: Unable to load DLL 'T2Embed': Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))]
     Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.TTGetEmbeddingType(Win32DCSafeHandle hdc, UInt32&amp; status) +0
     Microsoft.ReportingServices.Rendering.ImageRenderer.FontPackage.CheckEmbeddingRights(Win32DCSafeHandle hdc) +21
     Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.ProcessFontForFontEmbedding(PDFFont pdfFont, Dictionary`2 embeddedFonts) +462
     Microsoft.ReportingServices.Rendering.ImageRenderer.PDFWriter.EndReport() +208
     Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render(Report report, NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream createAndRegisterStream) +757
     Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable&amp; renderProperties, CreateAndRegisterStream createAndRegisterStream) +61
  
  [LocalProcessingException: An error occurred during local report processing.]
     Microsoft.Reporting.WebForms.LocalReport.InternalRender(String format, Boolean allowInternalRenderers, String deviceInfo, PageCountMode pageCountMode, CreateAndRegisterStream createStreamCallback, Warning[]&amp; warnings) +167
     Microsoft.Reporting.WebForms.LocalModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String&amp; mimeType, String&amp; fileNameExtension) +193
     Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +154
     Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +240
     System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +341
     System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +69
  </code></pre>
  
  <p>Any clues?</p>