You are viewing limited content. For full access, please sign in.

Question

Question

pdfexporter not registered in the GAC?

SDK
asked on February 3, 2015

I have a client who is having issues with re-installing a web aspx custom program. 

 

They are having issues finding PdfExporter90. They had to resintall .net4 and web access do to a seperate issue, now that it's reinstalled the aspx files when executing cannot find PDFexporter.

 

PdfExport90 is listed in the GAC under c:\windows\assembly\GAC_MSIL. However they get the following error when executing:

 

Event code: 3006 
Event message: A parser error has occurred. 
Event time: 2/3/2015 8:56:26 AM 
Event time (UTC): 2/3/2015 2:56:26 PM 
Event ID: 388504331ff84c7da0ccb9fb5fbec1fc 
Event sequence: 4 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT/Laserfiche-1-130674489852216189 
    Trust level: Full 
    Application Virtual Path: /Laserfiche 
    Application Path: C:\Program Files\Laserfiche\Web Access\Web Files\ 
    Machine name: CUSTOMERSERVER 
 
Process information: 
    Process ID: 3220 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: HttpParseException 
    Exception message: Could not load file or assembly 'PdfExporter90' or one of its dependencies. The system cannot find the file specified.
   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

Could not load file or assembly 'PdfExporter90' or one of its dependencies. The system cannot find the file specified.
   at System.Web.UI.TemplateParser.ProcessException(Exception ex)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)

Could not load file or assembly 'PdfExporter90' or one of its dependencies. The system cannot find the file specified.
   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.Web.Configuration.CompilationSection.LoadAssembly(String assemblyName, Boolean throwOnFail)
   at System.Web.UI.TemplateParser.AddAssemblyDependency(String assemblyName, Boolean addDependentAssemblies)
   at System.Web.UI.TemplateParser.ProcessDirective(String directiveName, IDictionary directive)
   at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)

 
 
Request information: 
    Request URL: http://192.168.100.25/laserfiche/lf_doc.aspx?id=20450213&page=all 
    Request path: /laserfiche/lf_doc.aspx 
    User host address: 192.168.100.81 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: CUSTOMERSERVER\laserfiche 
 
Thread information: 
    Thread ID: 7 
    Thread account name: CUSTOMERSERVER\laserfiche 
    Is impersonating: False 
    Stack trace:    at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
   at System.Web.UI.TemplateParser.ParseFile(String physicalPath, VirtualPath virtualPath)
   at System.Web.UI.TemplateParser.Parse()
   at System.Web.Compilation.BaseTemplateBuildProvider.get_CodeCompilerType()
   at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider)
   at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders()
   at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
   at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

 

0 0

Replies

replied on February 3, 2015

Is your web application installing PDFexporter90 or was it relying on Web Access to do it? What version of Web Access do you have installed?

0 0
replied on February 3, 2015

The aspx file is installed in the web access directory. The top of the aspx file has:

<%@ Language="VBScript" debug="true" %>
<%@ Assembly Name="PdfExporter90" %>
<%@ Import Namespace="System.IO" %>

 

This is where it fails. We changed the assembly name to a import namespace pdfexporter and it fails later in the program when it actually tries to use it. 

 

0 0
replied on February 3, 2015

it's web access 9 btw

0 0
replied on February 3, 2015 Show version history

We found the issue. We needed to put the PdfExporter90 under the /bin directory

 

However we are atually back to square one on this, but have made progress (maybe square 1.5?)

 

Web Access is crashing whenever this program is crashing, and web access needs to be reset using iisreset. In the interim, the developer trying to work with this program (not the original developer, who is no longer with that company) is going to try to put some additional traps inside the program to make sure anything referenced is actually there so that this vbscript won't crash everything. 

 

 

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.