CrystalReports  'System.InvalidCastException' occurred

Hi Team, I'm getting the below error. Can some one please assist me on this? I'm using Windows 2012 R2 server and CrystalReport Runtime 13.0.x version installed on the server. Application built on Any CPU using VisualStudio 2010 Error Message: HandlingInstanceID: c68a0e37-5eb5-4cb5-9587-6d6030b79b48  An exception of type 'System.InvalidCastException' occurred and was caught.  ---------------------------------------------------------------------------  01/13/2015 16:26:11  Type : System.InvalidCastException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089  Message : Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.

Hi Don,
I gave this a try and I got the same results I was getting before the change the ExportToStream is returning a object of type FileStreamDeleteOnclose instead of an object of type IO.Stream.
You have what I had before already, but here is what I changed it to in order to do what the developer asked:
Protected Friend Function GetPDF(ByVal genColsolidatedPDF As String) As IO.
Stream
Dim exportStream As System.IO.Stream = GenerateReport(genColsolidatedPDF).ExportToStream(ExportFormatType
.PortableDocFormat)
Using fileStream As New IO.FileStream(expPath, System.IO.FileMode.Create, System.IO.FileAccess
.Write)exportStream.CopyTo(fileStream)fileStream.Dispose()
exportStream.Close()
Return
exportStream
End Function
Private Function GenerateReport(ByVal genConsolPDF As String) As
ReportDocument
Dim connInfo As New
ConnectionInfo
Dim databaseLoginInfo As New
TableLogOnInfos
Dim reportDoc As New
ReportDocument
Dim tableSet As
Tables
'reportDoc = New ActiveSignatures 
reportDoc.Load(rptPath)
reportDoc.SetParameterValue(DAL.ParmName.MRId, BLL.SessionData
.EssInfo.MRID)reportDoc.SetParameterValue(cCONSOLIDATEPDF, genConsolPDF)
connInfo.ServerName = [Lib].ApplicationData.db_Server
connInfo.DatabaseName = [Lib].ApplicationData.db_Name
connInfo.UserID = [Lib].ApplicationData.db_UserId
connInfo.Password = [Lib].ApplicationData.db_Password
tableSet = reportDoc.Database.Tables
For Each singleTable As Table In
tableSet
Dim singleTableLogoninfo As TableLogOnInfo
= singleTable.LogOnInfo
singleTableLogoninfo.ConnectionInfo = connInfo
singleTable.ApplyLogOnInfo(singleTableLogoninfo)
Next
Return reportDoc
End Function
It seemed like the developer maybe wanted more information about how the report is then used, so this is what happens.  The report is then supposed to be returned as type IO.Stream and then it is to be converted to an IO.MemoryStream: 
Dim sourceFiles(sourceSize as MemoryStream)
sourceFiles(i) = New MemoryStream(GetByteArray(CType(parameters.SignaturePage, IO.MemoryStream)))
parameters.SignaturePage is the crytal report that is being returned, that is what needs to be IO.Stream, but is coming back as FileStreamDeleteOnclose.
When the application then tries to convert from FileStreamDeleteOnClose to IO.MemoryStream, that is where the error occurrs:  Exception: System.InvalidCastException: Unable to cast object of type 'FileStreamDeleteOnClose' to type 'System.IO.MemoryStream'.  But this is only occurring because I am getting back the incorrect object type from the ExportToStream call. 
Before I upgraded to SP 13 this worked fine, and has been working fine for years.  It is after SP13 that this ExportToStream stopped giving me the IO.Stream object type and is now returning the FileStreamDeleteOnClose.
I hope that helps!
Thank you,
Leah

Similar Messages

  • InvalidCastException occurred. Return argument has an invalid type in illustrator cs5 VB in VS2012.

    I am writthing a simple illustrator CS5 VB application for testing in VS2012 on Windows7 64-bit. The application can be built succesfully, but got an error at line 2- InvalidCastException occurred. Return argument has an invalid type.
    line 1 - Dim  appref As Illustrator.Application = New Illustrator.Application
    line 2 - Dim myDoc As Illustrator.Document = appref.ActiveDocument
    The detailed errror is
    System.InvalidCastException occurred
      HResult=-2147467262
      Message=Return argument has an invalid type.
      Source=mscorlib
      StackTrace:
           at System.Runtime.Remoting.Proxies.RealProxy.ValidateReturnArg(Object arg, Type paramType)
           at System.Runtime.Remoting.Proxies.RealProxy.PropagateOutParameters(IMessage msg, Object[] outArgs, Object returnValue)...................
    But similar code works in word 2007 macro, so reference to  illustrator CS5 is fine. I think it is caused by .NET Framework 4. Where should I start to solve the problem? Any help is appreciated. Thanks!

    Hello,
    I am getting the same error and I found some articles on Oracle Metalink (Note 360287.1) regarding the filesystemio_options parameter and the mount option cio. Basically it looks as if AIX will not allow another program e.g. cp to access the oracle datafile whilst oracle is accessing it unless you have set the cio option at the filesystem level.
    I haven't tried this yet as I need to get some downtime but I think this is what is causing the problem.
    Be careful if you don't have the Oracle datafiles in seperate filesystems because there is a problem with cio and running binaries. (check the man pages for the cio mount option)
    Hope this helps you.
    Regards
    Garry Bayford.

  • An error in the system has occurred. Please contact the system admin'

    Hi chaps
    So I get this message when I try and click "Solved" :
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    And then when I try to send a 'comment' AppleCare I get
    "An error has occurred. Please try again later".
    Is it me or them ?
    Many thanks Roger

    Hi Roger!
    My reply here Error when trying to mark a reply as "solved" , also has additinal information.
    ali b

  • An error in the system has occurred. Please contact the system administrato

    This error appears when I try to access the Leopard Server- Advanced forum:
    Error
    An error in the system has occurred. Please contact the system administrator if the problem persists.
    Useful links :
    Forum Home -- browse the forums here.
    Search Forums -- visit the search page to query all forum content.

    Hi Roger!
    My reply here Error when trying to mark a reply as "solved" , also has additinal information.
    ali b

  • Getting "An error in the system has occurred" using Safari on Apple site

    When using Safari 3.1 on the Apple site to view the discussion forums I get the message: "An error in the system has occurred. Please contact the system administrator if the problem persists."
    I'm able to use the forums using FireFox.
    No one else seems to be having this problem according to the search function.

    This appears to be a one-off problem, so mark as resolved.

  • SXMB_MONI-system error occured during persist

    Hi Friends
    While running the SXMB_MONI tcode in my XI system i am getting this error:
    "system error occured during persist"
    I am on a production system please reply ASAP.
    Thanks

    Hi Aquarin,
    then it is really strange.........
    in RWB, see the status of Integration Engine - is it green or not...........i think it will not be green..........if it is not green, then see in the below messages, if you get any error message....................
    just go to SICF and check all the services are running or not..........
    in RWB, see in message monitoring what is happening to messages during the last 2 hours.............
    Regards,
    Rajeev Gupta

  • Please Help - "page error" / a system error occurred

    I am very basic with Coldfusion Developed websites and pretty awesome on HTML and PHP. While working on a website I made an HTML change and added a line to a page. All works well on the test website/server but after uploading the changed page the page went offline/errored a day later.
    I have an error receipt and am hoping to resolve this issue with some insight from a good Coldfusion Developer or Programmer.
    PLEASE HELP, see error below.
    A system error occurred: http://www.mix.co.zm/mix_schools.cfm?
    Error - struct
    Detail    Note: If you wish to use an absolute template path (for example, template="/mypath/index.cfm") with CFINCLUDE, you must create a mapping for the path using the ColdFusion Administrator. Or, you can use per-application settings to specify mappings specific to this application by specifying a mappings struct to THIS.mappings in Application.cfc. <br> Using relative paths (for example, template="index.cfm" or template="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.
    Message    Could not find the included template components/mix_documents2.cfm.
    MissingFileName    components/mix_documents2.cfm
    StackTrace    coldfusion.tagext.lang.IncludeTag$NoSuchIncludeTemplateException: Could not find the included template components/mix_documents2.cfm. at coldfusion.tagext.lang.IncludeTag.setTemplate(IncludeTag.java:349) at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:360) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:94) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:200) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.i(FusionReactorFilter.java:566) at com.intergral.fusionreactor.filter.FusionReactorFilter.c(FusionReactorFilter.java:258) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(FusionReactorFilter.java: 164) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42 ) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext    Error - array
    1    Error - struct
    COLUMN    0
    ID    CFINCLUDE
    LINE    15
    RAW_TRACE    at cfmix_schools2ecfm527774291.runPage(D:\hshome\mixnet\mix.co.zm\mix_schools.cfm:15)
    TEMPLATE    D:\hshome\mixnet\mix.co.zm\mix_schools.cfm
    TYPE    CFML
    TagName    CFINCLUDE
    Type    MissingInclude

    With LR closed move the preferences file to the Trash as described at the below link. You will lose your Preferences settings, so you may want to record them if unsure what you have changed from the default settings.
    http://helpx.adobe.com/lightroom/kb/error-changing-modules-lightroom
    DO NOT RESTART LR!
    Next uninstall LR and then completely shutdown your system and turn the power OFF. Your catlog(s) will not be removed, so no worries.
    Restart your system and reinstall LR using the latest version download available (LR5.4, LR4.4).
    What version of LR and OS X are you using?

  • System.InvalidOperationException' occurred in System.Web.dll in while running windows Azure Emulator

    I have Cloud Service, when I package and deploy my cloud service in Azure it works perfectly fine. But when I try to debug the CloudService on my local desltop as Azure Dev Fabric which uses Windows Azure Emulator to start the service, I get below exception
    in my VisualStudio  and I see HTTP 500 thrown when I try to access the service from IE.
    System.InvalidOperationException occurred
      HResult=-2146233079
      Message=Failed to map the path '/App_Browsers/'.
      Source=System.Web
      StackTrace:
           at System.Web.Configuration.ProcessHostConfigUtils.MapPathActual(String siteName, VirtualPath path)
      InnerException:
    I am very new to Windows Azure, would appreciate if anybody could help me resolve this issue, so that I can run my service as Dev Fabric on my local devbox for debugging.
    Below are details that I see in VS output window
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.dll
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in WaIISHost.exe
    The program '[40] WaIISHost.exe: Program Trace' has exited with code 0 (0x0).
    The program '[40] WaIISHost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll', Symbols loaded.
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll', Symbols loaded.
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\f6d295f2\8ea8542d_2deace01\System.Web.Http.WebHost.dll', Symbols loaded.
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\4cee119b\9c4b182c_2deace01\Microsoft.Web.Mvc.FixedDisplayModes.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.WebData\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.WebData.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\b623c6da\a6ec742c_2deace01\System.Web.Optimization.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\804e0ba3\117e8e2d_2deace01\Microsoft.Web.WebPages.OAuth.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_1.2.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Razor.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\20894f78\ca56b126_2deace01\DotNetOpenAuth.Core.dll'
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.Data\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.Data.dll'
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll', Symbols loaded.
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\App_global.asax.w9xb-vle.dll', Symbols loaded.
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\cff74b05\b9def50f_2bfcce01\MvcWebRole1.dll', Symbols loaded.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    Bypass prompt for source file: f:\dd\ndp\fx\src\xsp\System\Web\Hosting\ProcessHost.cs.
    Bypass prompt for source file: f:\dd\ndp\fx\src\xsp\System\Web\Hosting\ProcessHost.cs.
    SRCSRV: The module 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll' does not contain source server information.
    The thread '<Thread Ended>' (0x24d0) has exited with code 0 (0x0).
    The thread '<Thread Ended>' (0x24dc) has exited with code 0 (0x0).
    'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\11.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'

    After I changed my CloudService prject setting to use full IIS, I do not get HTTP 500 exception any more and have been able to get to Index page of my service. But then past login page it crashes and in VS, it is indefinely in loop and getting the below
    exception.
    If things are working fine in Azure Web portal, what could be different for it fail in Emulator?
    'C:\windows\assembly\GAC_MSIL\Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime\1.0.0.0__31bf3856ad364e35\Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime.dll',
    Symbols loaded.
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.dll
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in WaIISHost.exe
    The program '[8196] WaIISHost.exe: Program Trace' has exited with code 0 (0x0).
    The program '[8196] WaIISHost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
    The program '[13560] w3wp.exe: Program Trace' has exited with code 0 (0x0).
    The program '[13560] w3wp.exe: Managed (v4.0.30319)' has exited with code -2 (0xfffffffe).
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'd:\source\main-empty-1\private\packages\CU.WatchdogAndProbe.Library\CUProbeCloudService2\CUCloudService\csx\Debug\roles\MvcWebRole1\base\x64\WaIISHost.exe',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_64\msshrtmi\2.0.0.0__31bf3856ad364e35\msshrtmi.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.WindowsAzure.ServiceRuntime\v4.0_2.0.0.0__31bf3856ad364e35\Microsoft.WindowsAzure.ServiceRuntime.dll',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols
    loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll', Symbols
    loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Internals\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Internals.dll',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Diagnostics.ServiceModelSink\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll',
    Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll', Symbols
    loaded.
    Auto-attach to process '[9376] w3wp.exe' on machine 'BISHAH-DESKTOP' succeeded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Symbols
    loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll', Symbols
    loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Loader\v4.0_1.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Loader.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Mvc\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Mvc.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\f6d295f2\8ea8542d_2deace01\System.Web.Http.WebHost.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Razor.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\4cee119b\9c4b182c_2deace01\Microsoft.Web.Mvc.FixedDisplayModes.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.WebData\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.WebData.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\b623c6da\a6ec742c_2deace01\System.Web.Optimization.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\804e0ba3\117e8e2d_2deace01\Microsoft.Web.WebPages.OAuth.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.VisualStudio.Web.PageInspector.Runtime\v4.0_1.2.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Web.PageInspector.Runtime.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Web.Infrastructure\v4.0_1.0.0.0__31bf3856ad364e35\Microsoft.Web.Infrastructure.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Razor\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.Razor.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\20894f78\ca56b126_2deace01\DotNetOpenAuth.Core.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\WebMatrix.Data\v4.0_2.0.0.0__31bf3856ad364e35\WebMatrix.Data.dll'
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\App_global.asax.cpd6pvg_.dll', Symbols
    loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\cff74b05\bf69e15a_0808cf01\MvcWebRole1.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll', Symbols
    loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\e0bcdeea\976ab42c_2deace01\System.Web.Http.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Net.Http\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Net.Http.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\655cb0ee\da1f8c2c_2deace01\System.Net.Http.Formatting.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\ac30e99e\63a0062f\assembly\dl3\6d974981\6e6e7440_2deace01\Newtonsoft.Json.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\SMDiagnostics\v4.0_4.0.0.0__b77a5c561934e089\SMDiagnostics.dll', Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll',
    Symbols loaded.
    'w3wp.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll', Symbols loaded.
    'WaIISHost.exe' (Managed (v4.0.30319)): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime\1.0.0.0__31bf3856ad364e35\Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime.dll',
    Symbols loaded.
    The thread '<No Name>' (0x1dfc) has exited with code 0 (0x0).
    The thread '<No Name>' (0x2b18) has exited with code 0 (0x0).
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in System.dll
    A first chance exception of type 'System.Configuration.ConfigurationErrorsException' occurred in WaIISHost.exe
    The program '[4304] WaIISHost.exe: Program Trace' has exited with code 0 (0x0).
    The program '[4304] WaIISHost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
    The program '[9376] w3wp.exe: Program Trace' has exited with code 0 (0x0).
    The program '[9376] w3wp.exe: Managed (v4.0.30319)' has exited with code -2 (0xfffffffe).

  • System Error occurs, with Japanese annotation.

    Dear Developers.
    I'm a user of "Adobe Reader for Android" in Japan. (This content is translated from Japanese.)
    When I open any PDF file with Adobe Reader for Android and put annotation comment in japanese,  "System error" occurs.
    Here is my steps.
    1. Open arbitrary pdf file with Adobe Reader for Android.
    2. Tap the pencil icon.
    3. Tap the "T" mark icon.
    4. Tap any point int the view and input dialog box opens.
    5. Input any comment in japanese and tap "Save" button.
    6. Then "System Error" toast occurs and there isn't saved comment in the view.
    OS:Android 5.0.1
    Adobe Reader 11.7.1
    I would glad if you fix this issue.
    Thank you.

    Hi,
    Thanks for reporting the issue. We have been able to reproduce this at our end and are trying to fix it. We shall try to incorporate the fix in one of our future releases.
    Thanks,
    Adobe Reader Team

  • When connecting to cube via msmdpump.dll, an error pops up saying the following system error occurred: the server threw an exception

    users are able to pick the SSAS database and cube, it's at the final step and suddenly excel had this error:
    The following system error occurred: the server threw an exception...
    Other users have no such issues at all
    any ideas?
    thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    Glad to hear that your issue had been solved by yourself. Thank you for your sharing.
    Regards,
    Charlie Liao
    TechNet Community Support

  • AppFabric Installation Error System.InvalidCastException

    Hi everyone,
    I tried to install AppFabric on Windows 7 Enterprise (Service Pack1) 64-bit operating system computer.  For development and testing reasons.
    I tried some popular workarounds for appfabric including environment variable changes and others, none of them solved my problem. Can you help me please?
    When i double click WindowsServerAppFabricSetup_x64.exe,  i got System.InvalidCastException which is detailed below.
    Unable to cast COM object of type 'CbsSession' to interface type 'ICbsSession'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{75207391-23F2-4396-85F0-8FDB879ED0ED}' failed due to the following error:
    Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
    Description:
      Stopped working
    Problem signature:
      Problem Event Name: CLR20r3
      Problem Signature 01: setup.exe
      Problem Signature 02: 1.0.0.0
      Problem Signature 03: 4ed52225
      Problem Signature 04: Setup
      Problem Signature 05: 1.0.0.0
      Problem Signature 06: 4ed52225
      Problem Signature 07: 1fb
      Problem Signature 08: 6
      Problem Signature 09: System.InvalidCastException
      OS Version: 6.1.7601.2.1.0.256.4
      Locale ID: 1055

    Hello yilmazuur,
    It looks like your post is not related to Outlook at all. That is why I would recommend asking such questions in the
    AppFabric Service and Workflow Management  forum instead. There you will get the most qualified answers.

  • System.InvalidCastException error

    Hi,
    I have a form with a matrix and an import button. Users can import records from a text file into a user defined table. After the import into table is complete, the form is refreshed with records from the table. It all works fine when there are only a few records. But if it takes longer to import, I get the following error multiple times during form refresh.
    System.InvalidCastExcpet: QueryInterface for interfaceSAPbouiCOM.itemEvent failed at SAPbouiCOM.ItemEventClass.Get_FormUID
    This happens even if the focus is on my form. If I switch to another application, I get this error even if the I import only a few records.
    All the records get imported, the error is only during form refresh.
    Can anybody help? Thanks in advance.
    Thanks,
    Aparna

    Hi Gianluigi,
    Sorry for not posting an update in the past month. I have been trying quite a few things to resolve this issue. I did try using the .Net Profiler but it was not of much use. The only message I get in the profiler is as follows:
    Type: System.Runtime.InteropServices.COMException
    Call: thrown
    Type: System.InvalidCastException
    Call: Thrown
    I think the error is somehow related to UI API and window refresh. But I am not sure what it is. Interestingly, I get the error only while dealing with large data set.
    Thanks,
    Aparna

  • System.InvalidCastException

    Every time I update a file in the APP_CODE folder in asp.net I get the following error.
    System.InvalidCastException: [A]TexasClass.TexasTest cannot be cast to [B]TexasClass.TexasTest. Type A originates from 'App_Code.w8xmcutn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
    ASP.NET Files\root\15ae04a3\80f6a04b\App_Code.w8xmcutn.dll'. Type B originates from 'App_Code.dqtbd99q, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' in the context 'Default' at location 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET
    Files\root\15ae04a3\80f6a04b\App_Code.dqtbd99q.dll'. at ASP.admin_texesview_aspx.OpenExam(Byte[] bin)
    The problem is a duplicate DLL is created when I update a code file. I can resolve it by restarting the server(I did that because I am not sure which file to delete).
    Why is this happening and how can I avoid it?

    Hi SpaceCityIT,
    In my opinion, this thread is related to ASP.NET forum. So please post thread on ASP.NET forum for more effective response. Thank you for understanding. Please refer to the following link.
    http://forums.asp.net/.
    Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 'System.AccessViolationException' occurred in method 'Read' of class 'OpsDa

    Exception Stack Trace:_
    An exception of type *'System.AccessViolationException'* occurred in method *'Read' of class 'OpsDac'*
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    The stack trace given is: at Oracle.DataAccess.Client.OpsDac.Read(IntPtr opsConCtx, IntPtr opsErrCtx, IntPtr opsSqlCtx, IntPtr& opsDacCtx, OpoSqlValCtx* pOpoSqlValCtx, OpoMetValCtx* pOpoMetValCtx, OpoDacValCtx* pOpoDacValCtx) at Oracle.DataAccess.Client.OracleDataReader.Read()
    Environment Details:_
    Oracle Database- Oracle Database 11g Enterprise Edition Release 1 (11.1.0.6) Patch set 11.1.0.7
    ODP.NET- ODTwithODAC1110621- Oracle Data Access Components for Oracle Client 11.1.0.6.21
    Downloaded ODP.NET from the below link- http://www.oracle.com/technology/software/products/database/oracle11g/111060_win32soft.html
    *.NET Framework* – v3.5
    ORM layer (Object Relation Mapping) - NHibernate (it is the data access layer used in my project- which internally uses ADO.NET in the background)
    Coding Language - C#
    Test Case:*
    I don’t have a particular test case for this exception, but below is the similar code that caused the exception.
    Code:_
    void Main()
    //Placeholder for saving ID of new record that is saved through ADO.
    static decimal ADOSavedObjectID;
    private ADONewTestRecord obj = new ADONewTestRecord();
    //ADO.NET code to save this returns saved object db ID.
    ADOSavedObjectID = SaveThroughADOViaNHibernate(obj);
    //Fetch the Saved record through NHibernate.
    TestNewRecordFromNHibernateViaADO = GetTestRecordThroughNHibernateViaADO(ADOSavedObjectID )
    public decimal SaveThroughADOViaNHibernate(ADONewTestRecord obj)
    //here we have NHibernate API to save the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    public TestNewRecordFromNHibernate
    GetTestRecordThroughNHibernateViaADO(decimal ADOSavedObjectID)
    // here we have NHibernate API to fetch the record which uses ADO.NET (sorry I am not providing any lines of code, as I don’t have the source code of NHibernate that is accessing –ADO.NET )
    // Exception is raised.
    Please share your thoughts on this exception in ODP.NET, and request me if you need any additional details.
    Thanks

    Hi,
    How often does this occur? Is this consitently reproducible with certain code? Is it always that code that has the problem? Can you generally reproduce this in a test environment?
    For issues regarding 3rd party libraries that cannot be reproduced with a source code testcase, I'd generally recommend testing latest software versions if that's an option.
    If the behaivor still occurs on current versions, it may be best to open a SR with support so we can get some tracing, and also a memory dump of the access violation to see if we can match it to known issues. You can get a memory dump via setting ODP tracing to level 8, or also via the use of adplus, debugdiag, etc.
    Hope it helps, but realize it may not,
    Greg

  • System.InvalidCastException: Operator ' =' is not defined for type 'Byte()' and type 'Integer'.

    I'm getting the following error
    System.InvalidCastException: Operator '>=' is not defined for type 'Byte()' and type 'Integer'.
       at Microsoft.VisualBasic.CompilerServices.Operators.InvokeObjectUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments)
       at Microsoft.VisualBasic.CompilerServices.Operators.InvokeUserDefinedOperator(UserDefinedOperator Op, Object[] Arguments)
       at Microsoft.VisualBasic.CompilerServices.Operators.CompareObjectGreaterEqual(Object Left, Object Right, Boolean TextCompare)
       at Customer_Fee_Calculator.Form1.GetCost2(Object dimension) in C:\Users\Chris\Documents\Visual Studio 2013\Projects\Customer Fee Calculator\Customer Fee Calculator\Form1.vb:line 259
       at Customer_Fee_Calculator.Form1.CustomerSelect_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\Chris\Documents\Visual Studio 2013\Projects\Customer Fee Calculator\Customer Fee Calculator\Form1.vb:line 72
                Dim inotes = rs1("INOTES").Value
      (Line 72)          If inotes.Length > 1 Then
                    cost = GetCost2(rs1("INOTES").Value)(0)
                    desc = GetCost2(rs1("INOTES").Value)(1)
                Else
                    PkgType = CInt(rs1("PKGTYPE").Value)
                    cost = GetCost(PkgType)(0)
                    desc = GetCost(PkgType)(1)
                End If
     Function GetCost2(dimension)
            Dim tempSql1, rs1
            Dim MyResult As New ArrayList
            Select Case dimension
    (line 259)            Case 1 To 24
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 13"
                Case 25 To 43
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 14"
                Case 44 To 71
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 16"
                Case 72 To 120
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 17"
                Case 121 To 499
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 18"
                Case 500
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 19"
                Case Else
                    tempSql1 = "SELECT * FROM PRODUCT WHERE PRODUCTID = 14"
            End Select
            rs1 = dbconnect(tempSql1, 1)
            MyResult.Add(rs1("RETAIL1").Value)
            MyResult.Add(rs1("DESCRIPTION").Value)
            MyResult.Add(rs1("PRODUCTID").Value)
            rs1 = Nothing
            tempSql1 = Nothing
            Return MyResult
        End Function

    Chris,
    I'm not a database guy - so in many ways, I'm not really qualified to answer this, but I'll make a suggestion anyway:
    At the very top of your code, put the following:
    Option Strict On
    Option Explicit On
    Option Infer Off
    With strict on and infer off, it will force you declare types - which I see missing in many places in the code.
    It's entirely possible that by you then going through and fixing those issues, you'll have corrected the problem.
    I don't know that, but it's possible -- and it should be done this way anyway, so there's certainly no harm to be done; in fact you'll actually speed up the program to a small degree because objects don't have to be inferred for the type that they actually
    are.
    ***** EDIT *****
    Also this: DON'T declare any of the types simply as "Object"; that's just trading off late binding for boxing, so you haven't really done much good. Declare them each as their correct actual type.
    Still lost in code, just at a little higher level.

Maybe you are looking for