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.

Similar Messages

  • 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.

  • 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

  • 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.

  • BPC 5.0.502  BPC Web Error Message: Exxception of Type System out of memory

    In the process of updating a web page in the content library, page crashed received an error message of "Exception of type System out of memory.  Exception was throw".  What does this mean?  We are now unable to open this sheet without receiving the prior message.  Any remadies would be appreciated.

    Hello,
        Did you receive this specific error message only managing that web page or for all pages?
        Did you try to stop all COM+ components on the application servers(on each if you are using more). It looks to be related to some memory problems.
        If the problem is related to a specific web page, the problem can be related to the content of that web page.
    Best regards,
    Mihaela

  • C# compiling error: 'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)

    Hello experts,
    I'm totally new to C#. I'm trying to modify existing code to automatically rename a file if exists. I found a solution online as follows:
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
            string tempFileName = fileName;
            int count = 1;
            while (allFiles.Contains(tempFileName ))
                tempFileName = String.Format("{0} ({1})", fileName, count++); 
            output = Path.Combine(folderPath, tempFileName );
            string fullPath=output + ".xml";
    However, it gives the following compilation errors
    for the Select and Contain methods respectively.:
    'System.Array' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'System.Array' could be found
    (are you missing a using directive or an assembly reference?)
    'System.Array' does not contain a definition for 'Contains' and no extension method 'Contains' accepting a first argument of type 'System.Array' could be
    found (are you missing a using directive or an assembly reference?)
    I googled on these errors, and people suggested to add using System.Linq;
    I did, but the errors persist. 
    Any help and information is greatly appreciated.
    P. S. Here are the using clauses I have:
    using System;
    using System.Data;
    using System.Windows.Forms;
    using System.IO;
    using System.Collections.Generic;
    using System.Text;
    using System.Linq;

    Besides your issue with System.Core, you also have a problem with the logic of our code, particularly your variables. It is confusing what your variables represent. You have an infinite loop, so the last section of code is never reached. Take a look 
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    namespace consAppFileManipulation
    class Program
    static void Main(string[] args)
    string fullPath = @"c:\temp\trace.log";
    string folderPath = @"c:\temp\";
    string fileName = "trace.log";
    string output = "";
    string fileNameOnly = Path.GetFileNameWithoutExtension(fullPath);
    string extension = Path.GetExtension(fullPath);
    string path = Path.GetDirectoryName(fullPath);
    string newFullPath = fullPath;
    string[] allFiles = Directory.GetFiles(folderPath).Select(filename => Path.GetFileNameWithoutExtension(filename)).ToArray();
    string tempFileName = fileName;
    int count = 1;
    //THIS IS AN INFINITE LOOP
    while (allFiles.Contains(fileNameOnly))
    tempFileName = String.Format("{0} ({1})", fileName, count++);
    //THIS CODE IS NEVER REACHED
    output = Path.Combine(folderPath, tempFileName);
    fullPath = output + ".xml";
    //string fullPath = output + ".xml";
    UML, then code

  • Error Message When I Invoke my web services : Exception source is: mscorlib' , Stack Trace :System.Runtime.Serialization.SerializationException: Type 'System.ServiceModel.ExceptionDetail' in Assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral,

    Exception source is: mscorlib' , Stack Trace :System.Runtime.Serialization.SerializationException: Type 'System.ServiceModel.ExceptionDetail' in Assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked
    as serializable.
       at System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType type)
       at System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type type, StreamingContext context)
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
       at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter,
    SerializationBinder binder)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Write(WriteObjectInfo objectInfo, NameInfo memberNameInfo, NameInfo typeNameInfo)
       at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
       at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)
       at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)
       at System.AppDomain.Serialize(Object o)
       at System.AppDomain.MarshalObject(Object o)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&amp; msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)

    Hi,
    The forum is main about installation problem of .NET Framework. Your problem is out of support in the forum. You should post your thread to the forum:
    https://social.msdn.microsoft.com/Forums/en-US/clr/threads
    Best Wishes!
    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. <br/> Click <a
    href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

Maybe you are looking for