A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.

Hi,
I was running Shoutcast.Sample.Phone.Background in windows phone 8 device.I have got this example from codeplex  http://shoutcastmss.codeplex.com/workitem/826.
I have used the code present in above and started running the app.But the stream was not playing continuosly in Background.
It was stopping rising the below exception 
A first chance exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL.
An exception of type 'System.InvalidOperationException' occurred in Silverlight.Media.Phone.DLL but was not handled in user code.
Can anybody please help me how can I overcome this exception.And play stream continuosly in background until I stop it.
ManyThanks in advance..

You should ask in the discussion for that code sample.
Matt Small - Microsoft Escalation Engineer - Forum Moderator
If my reply answers your question, please mark this post as answered.
NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
objects and unknown namespaces.

Similar Messages

  • A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.

    Hiii...
    I was doing FacebookIntegration App.Trying it from many dayss...Can anybody please help me with the below error.It was raising in FacebookLoginPage....
    A first chance exception of type 'System.IO.FileLoadException' occurred in Unknown Module.
    My code is
    namespace tori.Pages
        public partial class FacebookLoginPage : PhoneApplicationPage
               public FacebookLoginPage()
                InitializeComponent();
                this.Loaded += FacebookLoginPage_Loaded;
            async void FacebookLoginPage_Loaded(object sender, RoutedEventArgs e)
                if (!App.isAuthenticated)
                    App.isAuthenticated = true;
                    await Authenticate();
            private FacebookSession session;
            private async Task Authenticate()
                string message = String.Empty;
                try
                    session = await App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
                    App.AccessToken = session.AccessToken;
                    App.FacebookId = session.FacebookId;
                    Dispatcher.BeginInvoke(() => NavigationService.Navigate(new Uri("/Pages/LandingPage.xaml", UriKind.Relative)));
                catch (InvalidOperationException e)
                    message = "Login failed! Exception details: " + e.Message;
                    MessageBox.Show(message);
        While I was debugging error was raising in this line 
    App.FacebookSessionClient.LoginAsync("user_about_me,read_stream,publish_stream,publish_actions");
    While running the App in device I was getting the above error.
    And while running the app in emulator I was facing the below error
    A first chance exception of type 'System.TypeLoadException' occurred in System.Windows.dll
    Additional information: File or assembly name 'System.Threading.Tasks, Version=1.5.10.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A', or one of its dependencies, was not found.
    I am unable to understand what to solve and which is the reason also.
    Can anybody please help me in rectifying it...
    Many Thanks in advance..

    Hi venukoti,
    Are you using Facebook SDK for helping with feature implementation?
    Looks like your app does not have dependencies installed. Please try to re-install the Facebook SDK to see if the same thing happens.
    I would recommend you ask Facebook:
    http://facebooksdk.net/docs/windows/ also
    https://developers.facebook.com/tools-and-support/ for more sufficient suggestions.
    Thanks for your understanding.
    --James
    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.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).

  • Exception of type  'System.OutOfMemory Exception' was thrown while running

    We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.2. When I try to run a report which has around 5 lakh records (the query to fetch the records in sql server takes around 1.5 to 2 minutes) gives an error Exception of type  'System.OutOfMemory Exception' was thrown.
    Can anybody help !!
    Thanks

    Hello, Balla;
    the first thing to check is that the ASP.NET Worker process has rights to your Temp folder. You will find where it is by checking your Environment variables.
    Use the correct name for the ASP.NET worker process depending on your operating system - LocalMachine\IIS_WPG(Windows 2003 Server) or ASPNET(XP) or (Vista) IIS_IUSRS
    To give the IIS_WPG account full control of a folder:
    1. Right-click the folder and select 'Properties'.
    2. Go to the 'Security' tab and click the 'Add' button.
    3. Click the 'Locations' button and select the
    computer name. Click 'OK'.
    4. Type "IIS_WPG" under the 'Enter the object names to
    select' box.
    5. Click 'Check Names'. <Your machine name>\IIS_WPG
    appears. Click 'OK'.
    6. Check 'Full Control' from 'Permissions for IIS_WPG'.
    Click 'OK'.
    ====================
    NOTE:
    The IIS_WPG includes the LocalService,
    System, and NetworkService accounts.
    ====================
    If that is not the issue:
    What database driver are you using in the design of your report? Go to Database|Set datasource location and tell me the properties of the database connection.
    Do you logon to the database in your code or pass the data to it using Datasets?
    Are there subreports in the design? How many are there? What section are they in? What data source does each one use?
    Do you have a lot of formulas in the report?
    Elaine

  • First Chance exception in build.exe(NTDLL.DLL);0xC0000008:Invalid Handle

    Hi Michael,
                               I am using WINDOWS XP with SP2 ; I am facing a problem after installing Sp6 for VC++
                 First Chance exception in build.exe(NTDLL.DLL);0xC0000008:Invalid Handle
         Please Help me out for this Michael.
    Thanks & Regards,
    Rakesh
    Rakesh

    Howdy Rakesh,
    I'm not sure who Michael is, but you might want to try the MSDN or the MSDN forum for general VC++ help.
    Warm regards,
    pBerg

  • First-chance exception on load and calls

    When loading our application we see quite a few "first chance exception" error messages being reported from the berkeley db xml library. The same first chance exceptions are thrown on each call to the berkeley db xml library - about 30 or so result from each call.
    Is this normal or is it indicative of a problem/misconfiguration?
    The following 2 errors (set) are thrown together numerous times:
    First-chance exception at 0x7c812a5b in app.exe: Microsoft C++ exception: DbException at memory location 0x0012cf48..
    First-chance exception at 0x7c812a5b in app.exe: Microsoft C++ exception: DbXml::XmlException at memory location 0x0012d210..
    Message was edited by:
    taka

    Hi,
    Those exceptions are expected during container open. When debugging under Visual Studio I tend to set a breakpoint after container open, then enable first-chance exceptions.
    Regards,
    George

  • System.InsufficientMemoryException: Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. --- System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

    Appfabric 1.1 server setup on 3 Windows server 2008 R2 machines.
    Client windows 7 64 bit.
    Because there is no bulkupdate ,we are trying to persist around 4000 objects wrapped in a CLR object.
     [Serializable]
        public class CacheableCollection<T> : ICacheable, IEnumerable<T>
            where T : class, ICacheable
            [DataMember]
            private Dictionary<string, T> _items;
            public IEnumerator<T> GetEnumerator()
                return _items.Values.GetEnumerator();
            IEnumerator IEnumerable.GetEnumerator()
                return _items.Values.GetEnumerator();
            [DataMember]
            public string CacheKey { get; private set; }
            public T this[string cacheKey] { get { return _items[cacheKey]; } }
            public CacheableCollection(string cacheKey, T[] items)
                if (string.IsNullOrWhiteSpace(cacheKey))
                    throw new ArgumentNullException("cacheKey", "Cache key not specified.");
                if (items == null || items.Length == 0)
                    throw new ArgumentNullException("items", "Collection items not specified.");
                this.CacheKey = cacheKey;
                _items = items.ToDictionary(p => p.CacheKey, p => p);
    We tried with the following options on server and client
    Server:
     <advancedProperties>
                <partitionStoreConnectionSettings leadHostManagement="false" />
                <securityProperties mode="None" protectionLevel="None">
                    <authorization>
                        <allow users="[email protected]" />
                        <allow users="[email protected]" />
                    </authorization>
                </securityProperties>
                <transportProperties maxBufferSize="500000000" />
            </advancedProperties>
    Client: 
     <transportProperties connectionBufferSize="131072" maxBufferPoolSize="500000000"
                           maxBufferSize="838860800" maxOutputDelay="2" channelInitializationTimeout="60000"
                           receiveTimeout="600000"/>
    I see different people experiencing different memory size issues. What is the actual memory limit of an  object that can be pushed to Appfabric. 
    Can some one please help ?
    Stack trace:
    Test method Anz.Cre.Pdc.Bootstrapper.Test.LoaderFuncCAOTest.AppFabPushAndRetrieveData threw exception: 
    System.InsufficientMemoryException: Failed to allocate a managed memory buffer of 268435456 bytes. The amount of available memory may be low. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
    System.Runtime.Fx.AllocateByteArray(Int32 size)
    System.Runtime.Fx.AllocateByteArray(Int32 size)
    System.Runtime.InternalBufferManager.PooledBufferManager.TakeBuffer(Int32 bufferSize)
    System.Runtime.BufferedOutputStream.ToArray(Int32& bufferSize)
    System.ServiceModel.Channels.BufferedMessageWriter.WriteMessage(Message message, BufferManager bufferManager, Int32 initialOffset, Int32 maxSizeQuota)
    System.ServiceModel.Channels.BinaryMessageEncoderFactory.BinaryMessageEncoder.WriteMessage(Message message, Int32 maxMessageSize, BufferManager bufferManager, Int32 messageOffset)
    System.ServiceModel.Channels.FramingDuplexSessionChannel.EncodeMessage(Message message)
    System.ServiceModel.Channels.FramingDuplexSessionChannel.OnSendCore(Message message, TimeSpan timeout)
    System.ServiceModel.Channels.TransportDuplexSessionChannel.OnSend(Message message, TimeSpan timeout)
    System.ServiceModel.Channels.OutputChannel.Send(Message message, TimeSpan timeout)
    Microsoft.ApplicationServer.Caching.WcfClientChannel.SendMessage(EndpointID endpoint, Message message, TimeSpan timeout, WaitCallback callback, Object state, Boolean async)
    Microsoft.ApplicationServer.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message, TimeSpan timeout)
    Microsoft.ApplicationServer.Caching.WcfClientChannel.Send(EndpointID endpoint, Message message)
    Microsoft.ApplicationServer.Caching.DRM.SendRequest(EndpointID address, RequestBody request)
    Microsoft.ApplicationServer.Caching.RequestBody.Send()
    Microsoft.ApplicationServer.Caching.DRM.SendToDestination(RequestBody request, Boolean recordRequest)
    Microsoft.ApplicationServer.Caching.DRM.ProcessRequest(RequestBody request, Boolean recordRequest)
    Microsoft.ApplicationServer.Caching.DRM.ProcessRequest(RequestBody request, Object session)
    Microsoft.ApplicationServer.Caching.RoutingClient.SendMsgAndWait(RequestBody reqMsg)
    Microsoft.ApplicationServer.Caching.DataCache.SendReceive(RequestBody reqMsg)
    Microsoft.ApplicationServer.Caching.DataCache.ExecuteAPI(RequestBody reqMsg)
    Microsoft.ApplicationServer.Caching.DataCache.InternalPut(String key, Object value, DataCacheItemVersion oldVersion, TimeSpan timeout, DataCacheTag[] tags, String region)
    Microsoft.ApplicationServer.Caching.DataCache.Put(String key, Object value, String region)
    Anz.Cre.Pdc.DataCache.DataCacheAccess.Put[T](String cacheName, String regionName, T value) in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.DataCache\DataCacheAccess.cs: line 141
    Anz.Cre.Pdc.DataCache.DataCacheAccess.Put[T](String cacheName, String regionName, Boolean flushRegion, T value) in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.DataCache\DataCacheAccess.cs: line 372
    Anz.Cre.Pdc.Bootstrapper.Test.LoaderFuncCAOTest.AppFabPushAndRetrieveData() in C:\SVN\2.3_Drop3\app\Src\Anz.Cre.Pdc.Bootstrapper.Test\LoaderFuncCAOTest.cs: line 281

    Essentially what we are trying to do is the following.
    we have different kinds of objects in our baseline. Objects of type CAO, Exposures, Limits that change everyday after close of business day. 
    We wanted to push these different objects in to respective named regions in the cache. 
    Region Name     Objects
    CAO                   ienumerable<caos>
    Exposures           ienumerable<exposures>
    Limits                ienumerable<limits>
    we have a producer that pushes this data in to the cache and consumers of this data acting on the data when its available.
    Now the issue we are facing is when we try to push around 4000 cao objects (roughly in the size of 300MB when serialized using xml) ,we are getting the above error. Increasing the size on the client and cache cluster didnt help.
    The other alternative we were thinking about is chunking and pushing because appfabric doesnt support streaming. We might be able to push this data successfuly if we chunk. But how about the consumers ? wouldnt they face the same memory issue when we use
    getallobjectsinregion ?
    We thought if there was a way to figure out the keys in the region then probably the consumers can get one by one. However there is no such API. 
    The only option i see is using Appfabric notifications which msdn says isnt a reliable way.
    Please help.

  • Exception of type 'System.ArgumentException' was thrown. Parameter name: newObj when register sts to sharepoint 2010

    Hi
    when i register my custom sts to sharepoint i receive error : 
    Exception of type 'System.ArgumentException' was thrown.
    Parameter name: newObj
    i followed https://msdn.microsoft.com/EN-US/library/office/ff955607(v=office.14).aspx
    private void button1_Click(object sender, EventArgs e)
    List<SPTrustedClaimTypeInformation> claimMapping = new List<SPTrustedClaimTypeInformation>();
    List<string> strClaimMapping = new List<string>();
    SPTrustedClaimTypeInformation idClaim = new SPTrustedClaimTypeInformation("EmailAddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress");
    SPTrustedClaimTypeInformation titleClaim = new SPTrustedClaimTypeInformation("Title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title",
    "http://schemas.wingtip.com/sharepoint/2009/08/claims/title");
    titleClaim.AcceptOnlyKnownClaimValues = true;
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    idClaim.AddKnownClaimValue("[email protected]");
    titleClaim.AddKnownClaimValue("Engineer");
    titleClaim.AddKnownClaimValue("Manager");
    titleClaim.AddKnownClaimValue("CEO");
    // Create the string[] for all claims. This is required for
    // the construction of the SPTrustedLoginProvider object.
    strClaimMapping.Add(idClaim.InputClaimType);
    strClaimMapping.Add(titleClaim.InputClaimType);
    X509Certificate2 ImportTrustCertificate = new X509Certificate2(@"C:\SPPROJECTS\STS\ClaimsWalkthrough\Resources\STSTestCertPub.cer");
    claimMapping.Add(idClaim);
    claimMapping.Add(titleClaim);
    SPSecurityTokenServiceManager manager = SPSecurityTokenServiceManager.Local;
    SPTrustedLoginProvider provider = new SPTrustedLoginProvider(manager,
    "WingtipSTS", "WingtipSTS", new Uri("http://localhost:97/default.aspx"),
    "https://portal.test.com:90/_trust/", strClaimMapping.ToArray(), idClaim);
    foreach (SPTrustedClaimTypeInformation claimTypeInfo in claimMapping)
    if (claimTypeInfo.InputClaimType == provider.IdentityClaimTypeInformation.InputClaimType)
    continue;
    provider.AddClaimTypeInformation(claimTypeInfo);
    if (ImportTrustCertificate != null)
    provider.SigningCertificate = ImportTrustCertificate;
    //provider.ClaimProviderName = "ContosoCRMClaimProvider";
    provider.UseWReplyParameter = true;
    manager.TrustedLoginProviders.Add(provider);
    manager.Update();
    adil

    After spending the last hour looking again at my FBA issue, i finally got the answer to my own question which is SPClaimsUtility.
    For anyone in the future having this issue, this is a snapshot from my code:
    SPSecurity.RunWithElevatedPrivileges(delegate()
                   string usernamestring = GetTextBox("tbUsername").Text;
                   string passwordstring = GetTextBox("tbPassword").Text;
    ATPAuthProvider.ATPMembershipProvider memProvider = new ATPAuthProvider.ATPMembershipProvider();
    if (memProvider.ValidateUser(usernamestring, passwordstring))
                           MembershipUser user = memProvider.GetUser(usernamestring,
    true);
                           if (user != null)
      bool Status = SPClaimsUtility.AuthenticateFormsUser(HttpContext.Current.Request.UrlReferrer,
    usernamestring, passwordstring);
                               if (Status)
                                   HttpContext.Current.Response.Redirect("/Pages/Home.aspx", false);
    Note: The SPClaimsUtility class is from the Microsoft.SharePoint.IdentityModel dll which reside in the new GAC location: C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.SharePoint.IdentityModel\v4.0_15.0.0.0__71e9bce111e9429c
    Credit to Sivarajan's blog: http://sivarajan.me/post/SharePoint-2013-Enabling-Custom-Login-Page-and-Mixed-Contents-Part-2
    Enjoy!

  • First-chance exception at 0x7c812a5b in Photoshop.exe: Microsoft C++ exception: [rethrow] at memory

    When I compile the Dissolve filter example code and run it while debugging it (Windows platform), I get the following error code in the Output window:
    First-chance exception at 0x7c812a5b in Photoshop.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000..
    Is this normal? Is it ok to have this?
    This happens when I change the image to a smart object, apply the filter but hit cancel.

    StefanE wrote:
    I think the problem is, that the C program ends before the runtime has closed. So the error comes with static and dynamic linking of the dll. But not with dynamical linking if I unload the dll in my C program, wait manually (getchar) until the Labview runtime has closed and return then from the main function.
    That might be a possibility. Although a DLL is always linked dynamically
    I did check about the LabVIEW DLL itself. For LabVIEW 8.5 DLLs at least its DLLMain() function seems to do something that is considered rather bad by Microsoft. When it is called with DLL_PROCESS_DEATTACH it does always do a FreeLibrary() for lvrt.dll independant of the value of the third parameter "lpvReserved" to DLLMain(). This parameter is not very well documented on MSDN but there do exist some MSDN articles that warn explicitedly to do anything involved, and especially call FreeLibrary() for the DLL_PROCESS_DETACH case if this third parameter is not NULL. In that case the process that loaded the DLL is itself terminating and a lot of Windows APIs especially dealing with resource management are anything but safe to call at that time.
    Also trying to unload DLLs and deallocate Windows resources in process termination is although a noble idea not really necessary since Windows will do that on behalve of the process, (and probably has done so already for some resources before some deallocation routine executes that got triggered by the FreeLibrary() call).
    I would think this to be a clear case for a CAR.
    Rolf Kalbermatter
    Message Edited by rolfk on 01-20-2009 10:17 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Exception of Type 'System.OutofMemoryException' was thrown

    I am trying to run test software developed using TestStand 2010 SP1 and LabVIEW 2011 SP1 on a Windows XP machine. We have generated common sequences in TestStand that are called from a custom script language. The test runs for about 2.5 hours before throwing an error, "Exception of Type 'System.OutofMemoryException' was thrown." It happens at about the same point each time, but not always during the same Sequence or VI call.
    Our software does loop quite a bit calling the same TestStand sequence multiple times. And we are saving data samples read from test equipment into arrarys to analyze, but would that array not be written over each time rather than allocating new memory for each call? Or could it be generating a new memory allocation for each time the TestStand sequence is called?
    Any other ideas on why we would be getting an out of memory exception only when we run the entire test consecutively(>2.5hours), meaning if we run it in two halfs(tests 1-5 then terminate, then restart and run tests 6-10) it works fine?

    No, the local variables only exist while the sequence is running (unless you are leaking references to them in your code modules). So you should only have as many versions of the locals in memory as you have actively running versions of the sequence. You might have a lot of actively running versions though, I have no idea what your sequences look like.
    How much memory is the process using as reported in Task Manager? Are you trying to allocate a large block of memory such as a large array? As memory becomes more fragmented and used more, it becomes harder to allocate large blocks of memory in 32-bit programs due to the limitation of the address space (i.e. it's hard to find a contiguous block of address space large enough). You might be hitting this issue.
    The general approach I'd recommend for you is to try to figure out what is using most of the memory and try to optimize that to use less memory. Also avoid trying to allocate very large blocks. Once your process is using about 1 gig of ram, it becomes difficult to allocate blocks bigger than 100meg in a 32-bit process.
    Since you are getting a .NET out of memory exception, another possibility is that you have an issue with garbage collection or are leaking .NET objects (i.e. unintentionally holding a reference to them somewhere keeping them from being garbage collected). You can call GC.Collect() before doing something memory intensive and see if that helps. If you don't have .NET code modules though, then this is likely not the problem.
    -Doug

  • Direct dao first chance exception

    Hi, I recently upgraded from access 2007 to access 2013 and my application which uses dao and ado started to throw first chance exceptions.  These exceptions are handled and the intended outcome does happen.  The exceptions happen on the first
    change of a record in a recordset....for example an update, delete or move.
    I also noticed that a bunch are created when I compact and repair the database via code.
    typical exception string looks like this:
    First-chance exception at 0x7547C42D in zzzzzz.exe: Microsoft C++ exception: int at memory location 0x0142ADD0.

    I recently upgraded from access 2007 to access 2013 and now my application is receiving first chance exceptions.  i use both ado and dao to connect to this database.  i am using the ace engine.
    a few notes:
    These first chance exceptions are handled and the operations complete as intended. 
    They only occur the first time an action is taken such as a delete or an update or a move.
    I also saw a bunch of first chance exceptions when I compact and repair the database through code.
    This is what the exception debug output says :
    First-chance exception at 0x768FC42D in myapp.exe: Microsoft C++ exception: int at memory location 0x09EEACE4.
    Thanks for any help with this.

  • CreateObjectFromURL First-chance exception

    I am creating a test application that uses the href="https://msdn.microsoft.com/en-us/library/ms698996(v=vs.85).aspx SequencerSource similar to href="https://msdn.microsoft.com/en-us/library/ms697285(v=vs.85).aspx this .
    I load files into the SequencerSource one at a time, but every time I get to the second file I get an error.
    First-chance exception at 0x76B84598 in MFTest.exe: Microsoft C++ exception: bad_hresult at memory location 0x06CBF1D4
    HRESULT
    IPlayerN::CreateMediaSource(IMFMediaSource**
    ppSource,
    PCWSTRwszUrl,
    constDWORDdwFlags){
    TRACE_PLAYER((L"Player::CreateMediaSource"));
    HRESULThr =
    S_OK;
    MF_OBJECT_TYPEobjectType =
    MF_OBJECT_INVALID;
    IMFSourceResolver* pSourceResolver =
    NULL;
    IUnknown* pSource =
    NULL;
    try{
    IF_FAILED_THROW(hr = MFCreateSourceResolver(&pSourceResolver));
    IF_FAILED_THROW(hr = pSourceResolver->CreateObjectFromURL(
    wszUrl,
    MF_RESOLUTION_MEDIASOURCE,
    NULL,
    &objectType,
    &pSource
    ));  // I get error here
    IF_FAILED_THROW(hr = pSource->QueryInterface(IID_IMFMediaSource,
    reinterpret_cast<void**>(ppSource)));
    catch(HRESULT){}
    SAFE_RELEASE(pSource);
    SAFE_RELEASE(pSourceResolver);
    returnhr;
    I only get the error on the second file, the third, fourth, and so on get no error.
    If I turn off the notification for fist chance it seems to be handled and gets an hr = S_OK.
    Any Idea why I am getting this.
    Thanks in advance

    Hi,
    Those exceptions are expected during container open. When debugging under Visual Studio I tend to set a breakpoint after container open, then enable first-chance exceptions.
    Regards,
    George

  • OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:

    Hello Gurus,
    i have run coomand:
    opatch lsinventory -detail
    it gives me error as follows:
    kindly advice to resolve the issue.
    opatch lsinventory
    Oracle Interim Patch Installer version 1.0.0.0.57
    Copyright (c) 2007 Oracle Corporation. All Rights Reserved..
    We recommend you refer to the OPatch documentation under
    OPatch/docs for usage reference. We also recommend using
    the latest OPatch version. For the latest OPatch version
    and other support related issues, please refer to document
    293369.1 which is viewable from metalink.oracle.com
    Oracle Home : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3
    Oracle Home Inventory : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3/inventory
    Central Inventory : /testfm/testfm/BCTEST/oraInventory/oraInventory
    from : /etc/oraInst.loc
    OUI location : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3/oui
    OUI shared library : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3/oui/lib/aix/liboraInstaller.so
    Java location : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3/jre/1.4.2/bin/java
    Log file location : /goldfm/goldfm/GOLD/apps/tech_st/10.1.3/.patch_storage/<patch ID>/*.log
    Creating log file "/goldfm/goldfm/GOLD/apps/tech_st/10.1.3/.patch_storage/LsInventory__05-30-2011_09-00-44.log"
    Result:
    LsInventory: OPatch Exception while accessing O2O
    OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
    OPatch Exception:
    OUI found no such ORACLE_HOME set in the environment
    Can not get details for given Oracle Home
    An exception occurs
    null
    There is no Interim Patch
    OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred:
    Can not get a list of inventory on this home.
    ERROR: OPatch failed because of Inventory problem.
    opatch lsinventory -detail
    Invoking OPatch 11.1.0.6.2
    Oracle Interim Patch Installer version 11.1.0.6.2
    Copyright (c) 2007, Oracle Corporation. All rights reserved.
    Oracle Home : /golddb/golddb/GOLD/db/tech_st/11.1.0
    Central Inventory : /testfm/testfm/BCTEST/oraInventory/oraInventory
    from : /etc/oraInst.loc
    OPatch version : 11.1.0.6.2
    OUI version : 11.1.0.7.0
    OUI location : /golddb/golddb/GOLD/db/tech_st/11.1.0/oui
    Log file location : /golddb/golddb/GOLD/db/tech_st/11.1.0/cfgtoollogs/opatch/opatch2011-05-31_09-30-41AM.log
    List of Homes on this system:
    Home name= BCPROD_WEBOH__bcprodfm_bcprodfm_BCPROD_apps_tech_st_10_1_3, Location= "/bcprodfm/bcprodfm/BCPROD/apps/tech_st/10.1.3"
    Home name= BCPROD_TOOLS__bcprodfm_bcprodfm_BCPROD_apps_tech_st_10_1_2, Location= "/bcprodfm/bcprodfm/BCPROD/apps/tech_st/10.1.2"
    Home name= BCPROD_DB__bcprodfm_bcprodfm_BCPROD_db_tech_st_11_1_0, Location= "/bcproddb/bcproddb/BCPROD/db/tech_st/11.1.0"
    Home name= BCTEST_WEBOH__testfm_testfm_BCTEST_apps_tech_st_10_1_3, Location= "/testfm/testfm/BCTEST/apps/tech_st/10.1.3"
    Home name= BCTEST_TOOLS__testfm_testfm_BCTEST_apps_tech_st_10_1_2, Location= "/testfm/testfm/BCTEST/apps/tech_st/10.1.2"
    Home name= BCCLN_WEBOH__bcclnfm_bcclnfm_BCCLN_apps_tech_st_10_1_3, Location= "/bcclnfm/bcclnfm/BCCLN/apps/tech_st/10.1.3"
    Home name= BCCLN_TOOLS__bcclnfm_bcclnfm_BCCLN_apps_tech_st_10_1_2, Location= "/bcclnfm/bcclnfm/BCCLN/apps/tech_st/10.1.2"
    Home name= BCCLN_DB__bcclndb_bcclndb_BCCLN_db_tech_st_11_1_0, Location= "/bcclndb/bcclndb/BCCLN/db/tech_st/11.1.0"
    Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
    Possible causes are:
    Oracle Home dir. path does not exist in Central Inventory
    Oracle Home is a symbolic link
    Oracle Home inventory is corrupted
    LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo
    OPatch failed with error code 73

    HI,
    Please suggest if this was working before?
    What stopped it working..any change that you are aware of? like cloning,db upgrade, server movement etc etc..
    Their are different error for different oracle home but still issue can be one i.e. corrupt central inventory..try to fix the issue one by one using below metalink notes:-
    LsInventory: OPatch Exception while accessing O2OOPatch_JAVA_ERROR=CheckConflict: Opatch Exception While Accessing O2O [ID 395187.1]
    Opatch Lsinventory Raises An OPatchException While Accessing O2O [ID 401454.1]
    Opatch Fails With 'Can not get details for given Oracle Home' [ID 413829.1]
    "Oui Found No Such Oracle_home Set In The Environment" During Opatch Lsinventory [ID 419625.1]
    please check below metalink ntoe for help.
    Strategies for a Corrupted Oracle Central Inventory [ID 414600.1]
    OPatch Fails With "LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo" [ID 728417.1]
    Thanks,
    JD

  • System.InvalidOperationException occured in Kinect.dll

    Hello,
    Somehow I'm getting System.InvalidOperationException and I have no ide what to do to handle it.
    Please advise how to proceed.
    I've attached an image of the exception in case it helps anyone...

    You may want to give a little more detail on what you were doing when you get the exception and what type of project you are working on.  i.e. is it when the application is loaded, working with gestures, or speech, or FaceData, etc.  Might want
    to click the 'Copy exception detail to the clipboard' and paste it here as well.

  • 106 Exception of type system.OutOfMemory Exception while packaging worker roles

    I am trying to package a 2 worker roles(small vms size) , in which i am having about 300mb of data content on both approot folders of roles.
    When i try to package it takes about 10 mins time and throws a "System.OutOfMemoryException". 
    I also tried using medium size vms, but the same error i got.
    Is there any other way to do it as i need these data in approot folder for batch script initialisation.

    HI
    The maximum package size that can be deployed is 600 MB (600 * 1024
    * 1024 bytes).
    Any other data should moved to Windows Azure storage and retrieved from there.
    So any other data, should be moved to windows Azure storage and SQL Azure.
    That's the solution, MS suggest.
    Dino He
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Problem with Display.setCurrentItem() using J2ME-Polish

    Hi, I am fairly new to J2ME-polish and have encountered a situation that I am having a problem with. I am loading a form with a number of String Items. When I display the form I would like to focus to the last String Item that has been placed on the

  • How to show google maps in JPanel

    How do i show the google maps in Java Application. Please help me.

  • Getting poor results with Refine Edge tool

    Not sure if anyone else has run into this issue. But after following numerous tutorials on lynda.com as well as tv.adobe.com and youtube, I just can't get good selection results using the Refine Edge tool in Photoshop CC and I'm convinced it's someth

  • Exit for CJ20N where system status changes can be captured

    Hi Experts, I need exit for CJ20N where system status changes can be captured for both the below cases 1) When WBS Element is having Networks inside it 2) when WBS Element is having no networks inside it EXIT_SAPLCOBT_001  --->>>   ZXCO1U01  , will w

  • Mountain Lion: No update yet available

    When I clicked to the menu item "Software updates" I yesterday got the answer no updates available. Therefore I started the download of the security update 2015-005 (Mountain Lion) by hand. This way isn't possible to update iTunes to version 12.1. I