Quantcast
Channel: Visual Studio General Questions forum
Viewing all 21115 articles
Browse latest View live

Visual Studio For Linux Development - Help Needed with locating header files

$
0
0

I want to build a project for a Linux system, so I tried to use VS2017's Linux build tools (it's my first time with them, though).  When I went to main.cpp after creating a new project for it, I saw that I have an error on the line "#include <cstdio>" that says "cannot open source file "cstdio"".  What do I do make this work?  Thanks in advance.

I also want to know how to get a Linux system to connect to.  Do I need to get a virtual machine, or is there something else I need to do or get?


Visual Studio 2017 15.8 crashes on startup

$
0
0

Here are the first few errors in the activity log. I can't do ANYTHING with VS, including uninstalling or repairing it.

I'd rather not reboot right now because I am running a performance test that needs to be going for several more hours, but I will if I have to.

  <entry>
    <record>29</record>
    <time>2018/08/16 15:58:19.047</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>PkgDef syntax or I/O error at line 1: Section header: additional characters after closing bracket</description>
    <hr>80004005 - E_FAIL</hr>
    <path>[$RootKey$\Setup\[ProductName]]</path>
  </entry>
  <entry>
    <record>30</record>
    <time>2018/08/16 15:58:19.047</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>PkgDef syntax or I/O error at line 3: Section header: additional characters after closing bracket</description>
    <hr>80004005 - E_FAIL</hr>
    <path>&quot;SrcPath&quot;=&quot;[SourceDir]&quot;</path>
  </entry>
  <entry>
    <record>31</record>
    <time>2018/08/16 15:58:19.047</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>Could not process PkgDef file</description>
    <hr>80004005 - E_FAIL</hr>
    <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\community\detection_keys_reg.pkgdef</path>
  </entry>
  <entry>
    <record>32</record>
    <time>2018/08/16 15:58:19.047</time>
    <type>Warning</type>
    <source>VisualStudio</source>
    <description>Error scanning PkgDef file</description>
    <hr>80004005 - E_FAIL</hr>
    <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\community\detection_keys_reg.pkgdef</path>
  </entry>
  <entry>
    <record>33</record>
    <time>2018/08/16 15:58:19.093</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>PkgDef syntax or I/O error at line 1: Section header: additional characters after closing bracket</description>
    <hr>80004005 - E_FAIL</hr>
    <path>[$RootKey$\Setup\[ProductName]]</path>
  </entry>
  <entry>
    <record>34</record>
    <time>2018/08/16 15:58:19.093</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>PkgDef syntax or I/O error at line 3: Section header: additional characters after closing bracket</description>
    <hr>80004005 - E_FAIL</hr>
    <path>&quot;SrcPath&quot;=&quot;[SourceDir]&quot;</path>
  </entry>
  <entry>
    <record>35</record>
    <time>2018/08/16 15:58:19.093</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>Could not process PkgDef file</description>
    <hr>80004005 - E_FAIL</hr>
    <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\professional\detection_keys_reg.pkgdef</path>
  </entry>
  <entry>
    <record>36</record>
    <time>2018/08/16 15:58:19.093</time>
    <type>Warning</type>
    <source>VisualStudio</source>
    <description>Error scanning PkgDef file</description>
    <hr>80004005 - E_FAIL</hr>
    <path>c:\program files (x86)\microsoft visual studio\2017\professional\common7\ide\extensions\professional\detection_keys_reg.pkgdef</path>
  </entry>
  <entry>

Scc Display Information Dialog in launch Visual Studio 2017

$
0
0

I try launch Visual Studio 2017 (15.8.1, the problem was also in 15.7 in some time), and it show the dialog:

It not show in safemode or after clean chahe, but after few launch, it back to show the error.

The log content:

<?xml version="1.0" encoding="utf-16"?>
<?xml-stylesheet type="text/xsl" href="ActivityLog.xsl"?>
<activity>
  <entry>
    <record>1</record>
    <time>2018/08/20 10:05:27.706</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Microsoft Visual Studio 2017 version: 15.0.28010.2003</description>
  </entry>
  <entry>
    <record>2</record>
    <time>2018/08/20 10:05:27.706</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Log ID</description>
    <guid>{8AA8CA27-7032-4979-AC6D-7B825AC46169}</guid>
  </entry>
  <entry>
    <record>3</record>
    <time>2018/08/20 10:05:27.710</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Running in isolation mode.</description>
  </entry>
  <entry>
    <record>4</record>
    <time>2018/08/20 10:05:27.714</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Looking for master PkgDef file</description>
    <path>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\master.pkgdef</path>
  </entry>
  <entry>
    <record>5</record>
    <time>2018/08/20 10:05:27.716</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Creating PkgDefCacheNonVolatile</description>
  </entry>
  <entry>
    <record>6</record>
    <time>2018/08/20 10:05:27.716</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>PkgDefCache flags</description>
    <hr>00013801</hr>
  </entry>
  <entry>
    <record>7</record>
    <time>2018/08/20 10:05:27.736</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Double-checking master pkgdef file</description>
  </entry>
  <entry>
    <record>8</record>
    <time>2018/08/20 10:05:27.737</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>PkgDefManagement initialized</description>
  </entry>
  <entry>
    <record>9</record>
    <time>2018/08/20 10:05:27.737</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>RootFolder</description>
    <path>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\</path>
  </entry>
  <entry>
    <record>10</record>
    <time>2018/08/20 10:05:27.737</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>ShellFolder</description>
    <path>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\</path>
  </entry>
  <entry>
    <record>66</record>
    <time>2018/08/20 10:05:28.598</time>
    <type>Information</type>
    <source>MruList</source>
    <description>Entering TryPromoteItem</description>
  </entry>
  <entry>
    <record>67</record>
    <time>2018/08/20 10:05:28.598</time>
    <type>Information</type>
    <source>MruList</source>
    <description>Did not find item to promote</description>
  </entry>
  <entry>
    <record>68</record>
    <time>2018/08/20 10:05:28.599</time>
    <type>Information</type>
    <source>MruList</source>
    <description>Entering AddItem. Persistence data for item: %UserProfile%\Documents\Visual Studio 2017\Projects\CAdvanceWorkshop\Tutorial\Program.c|{00000000-0000-0000-0000-000000000000}||False</description>
  </entry>
  <entry>
    <record>69</record>
    <time>2018/08/20 10:05:28.599</time>
    <type>Information</type>
    <source>MruList</source>
    <description>Entering TryPromoteItem</description>
  </entry>
  <entry>
    <record>70</record>
    <time>2018/08/20 10:05:28.599</time>
    <type>Information</type>
    <source>MruList</source>
    <description>Did not find item to promote</description>
  </entry>
  <entry>
    <record>71</record>
    <time>2018/08/20 10:05:28.768</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{7AC58323-1325-44DB-A4D5-2823A1426A13}</guid>
  </entry>
  <entry>
    <record>72</record>
    <time>2018/08/20 10:05:28.768</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Feature Flags Package]</description>
    <guid>{7AC58323-1325-44DB-A4D5-2823A1426A13}</guid>
  </entry>
  <entry>
    <record>73</record>
    <time>2018/08/20 10:05:28.768</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Feature Flags Package]</description>
    <guid>{7AC58323-1325-44DB-A4D5-2823A1426A13}</guid>
  </entry>
  <entry>
    <record>74</record>
    <time>2018/08/20 10:05:28.771</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{EFAEF2D3-8BDB-4D78-B3EB-B55E44203E80}</guid>
  </entry>
  <entry>
    <record>75</record>
    <time>2018/08/20 10:05:28.771</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Rules-based UI contexts implementation]</description>
    <guid>{EFAEF2D3-8BDB-4D78-B3EB-B55E44203E80}</guid>
  </entry>
  <entry>
    <record>76</record>
    <time>2018/08/20 10:05:28.775</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Has Solution and App Container&apos; for UI context 0563cf07-d14f-4b0f-b971-1913c51fa212.</description>
  </entry>
  <entry>
    <record>77</record>
    <time>2018/08/20 10:05:28.776</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CommonCompatibleProjectType&apos; for UI context 07b009b1-d89d-4956-804e-40ea88ab6834.</description>
  </entry>
  <entry>
    <record>78</record>
    <time>2018/08/20 10:05:28.777</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;VSToolWindowUIContext&apos; for UI context 0b963243-bf0f-4f07-bbb5-27830da819eb.</description>
  </entry>
  <entry>
    <record>79</record>
    <time>2018/08/20 10:05:28.778</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CodeCloneFileBasedPackageActivation&apos; for UI context 0e7ef3e2-dede-4d1a-b0f9-12ee78a26b31.</description>
  </entry>
  <entry>
    <record>80</record>
    <time>2018/08/20 10:05:28.778</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Autoload when the AzureTokenProvider nuget package is installed&apos; for UI context 18b3651f-0deb-401e-87ee-6eecb7a7e8de.</description>
  </entry>
  <entry>
    <record>81</record>
    <time>2018/08/20 10:05:28.779</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;LogCat Tool Window&apos; for UI context 197894f5-a027-4e07-9a05-8f37cdc87c0f.</description>
  </entry>
  <entry>
    <record>82</record>
    <time>2018/08/20 10:05:28.780</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;DependencyValidationActivation&apos; for UI context 1bbffb87-b857-4c21-90a1-fc9da21a1c4e.</description>
  </entry>
  <entry>
    <record>83</record>
    <time>2018/08/20 10:05:28.780</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;PowerShellFileSelected&apos; for UI context 1d16d31f-62c9-4d40-a521-a4dc2255004c.</description>
  </entry>
  <entry>
    <record>84</record>
    <time>2018/08/20 10:05:28.781</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Azure Functions Capability&apos; for UI context 1e5670c4-d270-4a0e-bd2b-d59eadd375ec.</description>
  </entry>
  <entry>
    <record>85</record>
    <time>2018/08/20 10:05:28.781</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;AzureResourceManagerToolsJSONOutlineContextRule&apos; for UI context 2a2b9676-4c9a-4e74-9f55-b18c49788560.</description>
  </entry>
  <entry>
    <record>86</record>
    <time>2018/08/20 10:05:28.783</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ActiveProjectSupportsBlend&apos; for UI context 3a014e53-f5ba-4db3-9cd6-9469b8889d1b.</description>
  </entry>
  <entry>
    <record>87</record>
    <time>2018/08/20 10:05:28.783</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Has Solution and App Container and Not Building&apos; for UI context 3b164e37-2e43-4cf9-b3b0-d4cc6a5dbf4a.</description>
  </entry>
  <entry>
    <record>88</record>
    <time>2018/08/20 10:05:28.784</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Test Adapter for Boost.Test&apos; for UI context 3c4b983b-4670-40a8-9e2f-e7b457498c12.</description>
  </entry>
  <entry>
    <record>89</record>
    <time>2018/08/20 10:05:28.785</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Create IntelliTest Context Enabler&apos; for UI context 43e089fc-d57e-4b29-921d-31bd57750a0a.</description>
  </entry>
  <entry>
    <record>90</record>
    <time>2018/08/20 10:05:28.786</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;TaskRunnerExplorerUIContext&apos; for UI context 441e30df-ae09-4fb5-95db-1198a3c5f0a9.</description>
  </entry>
  <entry>
    <record>91</record>
    <time>2018/08/20 10:05:28.787</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Activate Browser Link&apos; for UI context 4d987316-17d4-4741-b0fe-766f88cbd893.</description>
  </entry>
  <entry>
    <record>92</record>
    <time>2018/08/20 10:05:28.787</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Has Solution and App Container and Not Building&apos; for UI context 5c517dfa-808a-4682-80e4-097851b5ac67.</description>
  </entry>
  <entry>
    <record>93</record>
    <time>2018/08/20 10:05:28.788</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ContainerToolsPackageCommandVisibilityRule&apos; for UI context 5d0ad025-3bf2-4260-bdb9-8e320ffa4b1e.</description>
  </entry>
  <entry>
    <record>94</record>
    <time>2018/08/20 10:05:28.789</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;WebProjectsUIContext&apos; for UI context 65f4082e-1631-4a91-9c1d-4870a6f7152f.</description>
  </entry>
  <entry>
    <record>95</record>
    <time>2018/08/20 10:05:28.789</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;AzureResourceManagerToolsAutoLoadContextRule&apos; for UI context 66231e10-79aa-401a-a291-f802e39edf6d.</description>
  </entry>
  <entry>
    <record>96</record>
    <time>2018/08/20 10:05:28.790</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Linux Tool Window&apos; for UI context 670629fc-2347-428a-ac63-a5ca3ed65e30.</description>
  </entry>
  <entry>
    <record>97</record>
    <time>2018/08/20 10:05:28.791</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;LiveUnitTestingPackageActivationContext&apos; for UI context 67c5e672-14fd-4197-8e2f-bcd4f58aa13d.</description>
  </entry>
  <entry>
    <record>98</record>
    <time>2018/08/20 10:05:28.791</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ConfigureAuthContext&apos; for UI context 68706691-355f-4ad3-b906-6ad4e3111eec.</description>
  </entry>
  <entry>
    <record>99</record>
    <time>2018/08/20 10:05:28.792</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Test Adapter for Google Test&apos; for UI context 7517f9ae-397f-48e1-8e1b-dac609d9f52d.</description>
  </entry>
  <entry>
    <record>100</record>
    <time>2018/08/20 10:05:28.792</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CSharp or VB File Active&apos; for UI context 7941d596-a429-42a7-9cff-ba936e31df9b.</description>
  </entry>
  <entry>
    <record>101</record>
    <time>2018/08/20 10:05:28.793</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;StartupDelayed&apos; for UI context 7cac4ae1-2e6b-4b02-a91c-71611e86f273.</description>
  </entry>
  <entry>
    <record>102</record>
    <time>2018/08/20 10:05:28.794</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;BlendSolutionExists&apos; for UI context 7d30c25d-a30b-451a-a4d5-9229204e6aa5.</description>
  </entry>
  <entry>
    <record>103</record>
    <time>2018/08/20 10:05:28.794</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ContainersToolsPackage&apos; for UI context 7fa13108-6cad-490e-a9e7-bfa08ec420e2.</description>
  </entry>
  <entry>
    <record>104</record>
    <time>2018/08/20 10:05:28.795</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CodeCloneProjectBasedPackageActivation&apos; for UI context 83b602bd-0c2f-4c5e-96a5-3e1f58e60e56.</description>
  </entry>
  <entry>
    <record>105</record>
    <time>2018/08/20 10:05:28.795</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ApacheCordovaToolsContext&apos; for UI context 895df540-da8b-49b6-bd64-32ffd1410798.</description>
  </entry>
  <entry>
    <record>106</record>
    <time>2018/08/20 10:05:28.796</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;StartGraphicsDiagnosticsIsUsable&apos; for UI context 8e31647d-30be-4efd-a01c-d4684f9096d1.</description>
  </entry>
  <entry>
    <record>107</record>
    <time>2018/08/20 10:05:28.796</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;TriggersPaneUIContext&apos; for UI context 935ad473-5801-4fe3-983a-753b1212c9b3.</description>
  </entry>
  <entry>
    <record>108</record>
    <time>2018/08/20 10:05:28.797</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;PackageManagerUIContext&apos; for UI context 9c1a4c33-0ecc-4ec7-9f81-75bd534c4825.</description>
  </entry>
  <entry>
    <record>109</record>
    <time>2018/08/20 10:05:28.798</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Generate Unit test default Context Enabler&apos; for UI context 9e320ac6-e171-460b-be27-a8487972575c.</description>
  </entry>
  <entry>
    <record>110</record>
    <time>2018/08/20 10:05:28.799</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;DockerComposePackageAutoLoadRule&apos; for UI context a339e303-52f4-47b4-9091-ac10bd0a1e10.</description>
  </entry>
  <entry>
    <record>111</record>
    <time>2018/08/20 10:05:28.800</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;GitCollaborationPackageActivation&apos; for UI context ade07bab-b689-492c-bc2c-d190b14dae2e.</description>
  </entry>
  <entry>
    <record>112</record>
    <time>2018/08/20 10:05:28.800</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CICDCommand&apos; for UI context b52c9a07-ee56-4224-a834-20c9c4293f16.</description>
  </entry>
  <entry>
    <record>113</record>
    <time>2018/08/20 10:05:28.801</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;TestWindowAutoLoad&apos; for UI context b638d8c9-e2df-4324-81d0-f74d90c9695f.</description>
  </entry>
  <entry>
    <record>114</record>
    <time>2018/08/20 10:05:28.802</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Has Solution and App Container&apos; for UI context beee6818-689a-44d3-bbc4-32e9efe3baa2.</description>
  </entry>
  <entry>
    <record>115</record>
    <time>2018/08/20 10:05:28.802</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Inspector target&apos; for UI context c61989a3-b749-4eb2-972c-6949904fa3ef.</description>
  </entry>
  <entry>
    <record>116</record>
    <time>2018/08/20 10:05:28.803</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;AddOrchestratorSupportVisibilityRule&apos; for UI context c6b376c1-3ff1-4af1-8676-cd95ce77ea1d.</description>
  </entry>
  <entry>
    <record>117</record>
    <time>2018/08/20 10:05:28.804</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Auto load for vb, c#, php&apos; for UI context c7a507c9-4afb-474f-b871-6dc6fe403cf8.</description>
  </entry>
  <entry>
    <record>118</record>
    <time>2018/08/20 10:05:28.805</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CSharp Project or Console App or Web Project Open&apos; for UI context c9b9b439-ce3f-4bb3-bc22-be2284d1d963.</description>
  </entry>
  <entry>
    <record>119</record>
    <time>2018/08/20 10:05:28.807</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CSharp Project or Console App or Web Project Open&apos; for UI context cd2def36-cca4-46b6-b93b-7b5c0f4d3be1.</description>
  </entry>
  <entry>
    <record>120</record>
    <time>2018/08/20 10:05:28.808</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;DockerComposePackageCommandVisibilityRule&apos; for UI context cf83100a-911a-4362-9374-f6c9a93c158e.</description>
  </entry>
  <entry>
    <record>121</record>
    <time>2018/08/20 10:05:28.809</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CSharp Project or Console App or Web Project Open&apos; for UI context d018aba7-8308-4a69-bf59-337cb7e0537d.</description>
  </entry>
  <entry>
    <record>122</record>
    <time>2018/08/20 10:05:28.810</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;GitCollaborationPackageActivation&apos; for UI context d97e3df7-11c5-4326-820f-ff80c6cac262.</description>
  </entry>
  <entry>
    <record>123</record>
    <time>2018/08/20 10:05:28.811</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Auto load Entity Data Model Package&apos; for UI context e000c7e5-dba5-4682-abe0-7f6ce57b236d.</description>
  </entry>
  <entry>
    <record>124</record>
    <time>2018/08/20 10:05:28.812</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Run IntelliTest Context Enabler&apos; for UI context e3d07646-d637-48a4-9396-fc4129a2fe89.</description>
  </entry>
  <entry>
    <record>125</record>
    <time>2018/08/20 10:05:28.812</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;CollaborationPackageActivation&apos; for UI context e406cf35-8143-43e8-b02c-34e2649cf66f.</description>
  </entry>
  <entry>
    <record>126</record>
    <time>2018/08/20 10:05:28.812</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;unnamed&apos; for UI context e551fe48-4b78-4dc4-9ddc-183cbfea7d5b.</description>
  </entry>
  <entry>
    <record>127</record>
    <time>2018/08/20 10:05:28.813</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Load Managed Project Package&apos; for UI context e7df1626-44dd-4e8c-a8a0-92eab6ddc16e.</description>
  </entry>
  <entry>
    <record>128</record>
    <time>2018/08/20 10:05:28.813</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ProjectSystemComponentsUIContext&apos; for UI context eb597fe1-59de-4cd7-89dc-598f9aef4186.</description>
  </entry>
  <entry>
    <record>129</record>
    <time>2018/08/20 10:05:28.814</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;HtmlDesignToolsContext&apos; for UI context eb7164cf-770a-4b61-9508-dd49ac0a0703.</description>
  </entry>
  <entry>
    <record>130</record>
    <time>2018/08/20 10:05:28.814</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;unnamed&apos; for UI context ec852623-f4b6-4c74-9272-3361ef323b5b.</description>
  </entry>
  <entry>
    <record>131</record>
    <time>2018/08/20 10:05:28.815</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;VSToolWindowUIContext&apos; for UI context ee688735-d56d-4c7b-9a19-1b4cb1b8b504.</description>
  </entry>
  <entry>
    <record>132</record>
    <time>2018/08/20 10:05:28.816</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ServiceFabircContainerRule&apos; for UI context f52dfcef-5313-4752-9339-c7f67b5f3674.</description>
  </entry>
  <entry>
    <record>133</record>
    <time>2018/08/20 10:05:28.816</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;Microsoft Library Manager&apos; for UI context f8c0db80-39c2-4f32-9be3-701f2d25add8.</description>
  </entry>
  <entry>
    <record>134</record>
    <time>2018/08/20 10:05:28.817</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;ConfigFile&apos; for UI context f8c0db80-39c2-4f32-9be3-701f2d25add9.</description>
  </entry>
  <entry>
    <record>135</record>
    <time>2018/08/20 10:05:28.818</time>
    <type>Information</type>
    <source>UI context rules</source>
    <description>Created rule &apos;VSToolWindowUIContext&apos; for UI context fd7ce107-0b2a-409f-8e1c-90bf51caf448.</description>
  </entry>
  <entry>
    <record>136</record>
    <time>2018/08/20 10:05:28.818</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Rules-based UI contexts implementation]</description>
    <guid>{EFAEF2D3-8BDB-4D78-B3EB-B55E44203E80}</guid>
  </entry>
  <entry>
    <record>137</record>
    <time>2018/08/20 10:05:28.818</time>
    <type>Information</type>
    <source>AutoLoadManager</source>
    <description>Visual Studio is using the restricted package autoload manager that allows synchronous autoload requests.</description>
  </entry>
  <entry>
    <record>138</record>
    <time>2018/08/20 10:05:28.823</time>
    <type>Warning</type>
    <source>AutoLoadManager</source>
    <description>Package {88774dc5-045c-4df7-9a6a-cf4803082466} for UI context {adfc4e63-0397-11d1-9f4e-00a0c911004f} loads synchronously and may not be supported in a future release.</description>
  </entry>
  <entry>
    <record>139</record>
    <time>2018/08/20 10:05:28.823</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{88774DC5-045C-4DF7-9A6A-CF4803082466}</guid>
  </entry>
  <entry>
    <record>140</record>
    <time>2018/08/20 10:05:28.823</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [IntelGfxDbgPackage]</description>
    <guid>{88774DC5-045C-4DF7-9A6A-CF4803082466}</guid>
  </entry>
  <entry>
    <record>141</record>
    <time>2018/08/20 10:05:28.837</time>
    <type>Information</type>
    <source>Package Framework</source>
    <description>Initialized ServiceProvider.GlobalProvider from SetSite.</description>
  </entry>
  <entry>
    <record>142</record>
    <time>2018/08/20 10:05:28.837</time>
    <type>Information</type>
    <source>Package Framework</source>
    <description>Initialized AsyncServiceProvider.GlobalProvider from SetSite.</description>
  </entry>
  <entry>
    <record>143</record>
    <time>2018/08/20 10:05:28.852</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{DA9FB551-C724-11D0-AE1F-00A0C90FFFC3}</guid>
  </entry>
  <entry>
    <record>144</record>
    <time>2018/08/20 10:05:28.853</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Visual Studio Environment Package]</description>
    <guid>{DA9FB551-C724-11D0-AE1F-00A0C90FFFC3}</guid>
  </entry>
  <entry>
    <record>145</record>
    <time>2018/08/20 10:05:28.853</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Visual Studio Environment Package]</description>
    <guid>{DA9FB551-C724-11D0-AE1F-00A0C90FFFC3}</guid>
  </entry>
  <entry>
    <record>146</record>
    <time>2018/08/20 10:05:28.854</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{C9DD4A57-47FB-11D2-83E7-00C04F9902C1}</guid>
  </entry>
  <entry>
    <record>147</record>
    <time>2018/08/20 10:05:28.856</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Visual Studio Debugger]</description>
    <guid>{C9DD4A57-47FB-11D2-83E7-00C04F9902C1}</guid>
  </entry>
  <entry>
    <record>148</record>
    <time>2018/08/20 10:05:28.857</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Loading UI library</description>
    <guid>{C9DD4A57-47FB-11D2-83E7-00C04F9902C1}</guid>
    <path>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\Packages\Debugger\*\VSDebugUI.dll</path>
  </entry>
  <entry>
    <record>149</record>
    <time>2018/08/20 10:05:28.976</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{F5E7E720-1401-11D1-883B-0000F87579D2}</guid>
  </entry>
  <entry>
    <record>150</record>
    <time>2018/08/20 10:05:28.976</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Text Management Package]</description>
    <guid>{F5E7E720-1401-11D1-883B-0000F87579D2}</guid>
  </entry>
  <entry>
    <record>151</record>
    <time>2018/08/20 10:05:28.991</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Text Management Package]</description>
    <guid>{F5E7E720-1401-11D1-883B-0000F87579D2}</guid>
  </entry>
  <entry>
    <record>152</record>
    <time>2018/08/20 10:05:29.014</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{53544C4D-E3F8-4AA0-8195-8A8D16019423}</guid>
  </entry>
  <entry>
    <record>153</record>
    <time>2018/08/20 10:05:29.015</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Visual Studio Source Control Integration Package]</description>
    <guid>{53544C4D-E3F8-4AA0-8195-8A8D16019423}</guid>
  </entry>
  <entry>
    <record>154</record>
    <time>2018/08/20 10:05:29.017</time>
    <type>Warning</type>
    <source>AutoLoadManager</source>
    <description>Package {7fe30a77-37f9-4cf2-83dd-96b207028e1b} for UI context {11b8e6d7-c08b-4385-b321-321078cdd1f8} loads synchronously and may not be supported in a future release.</description>
  </entry>
  <entry>
    <record>155</record>
    <time>2018/08/20 10:05:29.017</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{7FE30A77-37F9-4CF2-83DD-96B207028E1B}</guid>
  </entry>
  <entry>
    <record>156</record>
    <time>2018/08/20 10:05:29.017</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [SccProviderPackage]</description>
    <guid>{7FE30A77-37F9-4CF2-83DD-96B207028E1B}</guid>
  </entry>
  <entry>
    <record>157</record>
    <time>2018/08/20 10:05:29.174</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{0B93CCC5-BC52-40E9-91A3-7B8B58C4526B}</guid>
  </entry>
  <entry>
    <record>158</record>
    <time>2018/08/20 10:05:29.174</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration]</description>
    <guid>{0B93CCC5-BC52-40E9-91A3-7B8B58C4526B}</guid>
  </entry>
  <entry>
    <record>159</record>
    <time>2018/08/20 10:05:29.177</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>End package load [Microsoft.VisualStudio.Services.Integration.ServicesPackage, Microsoft.VisualStudio.Services.Integration]</description>
    <guid>{0B93CCC5-BC52-40E9-91A3-7B8B58C4526B}</guid>
  </entry>
  <entry>
    <record>160</record>
    <time>2018/08/20 10:05:29.201</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
  </entry>
  <entry>
    <record>161</record>
    <time>2018/08/20 10:05:29.201</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Begin package load [Scc Display Information]</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
  </entry>
  <entry>
    <record>162</record>
    <time>2018/08/20 10:05:29.212</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>SetSite failed for package [Scc Display Information]Source: &apos;Microsoft.VisualStudio.Shell.15.0&apos; Description: Object reference not set to an instance of an object.&#x000D;&#x000A;System.NullReferenceException: Object reference not set to an instance of an object.&#x000D;&#x000A;   at Microsoft.Internal.VisualStudio.Shell.KeyBindingHelper.&lt;GetKeyBindingsImpl&gt;d__4.MoveNext()&#x000D;&#x000A;   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)&#x000D;&#x000A;   at Microsoft.Internal.VisualStudio.Shell.KeyBindingHelper.GetKeyBinding(Guid commandGroup, Int32 commandId, Guid keyBindingScope)&#x000D;&#x000A;   at Microsoft.Internal.VisualStudio.Shell.KeyBindingHelper.GetGlobalKeyBinding(Guid commandGroup, Int32 commandId)&#x000D;&#x000A;   at Microsoft.VisualStudio.PlatformUI.Packages.Scc.KeyBindingProvider.GetKeyBinding(Guid commandSet, Int32 commandId)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.SccDisplayInformationService.get_PublishKeyBindingText()&#x000D;&#x000A;  at Microsoft.VisualStudio.Services.SccDisplayInformationService.&lt;InitializeUIAsync&gt;d__71.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.SccDisplayInformationService.&lt;InitializeAsync&gt;d__17.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.SccDisplayInformationPackage.&lt;InitializeAsync&gt;d__2.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.AsyncPackage.&lt;&gt;c__DisplayClass17_0.&lt;&lt;Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize&gt;b__1&gt;d.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.ThreadingTools.&lt;WithCancellationSlow&gt;d__12.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.&lt;JoinAsync&gt;d__78.MoveNext()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)&#x000D;&#x000A;   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()&#x000D;&#x000A;  at Microsoft.VisualStudio.Threading.JoinableTask.Join(CancellationToken cancellationToken)&#x000D;&#x000A;   at Microsoft.VisualStudio.Threading.JoinableTask`1.Join(CancellationToken cancellationToken)&#x000D;&#x000A;  at Microsoft.VisualStudio.Shell.VsTaskLibraryHelper.&lt;&gt;c__DisplayClass33_1`1.&lt;AsVsTask&gt;b__3()&#x000D;&#x000A;--- End of stack trace from previous location where exception was thrown ---&#x000D;&#x000A;  at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)&#x000D;&#x000A;   at Microsoft.VisualStudio.Services.VsTask.GetResult()</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>163</record>
    <time>2018/08/20 10:05:29.219</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [Scc Display Information]</description>
    <guid>{D7BB9305-5804-4F92-9CFE-119F4CB0563B}</guid>
    <hr>80004003 - E_POINTER</hr>
    <errorinfo></errorinfo>
  </entry>
  <entry>
    <record>164</record>
    <time>2018/08/20 10:05:29.222</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Entering function LoadDTETypeLib</description>
  </entry>
  <entry>
    <record>165</record>
    <time>2018/08/20 10:05:29.225</time>
    <type>Information</type>
    <source>VisualStudio</source>
    <description>Leaving function LoadDTETypeLib</description>
  </entry>
</activity>



How do I have to evaluate errors in c#?

$
0
0

I have the following code:

                
try
            {
                System.Console.WriteLine("*********** Carga Diaria de Plantillas de Oportunidades ************");
                var login = "SISTEMA";
                var rutaFolder = Configurations.RutaCarga;

                var watch = System.Diagnostics.Stopwatch.StartNew();
                System.Console.WriteLine("*********** Inicio de Carga Diaria de Oportunidades *********");

                var servicio = new OportunidadesService();


                ValidateDirectory(Configurations.FicheroCargaRemota);
                servicio.ImportarOportunidadesAsync(rutaFolder, login).Wait();
                System.Console.WriteLine("Se realizó la carga de Oportunidad con éxito");

                watch.Stop();

                System.Console.WriteLine("*********** Fin de Carga Diaria de Plantillas de Oportunidades. ************");
                System.Console.WriteLine(" Tiempo de ejecución: " + (watch.ElapsedMilliseconds / 1000) + " segundos ************");
                EsperaSalida();

            }
            catch (Exception ex)
            {
                TraceServiceError.ServiceError(ex);
                if (ex.InnerException != null)
                {
                    System.Console.Error.WriteLine(ex.InnerException.Message);
                }
                else
                {
                    System.Console.Error.WriteLine(ex.Message);
                }
                System.Console.WriteLine("*********** Fin con error de Carga Diaria de Oportunidades ***********");
                EsperaSalida();
            }



But I don't know why sometimes the Exception is null but I receive an error in InnerException and the opposite since I should receive always an ex.Message and not an ex.InnerException.Message

servicio.ImportarOportunidadesAsync calls a method in the code: ..

public class OportunidadesAppService
    {
        private readonly OportunidadFinancieraOrigenRepositorio oportunidadFinancieraOrigenRepositorio;
        private readonly OportunidadContableOrigenRepositorio oportunidadContableOrigenRepositorio;
        private readonly OportunidadOrigenRepositorio oportunidadOrigenRepositorio;
        private readonly SalesForceConsolidadoCabeceraRepositorio salesForceConsolidadoCabeceraRepositorio;
        private readonly OportunidadPmoLotusLineaInsertRepositorio oportunidadPmoLotusLineaInsertRepositorio;
        private readonly OportunidadPmoLotusLineaDeleteRepositorio oportunidadPmoLotusLineaDeleteRepositorio;
        private readonly OportunidadCmiUpdateProcesoRepositorio oportunidadCmiUpdateProcesoRepositorio;
        private readonly OportunidadHistorialLecturaExcelRepositorio oportunidadHistorialLecturaExcelRepositorio;
        public OportunidadesAppService()
        {
            oportunidadFinancieraOrigenRepositorio = new OportunidadFinancieraOrigenRepositorio();
            oportunidadContableOrigenRepositorio = new OportunidadContableOrigenRepositorio();
            oportunidadOrigenRepositorio = new OportunidadOrigenRepositorio();
            salesForceConsolidadoCabeceraRepositorio = new SalesForceConsolidadoCabeceraRepositorio();
            oportunidadPmoLotusLineaInsertRepositorio = new OportunidadPmoLotusLineaInsertRepositorio();
            oportunidadPmoLotusLineaDeleteRepositorio = new OportunidadPmoLotusLineaDeleteRepositorio();
            oportunidadCmiUpdateProcesoRepositorio = new OportunidadCmiUpdateProcesoRepositorio();
            oportunidadHistorialLecturaExcelRepositorio = new OportunidadHistorialLecturaExcelRepositorio();
        }

        public async Task ImportarOportunidadesAsync(string rutaFolder, string login)
        {
            var fechaHoraCarga = DateTime.Now;

            using (var cnFunnel = new SqlConnection(Configurations.ConnectionFunnel))
            {
                using (var scope = new TransactionScope(TransactionScopeOption.Suppress, new TimeSpan(0, 15, 0), TransactionScopeAsyncFlowOption.Enabled))
                {
                    await cnFunnel.OpenAsync();
                    //1. Generar cabecera importacion
                    var idCarga =
                        await GenerarCabeceraImportacion(new OportunidadFinancieraOrigen { FechaCarga = fechaHoraCarga }, cnFunnel);

                    //2. Elegir plantillas
                    var ficherosCargar = SeleccionarFicherosCargar(Configurations.FicheroCargaRemota, cnFunnel);

                    //3. Registrar Ficheros a Cargar
                    RegistrarFicherosCargar(ficherosCargar, cnFunnel);

                    //4. Copiar ficheros desde fileserver to process server 
                    CopiarFicherosServidorApp(rutaFolder);

                    //5. Obtener data
                    var listado = SelecteTemplatesToRead(rutaFolder, cnFunnel, ficherosCargar);

                    //6. Cargar info de plantillas
                    await CargarInfoPlantillas(listado, login, idCarga, cnFunnel);

                    //7. Actualizar Proceso en Cmi
                    await ActualizarProcesoCmi(cnFunnel);

                    scope.Complete();
                }
            }

            
        }


                       

Visual Studio Debugger

$
0
0

Does VS 2017 Pro have any ability to show not just Call Stack information but actual source lines of code executed up to a breakpoint?  If so, how deep is this memory trace of executed source lines?

If not, is there any extension which can provide this capability?  It would essentially be a capability which records every executed single stepped statement in a history buffer.


joeEmbed

A Problem In Visual Studio Enterprise 2015

$
0
0

Hello professionals, lately l have been using visual studio Enterprise 2015, it was alright , but all of a sudden when i want to start the program it has shown me the tow following messages:

1- The code execution cannot proceed because DESKTOPCRT 140.dll was not found. Reinstalling the program may fix this problem 

2- the code execution cannot proceed because APPCRT 140.dll was not found. Reinstalling the program may fix this problem 

I was using visual Studio right but suddenly i got these messages... CAN YOU PLEASE TELL ME WHY AND HOW TO FIX it ...???!

I have tried many solutions such as:

1- Reinstall the Microsoft Visual C ++ Redistributable package
2- Do a clean installation of the program
3- Update the drivers in your computer
4- Run the Windows System File Check
5- Run a virus scan for your system

gui keeps crashing

$
0
0

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO.Ports;

namespace WindowsFormsApplication5
{
    public partial class <g class="gr_ gr_40 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="40" id="40">Form1 :</g> Form
    {
        string datain;
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                serialPort1.Open();
                button2.Enabled = false;
                serialPort1.DtrEnable = true;

            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message, "error");

            }
        }

        private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
            {
                 datain = serialPort1.ReadExisting();
            this.Invoke(new EventHandler(showdata));

            }

        private void showdata(object sender, EventArgs e)
        {
          //  throw new NotImplementedException();

            string s = datain+",";
            string[] somestring = s.Split(',');
            float z = Convert.ToSingle(somestring[2]);

            try
            {

                textBox2.Text = datain;


                arcScaleNeedleComponent1.Value = z;
            }
            catch (IndexOutOfRangeException)
            {

            }
            finally
            {
                textBox2.Text = datain;
                arcScaleNeedleComponent1.Value = z;


            }
            return;
        }


    }

}

<g class="gr_ gr_53 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="53" id="53">i</g> have downloaded <g class="gr_ gr_50 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="50" id="50">devexpress</g> and created a <g class="gr_ gr_47 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="47" id="47">gui</g> speedometer but <g class="gr_ gr_54 gr-alert gr_tiny gr_spell gr_inline_cards gr_run_anim ContextualSpelling multiReplace" data-gr-id="54" id="54">i</g> <g class="gr_ gr_48 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="48" id="48">faceda</g> problem. the <g class="gr_ gr_49 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="49" id="49">gui</g> will run for a maximum of 10 minutes but it will crash onwards. Please help so that the <g class="gr_ gr_100 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="100" id="100">gui</g> can keep on running.

                                                                                                                        

I created a GUI speedometer using visual studio and devexpress gauge. However, the program keeps crashing and wont run properly. The problem states 'system.indexoutofrangeexception'. please help

$
0
0

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO.Ports;

namespace WindowsFormsApplication5
{
    public partial class <g class="gr_ gr_40 gr-alert gr_gramm gr_inline_cards gr_run_anim Style multiReplace" data-gr-id="40" id="40">Form1 :</g> Form
    {
        string datain;
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                serialPort1.Open();
                button2.Enabled = false;
                serialPort1.DtrEnable = true;

            }
            catch (Exception err)
            {
                MessageBox.Show(err.Message, "error");

            }
        }

        private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
            {
                 datain = serialPort1.ReadExisting();
            this.Invoke(new EventHandler(showdata));

            }

        private void showdata(object sender, EventArgs e)
        {
          //  throw new NotImplementedException();

            string s = datain+",";
            string[] somestring = s.Split(',');
            float z = Convert.ToSingle(somestring[2]);

            try
            {

                textBox2.Text = datain;


                arcScaleNeedleComponent1.Value = z;
            }
            catch (IndexOutOfRangeException)
            {

            }
            finally
            {
                textBox2.Text = datain;
                arcScaleNeedleComponent1.Value = z;


            }
            return;
        }


    }

}


                                                                                                                        


Debugging Python code in VS 2017 not working.

$
0
0

Hi,

I recently started using VS2017 for developing Python apps.

I can run the code in the IDE but when I set a break point and start debugging I see the cmd window open 

showing the path to Python 3.7 and after about 15 secs the window disappears and nothing happens.

I'm not sure what I'm doing wrong.

Any help would be appreciated.

Native MSV IDE vs Platform toolkit change

$
0
0

I am using proprietary libraries that were compiled using MSV2012 in my current project. I have access to MSV2017 but not MSV2012. I have been instructed that I need MSV2012 to use these libraries but I fail to understand why this would be the case.

What is the difference between using MVS2017 with platform toolkit v110 and using MVS2012? Links to documentation and/or personal experience is much appreciated.

Multithreading Performance issue in windows 10

$
0
0

Hi,

I have a program developed in VB.Net a specific operation in the application uses memory(arrays) to store the details. We use threading in the application.

The application was running perfectly around 15 mins in Windows 7 OS. The problem started when we have migrated into new OS i.e. Windows 10.

It takes around 3 hours to complete the same operation which looks abnormal in any kind of application.

Can any one help me out this to sort this down?

Sys Config: Win'10 Intel(R) Core(TM) i5-7500T CPU @ 2.70GHz 2.71GHz, 8GB RAM, 4 Core

Win'7 Intel(R) Core(TM) i3 CPU 550 @ 3.20GHz 3.20GHz, 4GB RAM, 4 Core.

The code which taking more time to get execute is added here:

PrivateSub ComputeAverageMark(ByVal ExamAndMarkDS As DataSet,ByRef ErrorDetailsObj As ErrorDetails)TryDim ExamValue AsNew ExamDim ExamForAnalysisValue AsNew ExamForAnalysisDim ExamDT AsNew DataTableDim ExamListArgsValue As ExamListArgsDim MarkDT AsNew DataTableDim count AsInteger=0Dim ExamListArgsList AsNew List(Of ExamListArgs) ExamDT = ExamAndMarkDS.Tables(0) MarkDT = ExamAndMarkDS.Tables(2)Dim MarkHashTable As Hashtable = GetMarkHashTable(MarkDT)ForEach ExamDR As DataRow In ExamDT.Rows count = count +1If MarkHashTable.ContainsKey(ExamDR.Item("ExamName"))Then MarkDT = MarkHashTable(ExamDR.Item("ExamName"))Else MarkDT = MarkDT.CloneEndIf ExamListArgsValue =New ExamListArgs(ExamDR,False, MarkDT,True,1, ErrorDetailsObj) ExamListArgsList.Add(ExamListArgsValue)If count >=100ThenDim paralleOptions AsNew ParallelOptions paralleOptions.MaxDegreeOfParallelism =4 Parallel.ForEach(ExamListArgsList.ToArray, paralleOptions,Sub(ExamListArgs) ComputeAverageMark(ExamListArgs)EndSub) ExamListArgsList.Clear() count =0EndIfNextIf count >0AndAlso count <100ThenDim paralleOptions AsNew ParallelOptions paralleOptions.MaxDegreeOfParallelism =4 Parallel.ForEach(ExamListArgsList.ToArray, paralleOptions,Sub(ExamListArgs) ComputeAverageMark(ExamListArgs)EndSub)EndIfCatch ex As ExceptionThrow exEndTryEndSub

Thanks & Regards,

Yuvaraj 

issue with network drive

$
0
0

hello i have a user that create and run project from a network drive and from time to time he lose access to the network drive in visual studio

but not in Windows it`s self we can browse the network drive in explorer…

what could be the issue ?

Thanks

How to get VS to act like it did before ReSharper messed it up?

$
0
0
I installed the latest version of ReSharper and then removed the <expletive deleted> piece of <expletive deleted> after a few days primarily because, despite having specified that it leave key settings alone, it interfered with preset key bindings and it absolutely destroyed the dynamic error list generation/update. After the uninstall, VS 2013 was better but still has problems with the error list dynamic update. Sometimes it responds correctly to bug fixes, sometimes not. For example, if two constants are defined with the same name then addressing the problem should remove the error item from the Error List panel but no longer does so. I tried running DevEnv /ResetSettings but that didn't fix the problem. What else can I do?

Richard Lewis Haggard

Visual Studio U-SQL editor freeze periodically

$
0
0

I posted this also on Visual Studio support bulletin.

It seems to happen only on U-SQL editor.

When I edit my .usql file on VS, freeze each 2-3 sec. 

The duration of unresponsive time is 1-2 sec each.

I tweaked some editor setting or environmental setting but none of the trials failed.

U-SQL editor has unique "designer" view behind each code.

I guess this might cause some kind of "sync" process and it might cause problem.

However I couldn't also find setting to disable "designer".

-----

My env :

Microsoft Visual Studio Enterprise 2017 
Version 15.8.1
VisualStudio.15.Release/15.8.1+28010.2003
Microsoft .NET Framework
Version 4.7.03062
Enterprise


ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

Azure App Service Tools v3.0.0   15.8.05023.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.3.4000.4
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions と Web ジョブ ツール   15.8.05023.0
Azure Functions と Web ジョブ ツール

Azure Stream Analytics Tools for Visual Studio   2.3.4000.4
Microsoft Azure Stream Analytics Tools for Visual Studio

GitHub.VisualStudio   2.5.4.3349
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Microsoft Azure HDInsight Azure Node   2.3.4000.4
HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service   2.3.4000.4
Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio   2.3
Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service   2.3.4000.4
Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node   1.0
Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.10730.2

Can't login to Visual Studio

$
0
0

Hello,
I've reinstalled my Windows and installed latest VS 2017 Community. I tried to login with my personal microsoft account but I'm getting this error message:

Sorry we ran into a problem
Access Denied: "account name" needs the folowing permision(s) on the source: "random characters" to perform this action: Read user properties and attributes.

I'd love to post a screenshot but it says that i'm not verified.

When i log in with my work account it works fine. But i really need to be logged in with my personal account. Can anybody help please?


Installing Bootstrap into the project

$
0
0

Hello,

I am new to the Visual Studio 2017 Community and wanted to re-explore my very first love (programming), I am currently reading the book Appress ASP.NET MVC Core 2, some items are outdated due to the fast pace arena in the programming community.

I follow the steps provided in the link https://www.htmlgoodies.com/html5/client/making-beautiful-style-together-visual-studio-and-bootstrap.html

on how to import bootstrap into the project, however after I install the bootstrap package, it did not create a scripts, fonts, and content folders in my project.

See image below.

Any assistance is greatly appreciated.


For God, and Country.

Unable to report a problem from Visual Studio 2017

$
0
0
Hi,

I'm using Visual Studio products as an Cisco employee. I'm licensed to Visual Studio Professional Edition product family with license number  68443398.

All though i'm licensed as mentioned, i still can't report a problem from the Visual Studio 2017 IDE. 
I'm getting the following message:
"Your sign-in was successful but you don't have permission to access this resource".

Regards,

Lior

cvmarkersobj.h is missing

$
0
0

Hi

I have recently installed visual studio 2017.

When trying to compile visual studio 2017, the compiler yells :

 E1696 cannot open source file "cvmarkersobj.h" 

Best regards

unattended installation VS

$
0
0

Hi,

I tried to install  vs2015 communtiy edition (DVD) silently with admin file 

below is the admindeployment.xml , there was couple of  attributes with  Selected="no"  , Tried with removing  Selected="no"

and without removing , 

It just not installing , 

tried  the below also  but ended up in the below error 

 run setup.exe /adminfile <PathToxml>\xmlfile

i get an error message that says Setup Blocked. the details are There are some validation errors in the admin deployment metadata xml provides. please see the logs.

<?xml version="1.0" encoding="utf-8"?>
<AdminDeploymentCustomizations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment">
  <BundleCustomizations TargetDir="C:\Program Files (x86)\Microsoft Visual Studio 14.0" NoCacheOnlyMode="default" NoWeb="yes" NoRefresh="default" SuppressRefreshPrompt="default" Feed="default" />
  <SelectableItemCustomizations>
    <SelectableItemCustomization Id="VSUV3RTMV1" Hidden="no" Selected="yes" FriendlyName="Visual Studio 2015 Update 3" />
    <SelectableItemCustomization Id="MicroUpdateV3.5" Selected="yes" FriendlyName="Update for Microsoft Visual Studio 2015 (KB3165756)" />
    <SelectableItemCustomization Id="WebToolsV1" Hidden="no" Selected="yes" FriendlyName="Microsoft Web Developer Tools" />
    <SelectableItemCustomization Id="JavaScript_HiddenV12" Selected="yes" FriendlyName="JavaScript Project System for Visual Studio" />
    <SelectableItemCustomization Id="MDDJSDependencyHiddenV1" Selected="yes" FriendlyName="MDDJSDependencyHidden" />
    <SelectableItemCustomization Id="AppInsightsToolsVisualStudioHiddenRTMV1" Selected="yes" FriendlyName="Application Insights Tools" />
    <SelectableItemCustomization Id="AppInsightsToolsVisualStudioHiddenVSU3RTMV1" Selected="yes" FriendlyName="Developer Analytics Tools v7.0.2" />
    <SelectableItemCustomization Id="BlissHidden" Selected="yes" FriendlyName="BlissHidden" />
    <SelectableItemCustomization Id="HelpHidden" Selected="yes" FriendlyName="HelpHidden" />
    <SelectableItemCustomization Id="JavaScript" Selected="yes" FriendlyName="JavascriptHidden" />
    <SelectableItemCustomization Id="NetFX4Hidden" Selected="yes" FriendlyName="NetFX4Hidden" />
    <SelectableItemCustomization Id="NetFX45Hidden" Selected="yes" FriendlyName="NetFX45Hidden" />
    <SelectableItemCustomization Id="NetFX451MTPackHidden" Selected="yes" FriendlyName="NetFX451MTPackHidden" />
    <SelectableItemCustomization Id="NetFX451MTPackCoreHidden" Selected="yes" FriendlyName="NetFX451MTPackCoreHidden" />
    <SelectableItemCustomization Id="NetFX452MTPackHidden" Selected="yes" FriendlyName="NetFX452MTPackHidden" />
    <SelectableItemCustomization Id="NetFX46MTPackHidden" Selected="yes" FriendlyName="NetFX46MTPackHidden" />
    <SelectableItemCustomization Id="PortableDTPHidden" Selected="yes" FriendlyName="PortableDTPHidden" />
    <SelectableItemCustomization Id="PreEmptiveDotfuscatorHidden" Selected="yes" FriendlyName="PreEmptiveDotfuscatorHidden" />
    <SelectableItemCustomization Id="PreEmptiveAnalyticsHidden" Selected="yes" FriendlyName="PreEmptiveAnalyticsHidden" />
    <SelectableItemCustomization Id="ProfilerHidden" Selected="yes" FriendlyName="ProfilerHidden" />
    <SelectableItemCustomization Id="RoslynLanguageServicesHidden" Selected="yes" FriendlyName="RoslynLanguageServicesHidden" />
    <SelectableItemCustomization Id="SDKTools3Hidden" Selected="yes" FriendlyName="SDKTools3Hidden" />
    <SelectableItemCustomization Id="SDKTools4Hidden" Selected="yes" FriendlyName="SDKTools4Hidden" />
    <SelectableItemCustomization Id="WCFDataServicesHidden" Selected="yes" FriendlyName="WCFDataServicesHidden" />
    </SelectableItemCustomizations>
</AdminDeploymentCustomizations>

Please help 

Thanks

Visual Studio 2005 Open Unfuddle Repository

$
0
0
How to open Unfuddle Repository with Visual Studio 2005?
Viewing all 21115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>