Error in Silverlight app with RadSpreadsheet control - c#

I am writing a Silverlight app with Telerik Radspreadsheet Control. It runs correctly on Windows 7 and 8 in Firefox, Google Chrome, Opera and IE 9, but some of my clients can not load it on Windows XP in IE 8, and receive this error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Timestamp: Thu, 16 May 2013 13:21:38 UTC
Message: Unhandled Error in Silverlight Application [Parser_CreateInstance_ConstructorInvocation]
Arguments: Telerik.Windows.Controls.RadSpreadsheet
Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/? linkid=106663&Version=5.1.20125.0&File=System.Windows.dll&Key=Parser_CreateInstance_Constru ctorInvocation [Line: 47 Position: 40] at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at ECOBox2012WebPanel.DataPage.InitializeComponent()
at ECOBox2012WebPanel.DataPage..ctor()
at ECOBox2012WebPanel.MainPage..ctor()
at ECOBox2012WebPanel.App.Application_Startup(Object sender, StartupEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
Line: 1
Char: 1
Code: 0
URI: http://ecobox2012web.say-co.com/default.html

Indeed there was an issue that RadSpreadsheet control does not load under Windows XP.
As a member of the team responsible for developing the component, I can confirm that it has already been fixed, so upgrading to the latest official version should solve the problem.

Related

Can´t open my c# app on some Windows 7 computers

I´m receiving the following logs from the system events. I have no idea why this only happens on some machines:
Level: Information; Source: Windows Error Reporting
Detail: 756021398 30 CLR20r3 Not available 0 DayZ Ambient Launcher.exe 1.0.0.0 59d3d3b2 System.Windows.Forms 4.7.2558.0 59d4145b 63d 36 PSZQOADHX1U5ZAHBHOHGHLDGIY4QIXHX
C:\Users\kevo1414\AppData\Local\Temp\WERAA52.tmp.WERInternalMetadata.xml C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_DayZ Ambient Lau_4e74decfa163bcb1cc9a3fc7dd961b8b6b975b8_108bafbf
0 093ea276-bf39-11e7-b709-902b345e4b59 0
Level: Error Source: Application Error
Detail:
DayZ Ambient Launcher.exe 1.0.0.0 59d3d3b2 KERNELBASE.dll 6.1.7601.23915 59b94abb e0434352 0000c54f 1498 01d35345cae21649 C:\Users\kevo1414\Downloads\DayZ Ambient Launcher 1.1 [eXWoLL,Cobblest0ne]\DayZ Ambient Launcher.exe C:\Windows\syswow64\KERNELBASE.dll 093ea276-bf39-11e7-b709-902b345e4b59
Level: Error Source: .NET Runtime
Detail:
Application: DayZ Ambient Launcher.exe Framework Version: v4.0.30319 >Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.COMException at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(System.Guid ByRef, System.Object, Int32, System.Guid ByRef) at System.Windows.Forms.AxHost.CreateWithLicense(System.String, System.Guid) at System.Windows.Forms.AxHost.CreateInstanceCore(System.Guid) at System.Windows.Forms.AxHost.CreateInstance() at System.Windows.Forms.AxHost.GetOcxCreate() at System.Windows.Forms.AxHost.TransitionUpTo(Int32) at System.Windows.Forms.AxHost.CreateHandle() at System.Windows.Forms.Control.CreateControl(Boolean) at System.Windows.Forms.Control.CreateControl(Boolean) at System.Windows.Forms.AxHost.EndInit() at dayz64.Form1.InitializeComponent() at dayz64.Form1..ctor() at dayz64.Program.Main()
There are two possible causes that I can see: operating system mismatch, or .NET installation mismatch.
Windows 7 was around right when x64 was being introduced, so there are some installations that either use x32 or x64, and going between them can result in issues if you don't install the right version of the application.
If you're going to run this application on a Windows 7 computer, then open the Start Menu, right click on Computer, and click on properties. You can see the specs of the operating system you're running from there.
The second possible issue is a .NET installation issue - maybe you have an outdated version of .NET installed, or the application relies on a legacy version of .NET and can't run on the newer frameworks, in which case you would need to look up the specifications of the product and the version you're using.
Hope this helped!

SignalR not working in IE8

I am working on SignalR. Everything working fine in all browser except IE8.
Here is my code.
<script src="~/Scripts/jquery.signalR-2.2.0.min.js"></script>
<script src="../../signalr/hubs"></script>
$(document).ready(function () {
var templateId = '#Model.TemplateId';
var importNotifier = $.connection.runImport;
importNotifier.client.sendMessage = function (data) {
UpdateChart(data);
};
$.connection.hub.start().done(init);
function init() {
importNotifier.server.import(templateId, $("#hdnServerName").val(), '#ViewBag.ServerUserName', '#ViewBag.ServerPassword', '#ViewBag.AuthenticationType', '#ViewBag.DatabaseName');
}
});
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1;
Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
3.0.30729; .NET4.0C; .NET4.0E; InfoPath.3) Timestamp: Tue, 22 Sep 2015 07:39:12 UTC
Message: Expected identifier, string or number Line: 88 Char: 13 Code:
0 URI: http://localhost:8092/signalr/hubs
Message: Expected identifier Line: 279 Char: 39 Code: 0 URI:
http://localhost:8092/Graph/Graph/?TemplateId=27&IsUse=0
I am not able to understand why it is not working.
I tried to insert http://localhost:8092/signalr/hubs to browser and its allow me to download.
I websockets are not supported in IE8. First version that works with websockets is IE10.
Here's a list of browsers that support(or not) websockets: http://caniuse.com/#feat=websockets
I finally resolved issue.I follow following steps
uninstall all packages which is required for SignalR.
Install again required packages.
I follow this step. because I was in impression that may there was some dependency issue.
Then also my code was not working
finally I change my method name "Import" to "InsertingData"
and its working now.
So I can not conclude here that only name creates any problem (may be import is keyword in ie8) or there is some issue with dependency also.

C# System.BadImageFormatException for 32bit - 64bit

I'm working with an application that uses 2 library, the first is stored outside of my project under c:\windows\system32 folder and it is used with:
[DllImport("FWLIB32.dll", EntryPoint="cnc_settimeout")]
public static extern short cnc_settimeout( ushort FlibHndl, int a );
The second one is imported in the Project references.
I need to use both of them, but if I config Visual studio to compile it with platform: "Any CPU" (and prefer 32bit) the first works and the second doesn't work, id I set platform x86 the second works but not the first.
In both cases it is thrown System.BadImageFormatException.
How to work with both dll? Is it possibile?
This is the first dll details:
PE details
Date compiled: Thu, July 21, 2011, 10:19:34 PM
Linker version: 6.0
Machine type: Intel 386 or later processors and compatible processors
PE format: PE32
Characteristics: Dynamic-link library
DLL Characteristics: None
Subsystem: The Windows graphical user interface (GUI) subsystem
Min OS: Windows 95
Min OS version: 4.0
Subsystem version: 4.0
File version: 0.0
Manifest: No
Images: No
Icons: No
Dialogs: Unknown (Not implemented)
String tables: Unknown (Not implemented)
Accelerators: Unknown (Not implemented)
Cursors: Unknown (Not implemented)
Menu: Unknown (Not implemented)
More details
designedFor: 32-bit Windows
typeOfFile: DLL
fileVersion: 5.9.0.1
productVersion: 5.9.0.1
Comments: DCompanyName
CompanyName: FANUC CORPORATION
FileDescription: Data Window Library for Win32
FileVersion: 5, 9, 0, 1
InternalName: Fwlib32
LegalCopyright: Copyright (C) 1996-2011 FANUC CORPORATION
LegalTrademarks: #OriginalFilename
OriginalFilename: Fwlib32.dll
PrivateBuild: TProductName
ProductName: FANUC Data Window Library
This is the second one details:
PE details
Date compiled: Fri, December 7, 2012, 9:25:47 AM
Linker version: 10.0
Machine type: x64
PE format: PE32+
Characteristics: Application can handle > 2GB addresses (Large address aware); Dynamic-link library
DLL Characteristics: Image is NX compatible (No eXecute)
Subsystem: The Windows graphical user interface (GUI) subsystem
Min OS: Windows XP 64-Bit Edition / Windows Server 2003 / Windows Server 2003 R2
Min OS version: 5.2
Subsystem version: 5.2
File version: 0.0
Manifest: Yes (406 bytes)
Images: No
Icons: Yes (2 icons)
Dialogs: Unknown (Not implemented)
String tables: Unknown (Not implemented)
Accelerators: Unknown (Not implemented)
Cursors: Unknown (Not implemented)
Menu: Unknown (Not implemented)
More details
designedFor: 32-bit Windows on Windows NT
typeOfFile: DLL
fileVersion: 4.0.0.0
productVersion: 4.0.0.0
CompanyName: Siemens
FileDescription: Rpc Sinumerik Assembly
FileVersion: 4.0.0.0
InternalName: Siemens.Sinumerik.Rpc.dll
LegalCopyright: Copyright (C) 2012
OriginalFilename: RpcSinum.dll
For me are both 32bit... but Why the first one works only with "Any CPU" option?

Manifest may not be valid or the file could not be opened.

I know it is a very commonly faced problem. But, there is a slight difference, my WPF installs perfectly and runs on Windows 7 and Windows 8 OSes. But, when tried to install on a VM running Windows XP, it gives the following Error:
Cannot continue. The application is improperly formatted. Details:
PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 4.0.30319.1
System.Deployment.dll : 4.0.30319.1 (RTMRel.030319-0100)
clr.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfdll.dll : 4.0.30319.1 (RTMRel.030319-0100)
dfshim.dll : 4.0.31106.0 (Main.031106-0000)
SOURCES
Deployment url : file:///S:/K3FrontEnd_NET4/Karacell3.application
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of S:\K3FrontEnd_NET4\Karacell3.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest from file:///S:/K3FrontEnd_NET4/Karacell3.application: the manifest may not be valid or the file could not be opened.
+ Manifest XML signature is not valid.
+ SignatureDescription could not be created for the signature algorithm supplied.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [4/3/2013 2:58:13 PM] : Activation of S:\K3FrontEnd_NET4\Karacell3.application has started.
ERROR DETAILS
Following errors were detected during this operation.
* [4/3/2013 2:58:14 PM] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from file:///S:/K3FrontEnd_NET4/Karacell3.application: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Deployment.Application.InvalidDeploymentException (SignatureValidation)
- Manifest XML signature is not valid.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
--- Inner Exception ---
System.Security.Cryptography.CryptographicException
- SignatureDescription could not be created for the signature algorithm supplied.
- Source: System.Security
- Stack trace:
at System.Security.Cryptography.Xml.SignedXml.CheckSignedInfo(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignature(AsymmetricAlgorithm key)
at System.Security.Cryptography.Xml.SignedXml.CheckSignatureReturningKey(AsymmetricAlgorithm& signingKey)
at System.Deployment.Internal.CodeSigning.SignedCmiManifest.Verify(CmiManifestVerifyFlags verifyFlags)
at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
I re-signed the application with a valid key
I have installed on multiple PCs and it installs and works fine.
Please help me enumerate possible cause of this error.
I was able to solve my issue by removing the signing of the manifest.If you right-click your project and go to properties then to the Signing Tab; uncheck the Sign the ClickOnce manifests and Sign the assembly.
I'm not sure what this does in terms of security but my app installed after I removed these options.
I had the same issue and it was just the machine didn't have the appropriate .Net version.
I found the reason. It was MIME type issue in server setting.
So, please add .htaccess file in FTP root directory.
And write this in it.
AddType application/microsoftpatch .msp
AddType application/microsoftupdate .msu
AddType application/x-ms-application .application
AddType application/x-ms-application .manifest
AddType application/octet stream .deploy
AddType application/x-ms-vsto .vsto
It works perfectly for me.
I have seen a similar issue before where a particular WIndows OS could not 'understand' or validate the results of a certificate hash due to missing crypto providers, in my particular case it was related to using a X509 certificate generated using a v3 template for the clickonce signing.
SignatureDescription could not be created for the signature algorithm supplied
The highlighted part of the message combined with the successful installation on several machines before failing on the WinXP machine would indicate that you are also running into a similar problem - WinXP doesn't know about the crypto algorithmn specified in the certificate that you've used to sign the clickonce.
I don't know of a good solution to this, normal advice you will find on the internet is to use a v2 template to generate the X509 instead of a v3 template, but this is not necessarily a good solution and is beyond the capabilities of most organisations (espcecially as most people use a bought certificate rather than certs generated from their own Certificate Authority).
Do you have SP-3 installed on the windows XP machine, and all of the available Windows Updates? Microsoft pushes out updates to the code around certificates, and the trusted publishers and other related info periodically.
It's because your developer machine had .NET 4.5 installed, while your client machines only had .NET 4.0 installed. The .NET 4.0 client machines can't read the manifest, as they expect SHA-1, while the .NET 4.5 developer machines can.
Commenting out the vista entry in app.manifest worked for me
<application>
<!-- A list of all Windows versions that this application is designed to work with.
Windows will automatically select the most compatible environment.-->
<!-- If your application is designed to work with Windows Vista, uncomment the following supportedOS node-->
<!--<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"></supportedOS>-->
<!-- If your application is designed to work with Windows 7, uncomment the following supportedOS node-->
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
<!-- If your application is designed to work with Windows 8, uncomment the following supportedOS node-->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"></supportedOS>
<!--The ID below indicates application support for Windows 8.1 -->
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
<!--The ID below indicates application support for Windows 10 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
</application>
I had the same issue for a WinForms app that was built with Visual Studio 2012 and deployed on an XP machine with all the critical updates (SP3 installed and Windows Installer 4.5). I too had to change my application to be unsigned by going to the [Signing] tab on the Properties page of my project. I unchecked both:
[Sign the Click One manifests] and [Sign the assembly]. The same application installed fine on Windows 7 machines with the signing enabled.
I had similar issue, almost the same. I solved an issue by removing .dll that are not in root of application files.
Visual studio 2019:
Right click on project name - Properties - Publish - Application files.
Like in this article:
https://social.msdn.microsoft.com/Forums/en-US/3d0c4382-9b48-4d28-9b79-25607e668074/problem-with-installing-clickonce-after-adding-reportviewercontrol-14-to-the-project?forum=winformssetup

asp.net UpdatePanel, (there is also telerik) error

I have asp.net 2.0 web application. On my production server I "randlomly" cant reproduce the path error on my page which uses UpdatePanel and RadComboBox telerik control:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.2; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Mon, 14 Nov 2011 10:37:17 UTC
Message: Sys.ScriptLoadFailedException: The script 'http://www.mySite.com/ScriptResource.axd?d=K-bZ_cYro-TWH0gbbmdTlkin59eWVsDQYopNlGtfNYd9aZQqi22u0d_A5dwpqMXbaJR99E08UDAgSF7tPCaP0mpZH35-uv4YYRWnSX0mxLsZPGu-58i2Nrmb8UHNokeftpIW9wTPOvZOJJq4cLYfu3iV8EQ1&t=634475972033675436' could not be loaded.
Line: 5
Char: 36564
Code: 0
URI: http://www.mySite.com/ScriptResource.axd?d=qLp9xu4UQDU3wBn-LSS2bLlqFvY6K78U8bVN8Ado2bzP7ytCoarS92INypIVz4z3TbmYil4Bsu_vW_InD5PMZRw-1WJbZIeVuS8TpTL23g_GrfQ29YBzoTaZWO2T3kxiSZPDfk0zqFyT9qKbsPGSfNc4kjnqG509cXg82kYxOpPDJjpf0&t=634532699342719389
Do You know any cause for this error ? Thanks for help in advance.
I had a similar problem with a stylesheet missing. I added:
string sRequestUrl = Request.Url.ToString();
To my error message to get it to output the file in question. Is this a case of you having a script manager which is consolidating (minifying) stylesheets and JavaScript files into one and you are losing the Request Url in the .axd? If you do turn off the consolidation (minification) and you should get the exact file from the Request Url.
If that is the problem.

Categories

Resources