Recently, I have been working on a Silverlight + ASP.NET project. After the adoption of Sprint2, I found that my solution could not load Silverlight applications properly after Branch introduced the new Sprint3. The display error is:
Line: 56
Error: Unhandled Error in Silverlight Application
Code: 2104
Category: InitializeError
Message: Could not download the Silverlight Application.check Web Server Settings
It’s strange that the same Solution loaded and ran well the last time. Check the MIME type Settings for IIS following the online prompts and find definitions for.xAP,.xAML, and.xBAP. So why is that?I stumbled upon the fact that in Silverlight Web projects, the default location for the compiled.xAP ClientBin directory is empty, which means there are no source objects needed for the Siliverlight control. Suddenly, there would be an error initializing Silverlight objects without a.xAP file.
Solution: Right-click a Web Project and select Project Denpendents, and in the dialog that opens, place the Silverlight Project as a dependent on the Web Project, so that each time it is compiled, the Silverlight Project is first compiled and the.xAP file is copied to the Web Project’s ClientBin(default) directory:
Of course, for some environments that haven’t run Silverlight projects, try adding MIME types first.
Read More:
- The remote server returned an error: notfound when Silverlight calls WCF service
- Bug: unable to download source code in idea, error cannot download sources sources not found for:XXX
- Keil prompts the stlink download program to prompt error: Flash download failed – target DLL has been cancelled
- NPM modify download dependency (modify global download and cache path)
- Springmvc Content type ‘application/json‘ not supported
- Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable.
- Workaround: windowserror: [error 193]% 1 is not a valid Win32 Application
- Solution windowserror: [error 193]% 1 is not a valid Win32 Application
- ImportError: ‘DLL load failed: %1 is not a valid Win32 application.
- CreateProcess error=193, %1 is not a valid Win32 application
- This application failed to start because it could not find or load the QT platform
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- The jar package download of Maven project appears (could not transfer artifact. Org mybatis:mybatis )
- This application failed to start because it could not find or load the Qt platform plugin “windows”.
- Access restriction: the type ‘application’ is not API (restriction on required LIB)
- Error running ‘application’: command line is too long. Short command line for application
- Importerror: DLL load failed while importing win32gui: 1 is not a valid Win32 Application.
- After windows VM is installed successfully, it is always prompted that this application may not work properly
- Notes on flex RSL application
- Apple computer download file automatically with suffix problem solving