Problem in sharing in after deploy RRS feed

  • Question

  • while sharing Writable bitmap in debugging mode its working fine.but when i deploy App and then share it showing message in setting charm "Can't share right now try again later"...any one face this problem

    using this code

     DataRequest request = e.Request;
                // Because we are making async calls in the DataRequested event handler,
                //  we need to get the deferral first.
                DataRequestDeferral deferral = request.GetDeferral();

                DataPackage package = request.Data;
                package.Properties.Title = "Greeting";
                package.Properties.Description = "Share Greeting Card";

                // Make sure we always call Complete on the deferral.
                    IRandomAccessStream istream = new InMemoryRandomAccessStream();

                    BitmapEncoder encoder = await BitmapEncoder.CreateAsync(BitmapEncoder.PngEncoderId, istream);

                    byte[] array = bitmap.ToByteArray();
                    Stream stream = new MemoryStream(array);
                    encoder.SetPixelData(BitmapPixelFormat.Bgra8, BitmapAlphaMode.Ignore, (uint)bitmap.PixelWidth, (uint)bitmap.PixelHeight, 96.0, 96.0, array);

                    await encoder.FlushAsync();

    Thursday, December 13, 2012 6:27 AM

All replies