Article TranslationsEnglish,
Français,
Deutsch,
Italiano,
한국어,
繁體中文,
简体中文,
日本語,
Русский,
Português (Brasil) DescriptionA Hotfix is a product update package with one or more updated product files that fix a specific product problem.
IMPORTANT NOTE Please be aware this Hotfix has not gone through full Microsoft product regression testing nor has it been tested in combination with other Hotfixes.
Please carefully review the associated Hotfix KB article to verify the fix is the one needed and there are no known compatibility or installation issues. You may also want to contact a Microsoft Support Professional at
http://support.microsoft.com Issue Description KB915782 FIX:You may receive an InvalidCastException error in an ASP.NET-connected Web application
SYMPTOMSYou may receive an InvalidCastException error in a Microsoft ASP.NET-connected Web application when the following conditions are true: • The Web application uses a master page, a user control, or pages that reference each other.
• The master page, the user control, or the pages are batch compiled into a single assembly.
• One of the batched dependencies is changed and causes a recompilation.
• A dynamic call to load a reference is made, such as a call to the LoadControl method.
In this case, you may receive an error message that resembles the following:
Unable to cast object of type 'ASP.type' to type 'ASP.type'.
Note In this error message, type is a placeholder for one of the batch compiled types.
You may also receive an error message that resembles the following:
Could not load file or assembly 'App
Webxxxxxxxx, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Additional Information about the issue resolved by this Hotfix can be found in its Knowledge Base article at http://support.microsoft.com/kb/915782 Additional HotfixesSearch the list of all other publicly available Visual Studio and .NET Framework Hotfixes at
http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=Hotfix&ProjectSearchText=Hotfix*