WP8 app crashes with SEHException exception - windows-phone-8

Recently, my app often raise a crash when it starts, the below is its call stack:
{System.Runtime.InteropServices.SEHException: External component has thrown an exception.
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}
Do you know why, and where is the problem? Thank you!

Related

Error Validating SSIS Package When Attempting to Run in 32 Bit Mode Within SSMS

I have a SSIS package that is currently deployed to my SSISDB. This package is required to run in 32Bit mode and does fine when I change the '64BitRuntime' setting to false within SSDT.
My issue comes about when I try to run it in 32 bit mode after it has been deployed to my SSISDB. My error occurs at the following screen:
The accompanying error is as follows:
The path for 'ISServerExec.exe' cannot be found. The operation will now exit.
A .NET Framework error occurred during execution of user-defined routine or aggregate "validate_package_internal":
System.Data.SqlClient.SqlException: The path for 'ISServerExec.exe' cannot be found. The operation will now exit.
System.Data.SqlClient.SqlException:
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnectionSmi.EventSink.DispatchMessages(Boolean ignoreNonFatalMessages)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQuerySmi(Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteToPipe(SmiContext pipeContext)
at Microsoft.SqlServer.Server.SqlPipe.ExecuteAndSend(SqlCommand command)
at Microsoft.SqlServer.IntegrationServices.Server.ServerConnectionControl.RaiseError(SysMessageId messageId, SysMessageSeverity severity, Object[] args)
at Microsoft.SqlServer.IntegrationServices.Server.ServerApi.ValidatePackageInternal(SqlInt64 projectId, SqlInt64 package_id, SqlInt64 versionId, SqlInt64 validationId, SqlString targetEnvironment, SqlInt16 use32BitRuntime)
. (Microsoft SQL Server, Error: 27108)
How can I work through this issue? the only thing I'm finding through Google are how to mark the checkbox...
if you upgrade SQL recently, it may be issue with paths stored in ssisdb catalog. in my case, drop & create new catalog & deploy project, fixed Error 27108 while executing package from stored procedure.
hope it helps.

IN SSISDB not able to create new folder

While I'm creating a folder in Integration service catalog - SSISDB i'm getting an error as below,
TITLE: Microsoft SQL Server Management Studio
------------------------------
Operation 'Create' on object 'CatalogFolder[#Name='dev']' failed during execution. (Microsoft.SqlServer.Management.Sdk.Sfc)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&LinkId=20476
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
An error occurred in the Microsoft .NET Framework while trying to load assembly id 65536. The server may be running out of resources, or the assembly may not be trusted with PERMISSION_SET = EXTERNAL_ACCESS or UNSAFE. Run the query again, or check documentation to see how to solve the assembly trust issues. For more information about this error: 
System.IO.FileLoadException: Could not load file or assembly 'microsoft.sqlserver.integrationservices.server, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. An error relating to security occurred. (Exception from HRESULT: 0x8013150A)
System.IO.FileLoadException: 
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
Cannot find the folder 'dev' because it does not exist or you do not have sufficient permissions. (Microsoft SQL Server, Error: 10314)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=11.00.5058&EvtSrc=MSSQLServer&EvtID=10314&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
I have tried while Deploying the package in SSIS I'm getting the same error.
Why am I getting this error? Is there any way to create folder in SSISDB?
This error could occur when you change the database owner (db_owner) or the db was moved to another server. These are possible reasons.
Run this script and try again:
ALTER DATABASE SSISDB SET TRUSTWORTHY ON;

SSRS 2012 CustomReportItems: ReportServerException: Unable to read data from the transport connection: The connection was closed

I have implemented CustomReportItems in SSRS, it works fine in all scenarios while deployed on a reportserver except when it takes more than 2:15 minutes to save a report to pdf, amazing thing is if i render my report in designer mode i.e from visual studio it works fine even for those report which take more than 2 hours to render.
I have tried following things to fix the issue.
1) http://www.avyuktasolutions.com/blog/sql-server-reporting-services-timeout-settings/ Almost all timeouts in the mentioned link.
2) Thread abort exception is thrwon exactly after 2 min 15 sec.
Exception on Browser
Unable to read data from the transport connection: The connection was closed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IOException: Unable to read data from the transport connection: The connection was closed.]
System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) +1321
Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +649
Exception in Log
processing!ReportServer_0-2!212c!10/12/2015-19:03:50:: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: , Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at PVChartsCRI.PVCRI.DrawImage(CustomReportItem customReportItem)
at PVChartsCRI.PVCRI.EvaluateReportItemInstance(CustomReportItem cri)
at Microsoft.ReportingServices.OnDemandReportRendering.CustomReportItem.EvaluateGeneratedReportItemInstance()
--- End of inner exception stack trace ---;
library!ReportServer_0-2!212c!10/12/2015-19:03:51:: w WARN: Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
webserver!ReportServer_0-2!212c!10/12/2015-19:03:51:: e ERROR: Reporting Services error Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> Microsoft.ReportingServices.ReportProcessing.RenderingObjectModelException: An error has occurred during processing of the CustomReportItem 'PVCharts1' with the 'PVCharts' extension. ---> System.NullReferenceException: Object reference not set to an instance of an object.
library!ReportServer_0-2!212c!10/12/2015-19:03:51:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException: The request has been aborted., Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeException: An error occurred in the HTTP Runtime object for application domain ReportServer_MSSQLSERVER_0-2-130891320078579635. Most likely, the HTTP request contains an unsupported verb or invalid syntax. ---> System.Web.HttpException: Request timed out.
--- End of inner exception stack trace ---;
ui!ReportManager_0-1!22fc!10/12/2015-19:03:51:: i INFO: Unhandled exception: Microsoft.Reporting.WebForms.ReportServerException: Unable to read data from the transport connection: The connection was closed. ---> System.IO.IOException: Unable to read data from the transport connection: The connection was closed.
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
--- End of inner exception stack trace ---
at Microsoft.Reporting.WebForms.SoapReportExecutionService.ServerUrlRequest(AbortState abortState, String url, Stream outputStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.SoapReportExecutionService.Render(AbortState abortState, String reportPath, String executionId, String historyId, String format, XmlNodeList deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension)
at Microsoft.Reporting.WebForms.ServerModeSession.RenderReport(String format, Boolean allowInternalRenderers, String deviceInfo, NameValueCollection additionalParams, Boolean cacheSecondaryStreamsForHtml, String& mimeType, String& fileExtension)
at Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response)
at Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I solved this issue my self. Actually during execution of report i was writing log in bin folder. I don't know why but after around 2 minutes thread was aborted by the process. I simply changed the directory with out changing anything configuration. It is working fine now.

SQL Reporting Services, The request failed with HTTP status 404: Not Found

A .net application works at a server which SQL Server 2005 , now we relocate the application to the new server which is SQL Server 2008.
Below is the error when I try to get a report from application:
Server Error in '/Importal' Application.
The request failed with HTTP status 404: Not Found. Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code.
Exception Details: System.Net.WebException: The request failed with
HTTP status 404: Not Found.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace below.
Stack Trace:
[WebException: The request failed with HTTP status 404: Not Found.]
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
message, WebResponse response, Stream responseStream, Boolean
asyncCall) +431225
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) +204
Microsoft.SqlServer.ReportingServices2005.Execution.ReportExecutionService.LoadReport(String
Report, String HistoryID) +69
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String
Report, String HistoryID) +67
[MissingEndpointException: The attempt to connect to the report server
failed. Check your connection information and that the report server
is a compatible version.]
Microsoft.SqlServer.ReportingServices2005.Execution.MissingEndpointException.ThrowIfEndpointMissing(WebException
e) +4027725
Microsoft.SqlServer.ReportingServices2005.Execution.RSExecutionConnection.LoadReport(String
Report, String HistoryID) +107
Microsoft.Reporting.WebForms.ServerReport.GetExecutionInfo() +121
Microsoft.Reporting.WebForms.ServerReport.SetParameters(IEnumerable`1
parameters) +67 ImportPerformanceKPI.btnList_Click(Object sender,
EventArgs e) +425
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+36 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1565
You will need to configure Reporting Services on your new SQL Server if it's not configured.
You've probably done that.
Inside the error, we have:
[MissingEndpointException: The attempt to connect to the report server failed. Check your connection information and that the report server is a compatible version. ]
Next make sure that your application is pointed at the new instance of SQL Server (it was looking for a 2005 instance). And then check that your application will work with SSRS 2008.

.net application with mysql db error

This application was working fine in an earlier server and when we ported it to a new server we are getting this issue. What could be the real issue behind this error ? kindly suggest
The error that we get is as follows :
Server Error in '/' Application.
Stream does not support writing.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.NotSupportedException: Stream does not support writing.
Source Error:
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:
1. Add a "Debug=true" directive at the top of the file that generated the error. Example:
<%# Page Language="C#" Debug="true" %>
or:
2) Add the following section to the configuration file of your application:
<configuration>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>
Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.
Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
Stack Trace:
[NotSupportedException: Stream does not support writing.]
System.IO.__Error.WriteNotSupported() +56
System.IO.BufferedStream.WriteByte(Byte value) +43
MySql.Data.MySqlClient.PacketWriter.FlushBuffer() +112
MySql.Data.MySqlClient.PacketWriter.Flush() +68
MySql.Data.MySqlClient.NativeDriver.Authenticate411() +140
MySql.Data.MySqlClient.NativeDriver.Authenticate() +68
MySql.Data.MySqlClient.NativeDriver.Reset() +45
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +207
MySql.Data.MySqlClient.MySqlPool.GetConnection() +52
MySql.Data.MySqlClient.MySqlPoolManager.GetConnection(MySqlConnectionString settings) +228
MySql.Data.MySqlClient.MySqlConnection.Open() +152
RemoteDB.OpenRemoteDataConnection() +156
RemoteDB.RemoteRecordFound(String tblname, String fldname, String txt, String SCond) +14
admin_Default.btnLogin_Click(Object sender, EventArgs e) +97
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5456
Appreciate your kind help in resolving this issue. This application is built on mysql db and asp.net version used for this site is 2.0
regards
venkat