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!

Similar Messages

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

  • 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

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

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

  • No exception of type BPMIdentityNotFoundException can be thrown; an exception type must be a subclass of Throwable.

    How to solve this exception.
    I downloaded this jar  bpm-services.jar and i am using " LocalIdentityService.getManager(user);" this method from it which throws two exception : BPMIdentityNotFoundException, BPMIdentityException
    but i am getting compile time error as:
    "No exception of type BPMIdentityNotFoundException can be thrown; an exception type must be a subclass of Throwable"
    How to solve this error ?
    Help will be appreciated.

    Hi,
    The above provided code works fine,  As you are using SDK Exception that requires the package "com.crystaldecisions.sdk.exception.SDKException" need to be imported in the code.
    Please provide the references for ISessionMgr , and IEnterpriseSession as mentioned below.
    String username = "Administrator";
    String password = "";
    String CMS = "localhost";
    String Authen = "secEnterprise";
    try {
    ISessionMgr sm = CrystalEnterprise.getSessionMgr();
    IEnterpriseSession es = sm.logon(username, password, CMS, Authen);
    } catch (SDKException sdkException)
            out.println(sdkException.getMessage());
         out.println("The code runs.. !");
    Hope this works
    Regards,
    Rameez

  • Parameter names change when generating web service from WSDL

    Hi,
    I have a problem with BEAs web services that I'm hoping someone can help me with.
    I have a
    WSDL file, and from that I want to generate a web service implementation and a
    web service
    client. In the WSDL file, I have a message defined like this:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="data"/>
    </message>
    I generate the server using the server using the wsdl2service Ant task, I implement
    the necessary classes, and I deploy it. When I access the deployed web service,
    the parameter name has changed, from "data" to "bytes". If I access the WSDL file
    of the deployed web service, it says:
    <message name="someRequest">
    <part xmlns:partns="http://www.w3.org/2001/XMLSchema" type="partns:base64Binary"
    name="bytes"/>
    </message>
    This happens for all parameters, string parameters are renamed to "string", base64Binary
    parameters are renamed to "bytes", etc...
    This poses a problem to me, because if I generate a web service client from the
    original WSDL file, it will not be able to talk to my web service. Is there any
    way of forcing a web service generated from a WSDL file to keep the parameter
    names of the original WSDL file?
    Any help in this is greatly appreciated.
    Regards,
    Petter

    From a quick look of your WSDL, it seams that you are mixing document-literal-bare and document-literal-wrapped flavor of web services. WSA may be able to do a better job at working around this mixed flavors than JDeveloper.
    If you have hand crafted this WSDL, I would recomend that you spend some time looking at the way WSDL are generated, with the java-first mode (or bottom-up), then author the WSDL you need for the final service.
    Here are sample of bare-style :
    <xsd:element name="getPupilAddressResponse" type="xsd:string"/>
    <xsd:element name="getPupilAddressRequest" type="xsd:int"/>
    Wrapped will looks like that:
    <xsd:element name="getSENLevelResponse">
    <xsd:complexType>
    <xsd:sequence maxOccurs="1" minOccurs="1">
    <xsd:element name="LevelDetails" type="tns:SENLevelRecord"/>
    <xsd:element name="RecordCount" type="xsd:int">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    Hope this helps,
    Eric

  • Unknown parameter name 'diagnostic_dest' when upgrading to 11g R1

    Hi,
    upgrading with UPDATE Assistant from 10.2.0.4 on Win 2003 to 11 g R1 and I received the following :
    ORA-01034: ORACLE not available
    ID de processus : 0
    LRM-00101: unknown parameter name 'diagnostic_dest'
    ORA-01078: failure in processing system parametersAny idea ?
    Thanks before.

    Thank Satish,
    Does the init.ora (for 10g home) used to startup this database contain this parameter? No.

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

  • System.ArgumentException: Illegal characters in path. When Processing More than 1 lakh records.

    Hi ALL,
    I am Having a trouble with processing the files using c# language. as it's giving the error saying that Illegal character into the path.
    although i am using below regular expression for checking and removing the illegal character by another method.
    Regex pattern = new Regex("\\/:*?\"<>|");
    Some of the records are being processed correctly  that means , records are being fetched from the database and written to the file system correctly by using BinaryWriter class.
    Can anybody help me for this error to resolve.
    Note:- There are more than 1 lakh records to be processed.

    Hi Michael Taylor,
    I have used the log4net to catch the errors while my loop was 
    continuing till the end of the processing of those many records.
    Also System.IO.Path.GetFileName(filename) was throwing the error ,
    so i have check the filename with regular expression and replace illegal character from there and then 
    call the System.IO.Path.GetFileName(filename) method.
    i have use Regex illegalInFileName = new Regex(@"[\\/:*?""<>|]");
    this regular expression to replace illegal character.

  • Control.invoke() throws System.ArgumentException with Error message as 'Parameter is not valid'

    Hi All,
    While doing cross thread communication, i am getting System.ArgumentException with Error message as 'Parameter is not valid' when call is made on the control.invoke(delegate method, parama object[]).
    I have checked the parameters, all parameters look good.
    Please share your views on this.

    I am going to explain the following Exception schenario.
    The RenderForm() is called from different thread and initially panel.InvokeRequired is true as it gets called from different thread and then invoke() gets called.
    So again same method is getting called and InvokeRequired property has then changedd to false and then else part of the code is executed however if i call the RenderForm() repetadely then application throws the exception as stem.ArgumentException with Error
    message as 'Parameter is not valid'
    And the Exception stack trace is as below-
      Type: System.ArgumentException
      Message: Parameter is not valid.
      Source: System.Windows.Forms
      TargetSite: System.Object MarshaledInvoke(System.Windows.Forms.Control, System.Delegate, System.Object[], Boolean)
      StackTrace: at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
      StackTrace: at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
      StackTrace: at NCR.APTRA.RendererCore.RendererCore.RenderForm(TTUForm form, IDataRecord data, Boolean clear)
    Adding the code snippet:
    private void RenderForm(TTUForm form, IDatRec.IDataRecord data, bool clear)
                if (panel.InvokeRequired)
                        panel.Invoke(new RenderFormInvoke(RenderForm), new object[] { form, data, clear });
       else
    //logic to draw the window content
    Please help me on this.. Thanks..

  • Error-System Type Initialization Exception occured in system data dll

     hello sir,
                 because of transferring my project from one pc to another pc i am getting following error:
    error massage:
    first chance exception of type 'System.TypeInitializationException' occurred in System.Data.dll
    Additional information: The type initializer for 'System.Data.Common.DbConnectionOptions' threw an exception.
    If there is a handler for this exception, the program may be safely continued.
    also attached image of error massage
    so how to by pass this error
    please help,
    regards,
    kavi-kalash

    Hello,
    >>because of transferring my project from one pc to another pc i am getting following error:
    This seems to be related with an environment issue, please have a check the worked machine and the non-worked one, to compare if there are some difference.
    >>If there is a handler for this exception, the program may be safely continued.
    This could be due to missing references. Or it could be due to an error in the app config file. Is it possible for you to post your code about the connect part and the connection string? And here is an article describes how to process the first chance exception:
    https://msdn.microsoft.com/en-us/library/dd997368(v=vs.110).aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • HT201209 I have remaining credit at the iTunes Store, but will not let me use without a download code! That code was thrown away month ago, after downloading it. How can I use my unused credit $??

    I have remaining credit at the iTunes Store, but will not let me use without entering 'your Gift Card or Download Code' which, of course, was thrown away months ago, when I first put the code in! Originally it was put into my computer, now I'm trying to redeem on my iPhone. Anybody have any ideas....I mean it IS my money! Thanks Ruthie

    What you are saying does not make sense. You redeem a card once, that's it. It doesn't matter what device you are using, as long as it's using the same account, you will get the reminder of your store credits.
    Could you give more details now?

Maybe you are looking for

  • Operation status 'Fixed' in Production order

    Hello all, We are facing an issue with Operation Status 'Fixed'. If we go to transaction /sapapo/rrp3 and double click on Production Order (R).  Then clcik on Operation , say 0100, at right side you will see multiple Operation status. One of them is

  • Count records in table where fields not used in Report

    Hi I was wondering if anyone could help me with a problem I have. I am new to Crystal Reports... I am using CR2008 and XSD as a datasource. I have the following tables used in the report. Programme Table          Risk Table          Control Table    

  • Time of creation of MIRO document

    Hi all How to view the time of a particular MIRO document when it was raised?? Regards, Ram

  • WebLogic abnormal termination with error Coredump

    Hi, I'm experiencing frequently the following Exception.When it happens the server is abnormally shutting down...!! And then I need to start it again. So please any one can help me...!! Thanks in Advance, Raja. The Error is...... " SIGBUS 10 bus erro

  • Cannot update Safari or iTunes

    I am running Mountain Lion 10.8.5 .  I have 2 updates, 1 for Safari & 1 for iTunes.  Everytime I try to update I get an error message" The operation was cancelled.(3072) "  Any ideas?   I have Safari 6.0.5 & iTunes 11.1.2 currently.