- I've created a custom .ashx file called it SyncExcelToList.ashx.
- The assembly is GACed and does show up fine in C:\windows\assembly
- The ashx file does show up in the proper place within the 12 hive
- I'm using WSPBuilder
Is there a web.config entry that needs to be made that allows for this ashx file?
File Not Found. at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at System.Web.UI.SimpleWebHandlerParser.ProcessDirective(String directiveName, IDictionary directive) at System.Web.UI.SimpleWebHandlerParser.ParseString(String text) at System.Web.UI.SimpleWebHandlerParser.ParseReader()
UPDATE: I have not solved issue yet. I've added manual entries to both SafeControls and node in the web.config. No help.
I've also troubleshot with the Fusion Assembly Binding Log Viewer. It seems like it's loading okay. here is the output i see:
*** Assembly Binder Log Entry (1/11/2011 @ 11:40:09 AM) *** The operation was successful. Bind result: hr = 0x0. The operation completed successfully. Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable c:\windows\system32\inetsrv\w3wp.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = ****** LOG: DisplayName = ****.GlobalContent.Sync, Version=126.96.36.199, Culture=neutral, PublicKeyToken=bc1cbc87d9829012 (Fully-specified) LOG: Appbase = file:///E:/Websites/wss/VirtualDirectories/27307/ LOG: Initial PrivatePath = E:\Websites\wss\VirtualDirectories\27307\bin LOG: Dynamic Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b12ddeed LOG: Cache Base = C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\b12ddeed LOG: AppName = d649a281 Calling assembly : (Unknown). === LOG: This bind starts in default load context. LOG: Using application configuration file: E:\Websites\wss\VirtualDirectories\27307\web.config LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework\v2.0.50727\Aspnet.config LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config. LOG: Post-policy reference: ****.GlobalContent.Sync, Version=188.8.131.52, Culture=neutral, PublicKeyToken=bc1cbc87d9829012 LOG: Found assembly by looking in the GAC. LOG: Binding succeeds. Returns assembly from C:\Windows\assembly\GAC_32\****.GlobalContent.Sync\184.108.40.206__bc1cbc87d9829012\****.GlobalContent.Sync.dll. LOG: Assembly is loaded in default load context.
I created a blog post, so hopefully my troubleshooting steps can help someone else out there trying to debug this issue: