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

ScriptedSandbox64.exe During Debug Sessions

$
0
0

This is a follow-up post related to my development productivity while performing build/debug iterations in VS 2015 RC.  The original post is here and lists all the different VS-related components that I find seem to consume CPU or do some kind of blocking: (VS 2015 RC and productivity during build/debug iterations)

Question:
Does anyone have any thoughts on something called "ScriptedSandbox64.exe"?  If my IDE gets locked up and I kill that sucker, it can have the effect of freeing things up a bit.  But then it comes back again and never solves any long-term problems.

In order to see this process in taskmgr, you just need to create a new console application and start debugging.  You will see the process being launched during debugging.  Killing it seems to have no adverse effects that I can tell.  Ideally there would be configuration to prevent it from starting in the first place.

I'm not trying to nitpick .  Instead I am seeing latencies and I am having trouble understanding where they come from or why they are involved in launching a WPF (legacy) app from the Visual Studio debugger after making a minor edit to a code file.  Sometimes its fast and sometimes its slow.  It is extremely inconsistent and unpredictable, even when adding a new blank line to the exact same code file and launching a build/debug session.  It is a general question about Visual Studio performance and it involves the component I listed (as per a simple ProcessMonitor audit).

Thanks

  

David Beavon


Does Visual Studio 2013 uses up lots of CPU/Hard disk to the point that a defragmentation software will slow down to a crawl?

$
0
0

I am using O&O Defrag. I will be using "defragmentation software" to refer to this, as well as other defrag softwares others may use. Reason is that there's a defrag software called "Defraggler", and I may accidentally correlate to that.

I wanted to know if Visual Studio 2013 uses up a lot of CPU when programming and debugging said program? If not, does it uses up a lot of Hard Drive Disk Cache performances? I have witnessed a few scenarios where the defragmentation software will slow down dramatically, down to a crawl, when it is moving/reordering files around on the hard disk.

I am not sure if Visual Studio 2013 has to do with slowing down the defragmentation software, but the possibility of locking files because of Visual Studio 2013 may be a contributing factor? There's so many questions I wanted to ask about these scenarios, and would like to know if it's "safe" or "acceptable" to develop/program while the defragmentation software is running. 

Note that there's nothing wrong with my computer, Windows, Visual Studio 2013, and the defragmentation software. It's just that I can't find resources with discussions about this.

HelpLibAgent.exe has stopped working

$
0
0

If I try to View Help from within the Visual Studio 2010 SP1 shell or SQL 2012 Management Studio, or if I try to run the HelpLibAgent application directly from within File Explorer on my new Windows 8.1 machine I receive a message that states, "HelpLibAgent.exe has stopped working". I am confident that everything has been installed identically to the way that everything was installed on my Windows 7 64-bit machine, on which I never encountered this problem, so I can only assume that it is due to me now using Windows 8.1 64-bit. Therefore, after two days of trying everything that I can think of to view local help (all files are in the specified library location of C:\ProgramData\Microsoft\HelpLibrary\), including repairing SQL 2012 and the Visual Studio 2010 Shell, making various registry changes and config file changes that have been suggested by others, and running as an administrator and standard user, I would be immensely grateful for any suggestions that do not require removing and reinstalling SQL 2012.

When I receive the error message specified in the title to this thread, the following two errors appear in the Windows log. 

Log Name:      Application
Source:        .NET Runtime
Date:          6/11/2015 11:25:35 AM
Event ID:      1026
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Description:
Application: HelpLibAgent.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(System.Runtime.InteropServices.CriticalHandle, FileCompletionNotificationModes)
   at System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(System.Runtime.InteropServices.CriticalHandle, FileCompletionNotificationModes)
   at System.Net.HttpListener.CreateRequestQueueHandle()
   at System.Net.HttpListener.Start()
   at Microsoft.Help.HelpHttpServer.ConnectionManagerThreadStart()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()

Event Xml:
  <System>
    <Provider Name=".NET Runtime" />
    <EventID Qualifiers="0">1026</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-06-11T16:25:35.000000000Z" />
    <EventRecordID>22141</EventRecordID>
    <Channel>Application</Channel>
    <Computer>*******</Computer>
    <Security />
  </System>
  <EventData>
    <Data>Application: HelpLibAgent.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AccessViolationException
Stack:
   at System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(System.Runtime.InteropServices.CriticalHandle, FileCompletionNotificationModes)
   at System.Net.UnsafeNclNativeMethods.SetFileCompletionNotificationModes(System.Runtime.InteropServices.CriticalHandle, FileCompletionNotificationModes)
   at System.Net.HttpListener.CreateRequestQueueHandle()
   at System.Net.HttpListener.Start()
   at Microsoft.Help.HelpHttpServer.ConnectionManagerThreadStart()
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()
</Data>
  </EventData>
</Event>

Faulting application name: HelpLibAgent.exe, version: 1.0.40219.1, time stamp: 0x4d5f1a09

Faulting module name: ICProxy64.dll, version: 2.3.4.5, time stamp: 0x554e0d30

Exception code: 0xc0000005

Fault offset: 0x0000000000001620

Faulting process id: 0x1b2c

Faulting application start time: 0x01d0a4633db39278

Faulting application path: C:\Program Files\Microsoft Help Viewer\v1.0\HelpLibAgent.exe

Faulting module path: C:\windows\system32\ICProxy64.dll

Report Id: 7c77924a-1056-11e5-8274-d05349e9257c

Faulting package full name:

Faulting package-relative application ID:


DateTime Axis in MSChart Control

$
0
0

Hi

I am writing a WinForms application using C# and need to have a form displaying a chart control.  I am trying out the Microsoft MSChart control, but am having problems displaying things as I would like. 

The X-Axis should be DateTime values - I can make the axis display dates or times using the .AxisX.LabelStyle.Format property of the chart area.  However,  I would like to display the Date and time of the first point, then just the time of all of the next points, unless the date changes and then I would like to display the date and time of this point, then just the times of the next points.

It does not seem to be very straightforward to format the axis with datetime formats.

Any help would be appreciated,

Pete

Error “oldIndex must be a valid index in the Children collection” while opening a source file in visual studio 2012 editor

$
0
0

During debug was tried opening a source file which gave me this exception. So stopped debug and tried again opening but that does not help. Also tried reloading solution in visual studio editor but of no use.

oldindex must be a valid index in the Children collection Parameter name: oldIndex      Actual value was -1.

Visual Studio Error Message Popup content:

oldindex must be a valid index in the Children collection Parameter name: oldIndex    

Actual value was -1.

Environment:

OS: Windows 8.1

Visual Studio 2012 (11.0.61030.00 Update 4)

Access Database - Adding Records

$
0
0

Is there a template already created that I can modify that will allow users to add records to a single table in my Microsoft Access database?  I'd like the users to have the form load on a web page.

Thanks

AS/400 OLE DB Connection string throwing "no message" error

$
0
0
 conn = new OleDbConnection(@"Provider=IBMDA400;System=---ip address---;Uid=xxxxxx;Pwd=xxxxxx;MGDSN=0;");

                // Create a SQL query string
                SQLqrystr = "Select FPROD As Part_Number, FRDTE As Due_Date, FRSDT As Release_Date, FQTY As Planned_Quantity from KFP Where FRDTE = '" + StartDate;

                // Create DataSet
                dsUpload = new DataSet();

                //Create an OleDbDataAdapter for the table.
                daUpload = new OleDbDataAdapter(SQLqrystr, conn);

                // Create Command Builder
                OleDbCommandBuilder cmdBldr = new OleDbCommandBuilder(daUpload);

                // Fill the DataSet
                daUpload.Fill(dsUpload, "WO_Upload");

The above code is returning this: "No error message available, result code: DB_E_ERRORSOCCURRED(0x80040E21)"

Attempting to send an SQL query into an AS400 using the OLE DB connection objects. There's more code but walking through in deBug it throws the exception after attempting that final line. In other places in this program I'm using OLE DB connection objects to send queries into an Access database with no problem.

What I've typed so far exhausts my knowledge of this process. Any help as to why this isn't working would be splendid.

Thank you.

Asynchronous call functions

$
0
0

Hello world, I have a problem with async functions. Code C++/CX, VS 14.0, Universal App:

void Nikki::MainPage::sendMessage(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e)
{
	String^ userString(message->Text);
	messagesArea->Width = messagesStack->ActualWidth - 20;

	if (userString->Length() > 0) {
		copyMessagesInBox(userString->Data(), "Вы");
		auto ss =
			ParsingUserString(userString->Data());
		//ss.wait();
	}
}

and

task<void> Nikki::MainPage::ParsingUserStringAsync(wstring user_str) { auto user_string = make_shared<wstring>(user_str); return create_task([this, user_string] { message->Text = "11111"; }

}


Problem: if message->TextBox handling to him from another stream, then App crash. Same with all other interface elements. How to fix?




Can I install VS on my other machine without downloading everyting again>

$
0
0

I got a laptop that I need to install VS on. I have it on my desktop and installed it via the installer. I have the community version.

Is there any way that this is possible to do without downloading all the files again? I have pretty slow internet and I need it by tomorrow.

Thanks in Advance

Kind Regards

Longtomjr :)

Visual Basic 2008 Express Edition file execution

$
0
0

I have a Windows Forms App that has a button.  When you press that button, it opens a batch file that does some work.  I want to run this program from the AppData folder on several different computers.  Unfortunately, Visual Basic does not support system variables like %appdata%, so in my code, I have a direct address to my roaming folder and it cannot run the batch file on another computer because it only has a link to the one on this computer. If you're wondering, I will be transferring the batch file with the app to the other computers.

Here's the code:

Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click System.Diagnostics.Process.Start("C:\Users\treats\AppData\roaming\HappySoft\Antivirus\Logs\log.cmd") End Sub

 How can I have my app conform to the other computer's AppData and system drive?

can BizTalk 2010 run on SQL Server 2014?

$
0
0

can BizTalk 2010 run on SQL Server 2014?

Visual Studio 2012 - How do I change the font properties in the visual dialog editor for text elements?

$
0
0

I am using dialog editor in Visual Studio Professional 2012.  I am trying to change to font properties from the visual dialog editor.  I would expect the font properties to appear under the Appearance section of the element properties.  How do I turn this feature on?

Multiple project files in a folder causes packages.config corrruption

$
0
0

For historical reasons mainly, and in a couple of cases functional reasons, we have a few places where multiple visual studio project files exist in a filesystem directory.  The NuGet integration gets horribly confused and ends up corrupting the projects (leaving orphaned xml elements) when you make changes, including stepping to a new version of a package.

Everywhere else VS associates a file with a project the name of the file incorporates the name of the project file; eg the .user files, and this setup has been working since VC6.

I don't see any indication that the name or location can be overridden.  An item is created so the packages.config file gets displayed in the tree view but it doesn't seem plausible that the integration is picking that up; it has no unique-ifying attributes.

The historical situation was that a very large project was broken up by making multiple copies of the project file and deleting subsets of the source from each, leaving them disjoint but in one folder.  I can reorganize that; it won't be pleasant but it's a finite task.

The functional situation has to do with the desire to product a comprehensive product as the result of building a solution; there are some pieces of code that have to be built in more than one configuration to make that happen but there's no way to associate more than one configuration of any given project with one solution-level configuration.  Hence, multiple project files for one folder full of code.  I suppose I can make two subfolders and push the project files down a level there as well.  Sigh.

My question here is simply this: is there a mechanism for managing the name/location of the packages.config file associated with a project file?


Stephen W. Nuchia StatSoft, Inc. Tulsa, Oklahoma USA

Issue debugging classic asp in VS2013

$
0
0

Hi,

Have been successfully debugging classic ASP web site in VS2013, until yesterday when I can no longer attach to the process w3wp.exe, get the message 'Unable to attach to the process.....'.  Have tried uninstalling and reinstalling VS, resetting all my settings in the Import Export wizard etc.  Any pointers gratefully received.

Many Thanks

Laurence

Cannot Save a NODEJS console application as a Visual Studio Template

$
0
0

Environment: Visual Studio 2013, NODEJS Console Application, NPM was used to install required packages.  Project runs with no problem, but if I attempt to save it as a project template, it doesn't work.  I get this error:

"Template export failed for the following reason: InvalidParameter Parameter name: Index"


Does anyone know how to export a NODEJS console project template?


VS 2015 and TFS 2015 - Is there an estimate when RTM will be available ?

$
0
0

Hi,

We have VS 2012 and TFS 2012, looking fw to VS 2015 and TFS 2015.

Is there an estimate when an RTM version of VS 2015 and TFS 2015 will be available in RTM ? Thank u.

WPF XBap ClickOnce application Deployment and Installation

$
0
0

I'm not sure if I have the right forum category. The question I have is regarding WPF Xbap ClickOnce deployment and Installation. We basically have some clients with very low bandwidth and would like to provide an alternative installation (like an MSI install or equivalent) so the application doesn't have to be downloaded to the users desktop. The application is currently about 40 MB. Is this possible and if so how to go about creating such install? 

The second part is we also want some clients with decent bandwidth to install using the ClickOnce download. 

So far all the Deploy options in Visual Studio create a setup.exe that seem to install the applications but also "runs" it.

We are using Visual Studio 2013 and the application is WPF Xbap.  

Thanks

Roberto   

  

Focus Problem

$
0
0
I taken editor.i doing focus on textbox.but not directly goes to cursor in textbox.directly cursor goes to on textbox.

Watch window show updated value of properties without call Get() of Properties

$
0
0

I was trying to debug a solution and found that when I update value of fproperty1, the value of property2(in which the first property is referenced) gets updated in the watch window but it doesn't hit the breakpoint set on the Get() function of property2.

Can you please elaborate the reason behind this ?

        private double _doubleDiameter; // Property 1
        public double doubleDiameter
        {
            get
            {
                return _doubleDiameter;
            }

            set
            {
                if (value != _doubleDiameter)
                {
                    _doubleDiameter = value;
                    OnPropertyChanged("doubleDiameter");
                }
            }
        }

        private double _doubleLengthOfLeverArm; // Property 2
        public double doubleLengthOfLeverArm
        {
            get
            {
                return doubleDiameter / 2;
            }
            set
            {
                if (value != doubleLengthOfLeverArm)
                {
                    _doubleLengthOfLeverArm = value;
                    OnPropertyChanged("doubleLengthOfLeverArm");
                }
            }
        }

In the above code, when I set a value to diameter property, in the watch window, the value of lever arm gets updated as soon as the Set() of diameter is finished calling. But the breakpoint set on Get() of lever arm doent hit. Why this happens ? 


Siddharth.Shinde

VisualStudio 2013 sign in webpage won't load

$
0
0
I've been trying to sign in my Microsoft account in the visual studio webpage for me to be able to download visual studio express 2013. But it won't load and it only shows a blank screen.
Viewing all 21115 articles
Browse latest View live


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