InvalidOperationException

hi, I have a jsp page that selects all the records from a table, presents them in a table and has a radio button beside each one. The user can choose a record to update. The radio button has the value of the primary key(EMPLOYEE_NO). This value is passed to another jsp page where it finds that record, and displays it's values in textboxes so they can be altered and udated in the next page. I am having problems with selecting the record and displaying it in the textboxes. Here is my error:
javax.servlet.ServletException: [interclient] Invalid operation to read at current cursor position.
See API reference for exception interbase.interclient.InvalidOperationException
     at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:457)
     at org.apache.jsp.UpdateB$jsp._jspService(UpdateB$jsp.java:138)........
here is my JSP code:
     String update = request.getParameter("update");
     System.out.println(update);
     Class.forName("interbase.interclient.Driver");
     Connection con=DriverManager.getConnection("jdbc:interbase://diarmuid/c:/Employees.gdb","SYSDBA","masterkey");
     String sql="SELECT * FROM EMPOYEES WHERE EMPLOYEE_NO ='"+update+"' ";
     Statement stmt = con.createStatement();
     rs = stmt.executeQuery(sql);
%>
<table><tr><FORM METHOD="POST" ACTION="UpdateC.jsp">
<td width="22" bgcolor="#A52A2A"><font color="#000000" size="2" face="Arial"><b>EMPLOYEE_NO</b></font></td>
<td><%=rs.getString("EMPLOYEE_NO")%> </td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>FIRST_NAME</b></font></td>
<td><input type="text" name="FIRST_NAME" value="<%=rs.getString("FIRST_NAME")%>"></td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>LAST_NAME</b></font></td>
<td><input type="text" name="LAST_NAME" value="<%=rs.getString("LAST_NAME")%>"></td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>ADDRESS</b></font></td>
<td><input type="text" name="ADDRESS" value="<%=rs.getString("ADDRESS")%>"></td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>PHONE</b></font></td>
<td><input type="text" name="PHONE" value="<%=rs.getString("PHONE")%>"></td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>SEX</b></font></td>
<td><input type="text" name="SEX" value="<%=rs.getString("SEX")%>"></td>
</tr>
<tr>
<td bgcolor="#A52A2A" align="center" width="87"><font color="#000000" size="2"><b>DOB</b></font></td>
<td><input type="text" name="DOB" value="<%=rs.getString("DOB")%>"></td>
</tr>
<td colspan="2" align="center"><input type="submit" value="Update"></td></form>
</tr></table>
<input type="button" value="Print" onClick="window.print()"><br>
Exit</td></tr></table>
</html>
</body>
Any help is much appreciated, thank you in advance

You know, I should really just not post anything before my morning caffeine.rs = stmt.executeQuery(sql);
%>
<table><tr><FORM METHOD="POST" ACTION="UpdateC.jsp">
<td width="22" bgcolor="#A52A2A"><font color="#000000" size="2" face="Arial"><b>EMPLOYEE_NO</b></font></td>
<td><%=rs.getString("EMPLOYEE_NO")%> </td>Between the execution of the query and the first getString() there is no call to next(); the cursor is in BeforeFirst position and has nothing to read.rs = stmt.executeQuery(sql);
//ADD THESE LINES
if (!rs.next()){
   //do some error condition
%>
<table><tr><FORM METHOD="POST" ACTION="UpdateC.jsp">
<td width="22" bgcolor="#A52A2A"><font color="#000000" size="2" face="Arial"><b>EMPLOYEE_NO</b></font></td>
<td><%=rs.getString("EMPLOYEE_NO")%> </td>Sorry about that! =\

Similar Messages

  • InfoPath form, rich text fields, "There was a form postback error" InvalidOperationException, There has been an error while processing the form

    Using InfoPath 2013 browser enabled form.
    I am getting the above error on ALL Infopath Designed Rich Text fields, where the "Cannot be blank" attribute is set.
    To reproduce it, I create a custom list and custom list form with InfoPath 2013. I add 2 Rich Text fields and enable "cannot be blank". To raise the error, I put some data in the RT field. Skip to another field (so focus is changed and a postback
    occurs), then back to original field to delete the contents (to raise the validation).
    I originally thought it was associated with the HTMLCHKR.DLL not being registered (and I have re-registered it just in case), but the exception I get from the ULS logs reads (it is from a list AFTER I have re-registered the DLL):
    There was a form postback error. (User: 0#.w|myDomain\jc, Form Name: Template, IP: , Request: h t t p ://MyWebApp/MySite/Lists/rtAfterHtmlCHkrReg/Item/newifs.aspx?List=2212ff41-77b4-445b-931b-d7e538c9da91&Source=h t t p://MyWebApp/MySite/Lists/rtAfterHtmlCHkrReg/AllItems.aspx&RootFolder=&Web=3db49106-bdca-47bb-b4cd-a549d2d86aa7,
    Form ID: urn:schemas-microsoft-com:office:infopath:list:-AutoGen-2015-01-16T21:51:48:853Z, Type: InvalidOperationException, Exception Message: No content generated as the result of the operation.) 8cc5e09c-3665-903b-575a-faaac506c40a
    I noticed that errors associated with the HTMLCHKR.DLL not being registered would have some sort of COM exception (example: TYPE_E_LIBNOTREGISTERED or REGDB_E_CLASSNOTREG)
    I also should mention that this problem started happening about 3 weeks ago. We have extended the web application to handle HTTPS on the intranet zone (we had a reverse proxy project that did not eventuate) - would that cause something? How can I do further
    checking?

    Hi,
    I have done a test in my SharePoint, and I met the same issue with you.
    I created a custom list and custom list form with InfoPath 2013. I added 2 Rich Text fields and enabled "cannot be blank".  I put some content in the RT field, then delete the contents, I got the error message:"there has been an
    error while processing the form."
    Here is a similar post said that executing the command: regsvr32 "C:\Program Files\Common Files\Microsoft Shared\
    OFFICE14\htmlchkr.dll" will solve the issue.
    https://social.msdn.microsoft.com/Forums/en-US/eb2e0f6e-c8e4-4e92-ac5e-a09d72759eda/rich-text-field-error-in-webform?forum=sharepointcustomizationprevious
    But I just disabled "cannot be blank", and it solved the issue.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Why i'm getting exception InvalidOperationException: Invoke or BeginInvoke cannot be called on a control until the window handle has been created ?

    I have a backgroundworker1 dowork event and inside:
    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    BackgroundWorker bgw = (BackgroundWorker)sender;
    if (bgw.CancellationPending == true)
    return;
    else
    this.BeginInvoke(new MethodInvoker(delegate
    timer1.Stop();
    Button1Code();
    timer1.Start();
    trackBar2.Enabled = false;
    trackBar1.Enabled = false;
    while (true)
    bitmaps = ImagesComparison.get_images_with_clouds(b1);
    for (int i = 0; i < bitmaps.Length; i++)
    ConvertTo1or8Bit.BitmapToGIF(bitmaps[i], @"c:\convertedgifs\" + i.ToString("D6") + ".gif");
    break;
    The exception is on the BeginInvoke part.
    In the last few days i was running the program many times and i didn't have this exception even once.
    And now every times i'm running it i'm getting the exception.
    System.InvalidOperationException was unhandled by user code
    HResult=-2146233079
    Message=Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
    Source=System.Windows.Forms
    StackTrace:
    at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
    at System.Windows.Forms.Control.BeginInvoke(Delegate method, Object[] args)
    at System.Windows.Forms.Control.BeginInvoke(Delegate method)
    at mws.ScanningClouds.backgroundWorker1_DoWork(Object sender, DoWorkEventArgs e) in d:\C-Sharp\Download File\Downloading-File-Project-Version-012\Downloading File\ScanningClouds.cs:line 715
    at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    InnerException:
    Line 715 is: this.BeginInvoke(new MethodInvoker(delegate

    Where are you starting the background worker from?  Possibly the constructor of the form?
    It would be greatly appreciated if you would mark any helpful entries as helpful and if the entry answers your question, please mark it with the Answer link.

  • System.InvalidOperationException: Call to Excel Services returned an error. --- Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry. We ran into a problem completing your request

    0
    HI All,
    I  am having problem with the power pivot dashboard.
    power pivot dashboard processing job fails with the follwoing error message.
    SP 2013 with 2008 r2
    SQL 2014 power pivot on new analysis server.
    Data refersh of cube and database works finw form the power pivot gallery.
    The Execute method of job definition Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob (ID 726034a7-b9a9-45a6-b720-640b3f785e49) threw an exception. More information
    is included below.  Call to Excel Services returned an error.
    ULS error:
    EXCEPTION: System.InvalidOperationException: Call to Excel Services returned an error. ---> Microsoft.AnalysisServices.SPClient.Interfaces.ExcelServicesException: We're sorry.
    We ran into a problem completing your request. ---> Microsoft.Office.Excel.Server.WebServices.ExcelServerApiException: We're sorry. We ran into a problem completing your request.   
     at Microsoft.Office.Excel.Server.WebServices.ApiShared.ExecuteServerSessionMethod(Boolean hasSessionId, String sessionId, CoreServerSessionMethod coreWebMethod, String name,
    Boolean skipFeatureCheck)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookInternal(String workbookPath, Boolean editingMode, String uiCultureName, String dataCultureName, Boolean
    newWorkbook, Boolean suppressRefreshOnOpen, Boolean openExclusive, Status[]& status)   
     at Microsoft.Office.Excel.Server.WebServices.ExcelService.OpenWorkbookEx(String workbookPath, String uiCultureName, String dataCultureName, Boolean exclusive, Status[]&
    status)    
     at Microsoft.AnalysisServices.SPClient.ExcelApi.<>c__DisplayClassa.<OpenWorkbookEx>b__9(ExcelService svc, Status[]& status)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)     -
    -- End of inner exception stack trace ---     -
    -- End of inner exception stack trace ---   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.Call[T](String fileUrl, ExcelServiceCall`1 serviceCall, String methodName, Object[] parameters)   
     at Microsoft.AnalysisServices.SPClient.ExcelApi.OpenWorkbookEx(String fileUrl, String uiCultureName, String dataCultureName, Boolean exclusive)   
     at Microsoft.AnalysisServices.SPClient.ASSPClientProxy.OpenWorkbookModelForRefresh(String workbookPath, SessionLifetimePolicy lifetimePolicy)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.RefreshUsageCube(GeminiServiceApplication application)   
     at Microsoft.AnalysisServices.SPAddin.UsageProcessingTimerJob.Execute(Guid targetInstanceId)
    Thanks
    Ravi

    HI Ravi,
    Did you find the solution?
    Thanks in advance
    Regards,
    Faraz Javaid

  • Error in CLR: InvalidOperationException - The current type is an interface and cannot be constructed. Are you missing a type mapping?

    Hi, I'm trying to execute a .NET assembly's method from SQL Server 2012 Express, but I'm stuck with this error calling the sp:
    Microsoft.Practices.ServiceLocation.ActivationException: Activation error occured while trying to get instance of type ISymmetricCryptoProvider, key "TripleDESCryptoServiceProvider" ---> Microsoft.Practices.Unity.ResolutionFailedException:
    Resolution of the dependency failed, type = "Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider", name = "TripleDESCryptoServiceProvider".
    Exception occurred while: while resolving.
    Exception is: InvalidOperationException - The current type, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, is an interface and cannot be constructed. Are you missing a type mapping?
    At the time of the exception, the container was:
      Resolving Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider,TripleDESCryptoServiceProvider
     ---> System.InvalidOperationException: The current type, Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.ISymmetricCryptoProvider, is an interface and cannot be constructed. Are you missing a type mapping?
    System.InvalidOperationException:
       en Microsoft.Practices.ObjectBuilder2.DynamicMethodConstructorStrategy.ThrowForAttemptingToConstructInterface(IBuilderContext context)
       en BuildUp_Microsoft.Practices.EnterpriseLibrary.Security
    Microsoft.Practices.ServiceLocation.ActivationException:
       en Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key)
       en Microsoft.Practices.ServiceLocation.ServiceLocatorImplBase.GetInstance[TService](String key)
       en Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.GetSymmetricCryptoProvider(String symmetricInstance)
       en Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.Cryptographer.DecryptSymmetric(String symmetricInstance, String ciphertextBase64)
       en ...
    Is there any limitation by design for Interface instantiation from CLR database?
    Any help I will appreciate, thanks a million!!

    Bob, thanks for your response.. Yes, the code works fine outside of SQLCLR. This is the class I'm trying to instantiate, I'm using it to envolve Cryptographer, an Enterprise Library 5.0 class actually, so I have no control to test it without referring the
    interface.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.Practices.EnterpriseLibrary.Security.Cryptography;
    using System.Security.Cryptography;
    using Microsoft.SqlServer.Server;
    using System.Data.SqlTypes;
    namespace Cars.UtileriasGlobales.Helpers
        /// <summary>
        /// Clase que permite encriptar y desencriptar cadenas de textos utilizando
        /// TripleDESCryptoServiceProvider de Enterprise Library 5.0
        /// </summary>
        public static class Cryptography
            #region Metodos
            [SqlProcedure]
            public static void DesencriptarSQLServer(SqlString cadena, out SqlString cadenaDesencriptada)
                cadenaDesencriptada = !String.IsNullOrEmpty(cadena.ToString()) ? Cryptographer.DecryptSymmetric("TripleDESCryptoServiceProvider", cadena.ToString().Replace(" ", "+"))
    : String.Empty;
            #endregion
    I have collected all the dependent assemblies in one directory 'C:\migrate', so the create assembly finish ok. This is the script to create the assembly I'm using:
    sp_configure 'clr enable', 1
    GO
    RECONFIGURE
    GO
    ALTER DATABASE cars SET TRUSTWORTHY ON
    GO
    CREATE ASSEMBLY CryptographyEntLib5
    AUTHORIZATION dbo
    FROM 'C:\migrate\Cars.UtileriasGlobales.dll'
    WITH PERMISSION_SET = UNSAFE
    GO
    CREATE PROCEDURE usp_Desencriptar
    @cadena nvarchar(200),
    @cadenaDesencriptada nvarchar(MAX) OUTPUT
    AS EXTERNAL NAME CryptographyEntLib5.[Cars.UtileriasGlobales.Helpers.Cryptography].DesencriptarSQLServer
    GO
    DECLARE @msg nvarchar(MAX)
    EXEC usp_Desencriptar 'Kittu And Tannu',@msg output
    PRINT @msg

  • Havinf problem with my oracle transaction.Error: InvalidOperationException.

    I use the same oraclecommand for different 2 sql statements in one transaction. One is a simple select, another is an insert. What i wantto do is to select relevant data from related table(by select statement) and insert it into another one(by insert statement). When executing these command(one for select statement is a cmd.ExecuteReader(CommandBehavior.CloseConnection) and the other for insert statement is cmd.ExecuteNonQuery() ) it throws no exception, however when committing transaction, it throws an exception that says "InvalidOperationException was caught". When i try two different commands, it still gives the same error. Could someone pls help me? Thanks in advance...
    Here is my codes:
    db = new Database(); // here is my database class.
    db.Connect();
    OracleCommand cmd = new OracleCommand();
    cmd.Connection = db.Connection;
    cmd.CommandType = CommandType.Text;
    OracleDataReader dr = null;
    try
    MiktarHesapla();
    cmd.CommandText = "SELECT t2.bursno, t2.adi, t2.soyadi, t2.bokod, t2.okulu, t2.sinifi, t2.bakod, t2.bursyerikodu, t1.bursyeriadi, t2.bturkod, t2.babaadi, t2.anneadi, t1.basvurutarihi " +
    "FROM DONEMLER t1 INNER JOIN BURSLAR t2 ON t1.bursno = t2.bursno " +
    "WHERE t1.yil = :YIL and t1.donem = :DONEM ORDER BY t2.bursno ";
    cmd.Prepare();
    cmd.Parameters.Clear();
    cmd.Parameters.Add(":YIL" ,fYIL);
    cmd.Parameters.Add(":DONEM" ,fDONEM);
    dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
    while (dr.Read())
    fBURSNO = dr["BURSNO"].ToString();
    fADI = dr["ADI"].ToString();
    fSOYADI = dr["SOYADI"].ToString();
    fOGRENIMI = Convert.ToInt32(dr["BOKOD"].ToString());
    fOKULU = dr["OKULU"].ToString();
    fSINIFI = dr["SINIFI"].ToString();
    fBURSALAN = Convert.ToInt32(dr["BAKOD"].ToString());
    fBURSYERI = Convert.ToInt32(dr["BURSYERIKODU"].ToString());
    fBURSYERIADI = dr["BURSYERIADI"].ToString();
    fBURSTURU = Convert.ToInt32(dr["BTURKOD"].ToString());
    fBABAADI = dr["BABAADI"].ToString();
    fANAADI = dr["ANNEADI"].ToString();
    fBASVURUTARIHI = Convert.ToDateTime(dr["BASVURUTARIHI"].ToString());
    cmd.CommandText = "INSERT INTO CIKTI1(BURSNO,ADI,SOYADI,OGRENIMI,OKULU,SINIFI,BURSALAN,MIKTAR,BURSYERI,BURSYERIADI,BURSTURU,BABAADI,ANAADI,BASVURUTARIHI)" +
    " VALUES (:BURSNO,:ADI,:SOYADI,:OGRENIMI,:OKULU,:SINIFI,:BURSALAN,:MIKTAR,:BURSYERI,:BURSYERIADI,:BURSTURU,:BABAADI,:ANAADI,:BASVURUTARIHI)";
    cmd.Prepare();
    cmd.Parameters.Clear();
    cmd.Parameters.Add(":BURSNO", fBURSNO);
    cmd.Parameters.Add(":ADI", fADI);
    cmd.Parameters.Add(":SOYADI", fSOYADI);
    cmd.Parameters.Add(":OGRENIMI", fOGRENIMI);
    cmd.Parameters.Add(":OKULU", fOKULU);
    cmd.Parameters.Add(":SINIFI", fSINIFI);
    cmd.Parameters.Add(":BURSALAN", fBURSALAN);
    cmd.Parameters.Add(":MIKTAR", fMIKTAR);
    cmd.Parameters.Add(":BURSYERI", fBURSYERI);
    cmd.Parameters.Add(":BURSYERIADI", fBURSYERIADI);
    cmd.Parameters.Add(":BURSTURU", fBURSTURU);
    cmd.Parameters.Add(":BABAADI", fBABAADI);
    cmd.Parameters.Add(":ANAADI", fANAADI);
    if (fBASVURUTARIHI.ToShortDateString() != "01.01.0001")
    { cmd.Parameters.Add(":BASVURUTARIHI", fBASVURUTARIHI.ToShortDateString()); }
    else { cmd.Parameters.Add(":BASVURUTARIHI", DBNull.Value); }
    cmd.ExecuteNonQuery();
    db.Transaction.Commit();
    return true;
    catch
    return false;
    finally
    db.Disconnect();
    dr.Close();
    }

    hello,
    there are two ways to do this :
    1) submit two jobs, one that prints and one that creates the PDF
    2) use reports advanced distribution to print and create a PDF file on the server as part of the same job, and then use web.show_document to bring up the PDF in the browser.
    however, this brings up the question, why exactly you want to print and display at the same time. why not display it and let the user print form Acrobat Reader.
    thanks,
    ph.

  • ValuePattern.SetValue Throws ElementNotAvailableException (Inner Exception of InvalidOperationException)

    I have a Wpf FrameworkElement derived control that offers a custom AutomationPeer:
    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Windows;
    using System.Windows.Automation.Peers;
    using System.Windows.Automation.Provider;
    namespace TSystem.Content
    internal class MarkTopicElementAutomationPeer : FrameworkElementAutomationPeer, IValueProvider
    private static readonly Dictionary<string, TcsMarkStates> StringToStateMap = new Dictionary
    <string, TcsMarkStates>
    {"Positive", TcsMarkStates.Positive},
    {"Negative", TcsMarkStates.Negative},
    {"Neutral", TcsMarkStates.Neutral}
    #region Constructors
    public MarkTopicElementAutomationPeer(FrameworkElement owner) : base(owner)
    if (!(owner is MarkTopicElement))
    throw new ArgumentException("Owner must derive from MarkTopicElement");
    #endregion
    #region Automation Peer Overrides
    protected override string GetNameCore()
    StringBuilder name = new StringBuilder();
    name.AppendFormat("MarkTopicElement:{0}:{1}", OwnerAsElement.Caption, OwnerAsElement.ElementID);
    Topic parentTopic = OwnerAsElement.FindLogicalAncestorByType<Topic>();
    if (null != parentTopic)
    name.AppendFormat(":ParentTopic:{0}:{1}", parentTopic.GetType(), parentTopic.Instance);
    return name.ToString();
    public override object GetPattern(PatternInterface patternInterface)
    return patternInterface == PatternInterface.Value ? this : base.GetPattern(patternInterface);
    protected override AutomationControlType GetAutomationControlTypeCore()
    return AutomationControlType.ComboBox;
    protected override bool IsContentElementCore()
    return true;
    protected override bool IsControlElementCore()
    return true;
    #endregion
    #region IValueProvider Implementation
    public bool IsReadOnly
    get { return OwnerAsElement.ReadOnly; }
    public void SetValue(string value)
    OwnerAsElement.ChangeMarkState(StateFromString(value));
    public string Value
    get { return OwnerAsElement.MarkState.ToString(); }
    #endregion
    #region Helper methods
    private MarkTopicElement OwnerAsElement
    get { return (MarkTopicElement) Owner; }
    private static TcsMarkStates StateFromString(string value)
    TcsMarkStates state;
    return (StringToStateMap.TryGetValue(value, out state) ? state : TcsMarkStates.Neutral);
    #endregion
    However, when I try to access its implementation the ValuePattern:
    WpfComboBox mark = HistoryPage.UIEVSite234Window.UIHostedPageWindow.UIItemCustom.UIItemCustom11.StartedTopic.StartedJustPTA;
    var markElement = (AutomationElement) mark.NativeElement;
    ValuePattern pattern = (ValuePattern) markElement.GetCurrentPattern(ValuePattern.Pattern);
    pattern.SetValue("Positive");
    It throws this exception:
    Result Message: 
    Test method EVTCSTest.HistoryStartedTest.SetStartedToPositive threw exception:
    System.Windows.Automation.ElementNotAvailableException: Element not available ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
    Result StackTrace: 
    at UIAutomationClient.IUIAutomationValuePattern.SetValue(String val)
       at System.Windows.Automation.ValuePattern.SetValue(String value)
     --- End of inner exception stack trace ---
        at System.Windows.Automation.ValuePattern.SetValue(String value)
       at EVTCSTest.HistoryStartedTest.SetStartedToPositive() in c:\Development\zTest\EVTCSTest\EVTCSTest\HistoryStartedTest.cs:line 46
    Any ideas why this may be?  I know that the element is enabled and is not read only.
    One final update...I have confirmed that it is getting to my implementation of the read-only Value property of my automation peer.  However it doesn't seem to even be reaching my implementation of SetValue.
    Thanks,
    Kelly Hilliard

    Hi,
    Based on your description, I don’t think that the issue is really related to Coded UI test itself. Your issue is mainly on setting a value using ValuePattern.SetValue. I think it is more related to accessibility and automation. I noticed that you post a
    new thread on Windows Desktop Development for Accessibility and automation forum:
    http://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/8c8f4566-22df-4944-ba57-13898dcec6be/valuepatternsetvalue-throws-elementnotavailableexception-inner-exception-of?forum=windowsaccessibilityandautomation#8c8f4566-22df-4944-ba57-13898dcec6be
    I am not an expert on accessibility and automation, I am sorry for that I can’t provide you something useful about ValuePattern.SetValue method’s usage. I think that community members on Windows Desktop Development for Accessibility and Automation forum
    will help you resolve this issue better.
    Thank you for your understanding and support.
    Best 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.

  • InvalidOperationException in CloudBlobContainer.ListBlobsSegmentedAsync on 4.1, but not 3.2 Storage Preview (WP8)

    Hi there,
    We've been using the Storage-Preview on Windows Phone 8.0. In the following code, token is an SAS token to access the container.
    container = new CloudBlobContainer(new Uri(token));
    BlobResultSegment segment = await container.ListBlobsSegmentedAsync(null);
    This works fine on 3.2 Preview, but crashes with an InvalidOperationException (Invalid blob list item returned) on the latest version.. All other operations to fetch Containers (azure node.js sdk) on the server itself work fine.
    Any guesses? Thanks :(

    Hi,
    >>This works fine on 3.2 Preview, but crashes with an InvalidOperationException (Invalid blob list item returned) on the latest version..
    Based on my understand, you don't do any changing of your code, but it works fine on Storage-Preview 3.2, but received error "InvalidOperationException " on Windows Azure Storage 4.1.0. This is weird, from the
    Windows Azure Storage 4.1.0, we can see that it support Windows Phone 8.0, I suggest you use console application to test whether it works, and give further information here.
    Best Regards,
    Jambor
    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.

  • No way to publish a workflow, I get this error: System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope ... is not in an active state. Its current state is 'Unregistering'

    Hi,
    I'm using Project Server 2013 and I'm not able to publish a workflow in SharePoint Designer 2013, I get this error:
    System.InvalidOperationException: Operation failed with error Microsoft.Workflow.Client.ScopeInactiveException: Scope '/SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777' is not in an active state. Its current
    state is 'Unregistering'. HTTP headers received from the server - ActivityId: c47ef567-8c54-4ae0-9a1a-1e4fb51320d8. NodeId: TestServer. Scope: /SharePoint/default/d7feb9ea-ccb2-4ec3-8f89-2a45b6cf3777. Client ActivityId : c6e5979c-20f8-e042-1f9d-2cb2a25d7f9e.
    ---> System.Net.WebExceptio
    The thing is that I transferred the databases from a Prod.Env. to the Test Env. and from that moment on the Test Env. stopped working (only workflows), then I
    was thinking that maybe the workflow is not working in the Test Environment because when I transferred the databases from Prod Env to Test Env I didn’t transfer the databases related to workflow, I only transferred:
    WSS_Content
    PWA_ServiceDB
    But I didn’t transfer:
    SBGatewayDatabase
    SBManagementDB
    SBMessageContainer01
    WFInstanceManagementDB
    WFManagementDB
    WFResourceManagementDB
    I didn’t transfer them because, before, when I transferred DB’s in version 2010, these DB’s were not needed, as the workflows were done using another method.
    So, I tried to create a new workflow in the Test Env. but there is no way, I always get that error.
    I've tried to Register again the workflow, and the result looks ok, but it doesn't solve the problem:
    Register-SPWorkflowService
    –SPSite "http://whatever/PWA"
    –WorkflowHostUri "http://TestServer:12291"
    –AllowOAuthHttp -Force
    Do you know how to solve this issue or have an idea to give me some light?
    Thank you for your help and regards,
    José Espases

    Looks like you haven't defined the WF scope or the site where you are trying to deploy the workflow to isn't included in the scope
    Check this article
    http://fangdahai.blogspot.in/2013/04/on-premise-windows-workflow-server.html
    Thanks | epmXperts | http://epmxperts.wordpress.com

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

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

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

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

  • I get InvalidOperationException when I try to use Metadatatype with a viewmodel

    I have a model with certain properties. I use separated a class with the MetadataType to define requirements for properties. I also try to use the same metadata class with a viewmodel defining just a subset of properties. This is a simple example code of the
    situation for clarification:
    [MetadataType(typeof(Metadata))]
    class ModelA
    public class Metadata
    [Required]
    public object Property1 { get; set; }
    [Required]
    public object Property2 { get; set; }
    public int Property1 { get; set; }
    public int Property2 { get; set; }
    [MetadataType(typeof(ModelA.Metadata))]
    class ViewModelA
    public int Property1 { get; set; }
    The problem is when the razor engine tries to process the view, it throws an InvalidOperationException with the following error message:
    The associated metadata type for type 'ViewModelA' contains the following unknown properties or fields: Property2.
    Please make sure that the names of these members match the names of the properties on the main type.
    In my understanding the problem here is that the metadata contains properties which the the view model does not. However, this way I don't really understand the advantages of having a metadata class. So my questions are
    1) Is there a way to prevent of throwing this exception?
    2) If not, what it the best pattern to this situation? (like using a model, a viewmodel, which contains the subset of the properties of the model, defining data annotations by keeping the DRY approach).

    Hi,
    This looks like a question about ASP.NET MVC. Best place to ask it would be on the asp.net forums on
    http://www.asp.net.
    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.
    Click
    HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and
    makes it easier for other visitors to find the resolution later.

  • InvalidOperationException - "Cannot perform this operation while dispatcher processing is suspended."

    I have a WPF application in .NET 4.5.  The latest version of the map control (version 1.0.1.0) is causing an issue if it is used within a datatemplate.  This does not happen with the previous version I was using from Nuget (version 1.0.0.0).  As
    an aside, what happened to the Nuget package?  Anyways, it is easy to reproduce the issue:
    MainWindow.xaml:
    <Window x:Class="MicrosoftMapError.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow"
    Content="{Binding ViewModel,
    RelativeSource={RelativeSource Self}}">
    <Window.Resources>
    <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
    <ResourceDictionary Source="Views/MapView.xaml" />
    </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
    </Window.Resources>
    </Window>
    MainWindow.cs:
    using MicrosoftMapError.ViewModels;
    using System.Windows;
    namespace MicrosoftMapError
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    this.ViewModel = new MapViewModel();
    public object ViewModel
    get { return (object)GetValue(ViewModelProperty); }
    set { SetValue(ViewModelProperty, value); }
    public static readonly DependencyProperty ViewModelProperty = DependencyProperty.Register(
    "ViewModel",
    typeof(object),
    typeof(MainWindow));
    MapView.xaml:
    <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wpf="clr-namespace:Microsoft.Maps.MapControl.WPF;assembly=Microsoft.Maps.MapControl.WPF"
    xmlns:viewModels="clr-namespace:MicrosoftMapError.ViewModels">
    <DataTemplate DataType="{x:Type viewModels:MapViewModel}">
    <Grid>
    <wpf:Map />
    </Grid>
    </DataTemplate>
    </ResourceDictionary>
    The MapViewModel class is just an empty class, there is nothing to show there.
    And this is the stack trace for the exceptions.
    Outer exception: XamlParseException - The invocation of the constructor on type 'Microsoft.Maps.MapControl.WPF.Map' that matches the specified binding constraints threw an exception.
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
       at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
       at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
       at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
       at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
       at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
       at System.Windows.FrameworkElement.ApplyTemplate()
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Controls.Border.MeasureOverride(Size constraint)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Window.MeasureOverrideHelper(Size constraint)
       at System.Windows.Window.MeasureOverride(Size availableSize)
       at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
       at System.Windows.UIElement.Measure(Size availableSize)
       at System.Windows.Interop.HwndSource.SetLayoutSize()
       at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
       at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)
       at System.Windows.Window.SetRootVisual()
       at System.Windows.Window.SetRootVisualAndUpdateSTC()
       at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
       at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
       at System.Windows.Window.CreateSourceWindowDuringShow()
       at System.Windows.Window.SafeCreateWindowDuringShow()
       at System.Windows.Window.ShowHelper(Object booleanBox)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.DispatcherOperation.InvokeImpl()
       at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Windows.Threading.DispatcherOperation.Invoke()
       at System.Windows.Threading.Dispatcher.ProcessQueue()
       at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at MicrosoftMapError.App.Main() in d:\SoftwareDevelopment\Working\MicrosoftMapError\MicrosoftMapError\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    Inner exception: InvalidOperationException - Cannot perform this operation while dispatcher processing is suspended.
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
       at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at System.Windows.Threading.Dispatcher.Invoke(Delegate method, Object[] args)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfigurationFromWeb.ConfigLoaded(String requestKey, Dictionary`2 sections)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfigurationFromWeb.GetConfigurationSection(String version, String sectionName, String culture, MapConfigurationCallback callback, Boolean reExecuteCallback, Object userState)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfiguration.GetSection(String version, String sectionName, String culture, String key, MapConfigurationCallback callback, Boolean reExecuteCallback, Object userState)
       at Microsoft.Maps.MapControl.WPF.Core.MapConfiguration.GetSection(String version, String sectionName, String culture, String key, MapConfigurationCallback callback, Boolean reExecuteCallback)
       at Microsoft.Maps.MapControl.WPF.Map..ctor()

    Are dev team has looked into this and I believe they have found the issue. They are working on putting together a new release. Also, Microsoft never officially released a Nuget package, someone just took some old buggy libraries and posted them on Nuget
    without asking Microsoft. We are planning to make an official Nuget package.
    http://rbrundritt.wordpress.com

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

  • SqlTransaction.Rollback() does not throw InvalidOperationException in case the transaction has already been rolled back.

    According to
    MSDN SqlTransaction.Rollback() method must throw InvalidOperationException in case the transaction has already been committed or rolled back. 
    However, in my tests I don't get any exceptions. Here is the code:
    CREATE PROCEDURE dbo.USP_TEST_TX_PROC
    AS
    BEGIN
    SELECT 1/0;
    ROLLBACK TRANSACTION;
    END
    GO
    using(SqlConnection con = new SqlConnection(@"Data Source=XXX;Initial Catalog=TestDB;Integrated Security=True"))
    con.Open();
    SqlTransaction tr = con.BeginTransaction();
    SqlCommand cmd = new SqlCommand("dbo.USP_TEST_TX_PROC", con, tr) { CommandType = CommandType.StoredProcedure};
    try
    cmd.ExecuteNonQuery();
    tr.Commit();
    catch (Exception ex)
    try
    tr.Rollback();
    catch (Exception ex2)
    Console.WriteLine(" Message: {0}", ex2.Message);
    What am I doing wrong?
    Thank you.
    Alexey

    Hello Alexey,
    I created a client side demo which could throw the InvalidOperationException:
    using (SqlConnection connection = new SqlConnection(@"Server=(localdb)\Projects;Database=DFDB;Trusted_Connection=True;"))
    connection.Open();
    SqlCommand command = connection.CreateCommand();
    SqlTransaction transaction;
    transaction = connection.BeginTransaction("SampleTransaction");
    command.Connection = connection;
    command.Transaction = transaction;
    try
    command.CommandText = "ProInsertIntoOrder 1,'1'";
    command.ExecuteNonQuery();
    transaction.Rollback();
    throw new Exception();
    catch (Exception ex)
    // Attempt to roll back the transaction.
    try
    transaction.Rollback();
    catch (InvalidOperationException ex2)
    Console.WriteLine("Rollback Exception Type: {0}", ex2.GetType());
    Console.WriteLine(" Message: {0}", ex2.Message);
    You could have a try. However, it is not clear why it could detect the ROLLBACK statement on the server side, I suggest that you could post this feedback to:
    https://connect.microsoft.com/VisualStudio/feedback/LoadSubmitFeedbackForm
    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.

Maybe you are looking for