Closed JBaltika closed 5 years ago
@JBaltika Could you provide some steps to reproduce the error? And if the error occurs when working with a specific file, please attach the contents (unless it's sensitive data).
I have the same error on 1st opening *.csporj file (TargetFramework=netcoreapp3.0) in VS2019 in preview mode (on preview tab). I do not have this error if I open the same file in a new tab (Edit Project File).
XPath Tools: version 6.0.2 (2019-08-12).
@AlexN78 Could you attach/post the contents of the csproj
-file?
Steps to reproduce:
<entry>
<record>2036</record>
<time>2019/08/28 18:39:00.176</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.ArgumentException: The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
 at EnvDTE._DTE.get_ActiveDocument()
 at ReasonCodeExample.XPathTools.ActiveDocument.get_Current() in C:\projects\xpathinformation\ReasonCodeExample.XPathTools\ActiveDocument.cs:line 14
 at ReasonCodeExample.XPathTools.VisualStudioIntegration.XmlTextViewCreationListener.TextViewCreated(IWpfTextView textView) in C:\projects\xpathinformation\ReasonCodeExample.XPathTools\VisualStudioIntegration\XmlTextViewCreationListener.cs:line 38
 at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.<>c__DisplayClass254_0.<BindContentTypeSpecificAssets>b__1()
 at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
--- End of stack trace from previous location where exception was thrown ---
 at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)</description>
</entry>
The error has only been observed/reproduced when editing csproj
files using the steps outlined above.
When opening csproj
files "directly" (i.e. "File -> Open -> File..."), the error doesn't occur.
This should be fixed in v6.0.3. Please reopen this issue if the error persists.
Hi, I am getting quite strange error a lot in VS2019 ... Any thoughts?