Loading C++ Assemblies in ASP.Net

When you reference a Native C++ assembly from ASP.Net you may run into the following error: System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E) [FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)]System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef,…

14

Referencing .js files for the AJAX Control Toolkit

I was recently working with someone that was leveraging the AJAX Extension and the Control Toolkit and they were running into an issue where a customer’s environment was causing issues making requests to ScriptResource.axd.  Since they couldn’t change the environment, they needed to reference the .js files directly.  Here’s a rundown of the steps in…

1

JavaScript errors occur…only when the script is in a .js file

This was tricky to track down and hopefully the troubleshooting information will help you should you run into this type of error and can’t track it down.  SymptomWhen browsing a web application you receive the following JavaScript errors. JavaScript errors:Error 1:Syntax Error  Error 2: Object expected If using 3rd party ASP.Net controls, you may see errors…

1

Fix: Random FileNotFoundException in ASP.Net 2.0 application

Issue  –  Random FileNotFoundException when browsing ASP.Net 2.0 application.  An event similar to the following will be logged in the event viewer.  The file name in the exception is typically different every time: Exception message: Could not load file or assembly ‘App_Web_-a8debde, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the…

4

Getting real-time updates from remote process using the AJAX Extension

This sample was a result of an idea from Kent Post at Akamai.  He was wanting to be able to launch a process on a remote server and get real-time updates in the browser.  In this case, we focused on running WinPE scripts to build ISO’s on the server.  The WinPE scripts can take a long…

0

Viewstate error in mobile ASP.NET app

This is my third mobile post this week!  This one was tricky to track down so hopefully this will save someone some time.  The symptom you see is that users get the following exception.  If you’re using ASP.NET 2.0, we would log this to the Event Viewer by default thanks to Web Events: Exception of…

0

Determining what capabilities ASP.NET is using to render pages

When you make a request to an ASP.NET based site, the browser’s capabilities are determined by the <browserCaps> section in the 1.x Framework and the .browser files in the 2.0 framework.  Knowing which capabilites that ASP.NET is using to render the page can be especially important in mobile applications.  You can use the following page…

2

Mobile ASP.NET Emulators

When developing Mobile ASP.NET apps, it is useful to test the application across a variety of devices if the site is going to be posted to the internet.  ASP.NET Mobile controls rely on adapters to handle rendering on the different devices.  In order to hit the different adapters to ensure your page will work across…

1