All Questions
            104
            questions
        
        
            22
            votes
        
        
            4
            answers
        
        
            29k
            views
        
    'Forms' is not a member of 'Windows'
                I tried to change the Target Framework on my app recently from .NET Framework 4.5 to 4.5.2, but if I do I get the following error when trying to build: "'Forms' is not a member of 'Windows'" (that is, ...
            
        
       
    
            11
            votes
        
        
            2
            answers
        
        
            2k
            views
        
    POST a Multi-Part Form to Bamboo API
                I'm having a lot of difficulty submitting a multi-part form through a VB.NET console application to BambooHR API. I've posted my current code as well as a sample request from the documentation below, ...
            
        
       
    
            6
            votes
        
        
            1
            answer
        
        
            499
            views
        
    See POST Multipart Form Data Request
                I'm trying to submit a multipart form through a C# and a VB.NET console application, but how do I see what it actually looks like? I've seen on some forums that you can see what it looks like through ...
            
        
       
    
            5
            votes
        
        
            2
            answers
        
        
            2k
            views
        
    Can't send xml to webservice - The underlying connection was closed. An unexpected error occurred on a send
                I'm creating an application to submit some XML to a web-service.
The issue is that I can't communicate with the web-service. I'm getting this error, when I call "request.GetRequestStream()":
  The ...
            
        
       
    
            4
            votes
        
        
            1
            answer
        
        
            2k
            views
        
    How to install SQL Server LocalDB with my application?
                I have developed an application in vb.net 4.5 with VS2015 and I am using InstallShield Limited Edition to create the MSI installation file. 
Some of the final users don't have internet, so I need to ...
            
        
       
    
            4
            votes
        
        
            2
            answers
        
        
            1k
            views
        
    Dependencies not loading or partially loading
                I am trying to work with the MS Lync UCMA 4.0 sdk and just switched to using Visual Studio 2012 (becuase .NET 4.5 Framework is required). I can't figure out what is going on here, I've set the Target ...
            
        
       
    
            3
            votes
        
        
            3
            answers
        
        
            2k
            views
        
    String.Split is not removing the split text, only the first letter
                What's going on here?
issue.CallAction has the following value:
"Blah blah - WebSite - 9/20/2017 - Containers remaining changed to 0."
Splitting on it, like so:
issue.CallAction.Split("Containers ...
            
        
       
    
            3
            votes
        
        
            3
            answers
        
        
            3k
            views
        
    How to determine if a path is fully qualified?
                Given a path, I need to know if it is a fully qualified path (absolute path).
I know there is a method called System.IO.Path.IsPathRooted but this returns true for paths like:
C:Documents 
/...
            
        
       
    
            3
            votes
        
        
            2
            answers
        
        
            2k
            views
        
    Date comparison myDateTime.Equals(DateTime.MinValue) not Working in VB.Net
                I use VB.Net, Visual Studio 2010, .Net version 4.5.50938 SP1Rel.
When a DateTime parameter is empty I see the value passed is #12:00:00 AM# which is basically the DateTime.MinValue. Assuming ...
            
        
       
    
            3
            votes
        
        
            4
            answers
        
        
            4k
            views
        
    Async Await Timeout
                I am writing a simple method that validates a webpage url is real and returns either True or False.
Using the new async await functions in .NET 4.5 this now seems ridiculously easy, but how do I set ...
            
        
       
    
            3
            votes
        
        
            2
            answers
        
        
            604
            views
        
    Create Self Constructing Objects with JavaScriptSerializer (JSON.PARSE equivalent)
                I'm creating a flexible framework for creating and storing settings for third party developers.
One of the better choices we made was to create a system where the developers created their own ...
            
        
       
    
            3
            votes
        
        
            1
            answer
        
        
            79
            views
        
    Why does ThenBy raise an exception in the following case?
                I am using .NET 4.5 and I would like to understand the following:
If I execute this everything works as expected:
  Dim lst = Enumerable.Range(1, 10)
  Dim lstOrdered = lst.OrderBy(Function(i) i Mod ...
            
        
       
    
            3
            votes
        
        
            3
            answers
        
        
            722
            views
        
    Parallelizing a for loop with stepping in .net 4.5
                I have a function that looks something like the code below. Its purpose is to take triangle facets one at a time from an array of points where each three points is one facet, and tessellate them, ...
            
        
       
    
            3
            votes
        
        
            1
            answer
        
        
            233
            views
        
    Calling a .net 2.0 method from a .net 4.5 test causes a RemotingException
                In my solution I have a test project using .net 4.5 that calls methods on a class library project written in .net 2.0.
I have successfully called many methods (all functions), but one method (a Sub) ...
            
        
       
    
            3
            votes
        
        
            1
            answer
        
        
            936
            views
        
    async Task running from vb.net
                I have create class library in C# 
static private async Task addMeeting(string subject, int roomId,bool coffee, bool receptionist, bool valetParking, string deductedFrom, string program)
{
await ...
            
        
       
    
            3
            votes
        
        
            0
            answers
        
        
            2k
            views
        
    System.Runtime.Versioning.TargetFrameworkAttribute is not defined after setting TargetFrameworkVersion in project file
                I'm trying to multi-target a project between two .net versions. I've edited the .vbproj file like so
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'GP2010|AnyCPU'">
 <...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            536
            views
        
    <decimal>.ToString("P3") returns differerent results on Win7 and Windows 10
                I have got two boxes: One Win7 and the other Win10 (and also a Windows Server 2012 box, which behaves the same as my Win10 box).
On all boxes there ist .NET Version 4.5.2 installed.
When I run the ...
            
        
       
    
            2
            votes
        
        
            2
            answers
        
        
            2k
            views
        
    Calculate coordinates for rotated text plus bounding border
                I have a form that is going to allow a user to create custom "stamps" to place on a PDF. The form displays with a image of the first page of the pdf and I want the user to basically click on the ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            704
            views
        
    Overload resolution failed for New PageAsyncTask
                I am trying to do some asynchronous operations in ASP.NET 4.5 Web Forms. I received this error when following several online tutorials: 
  Overload resolution failed because no accessible 'New' can ...
            
        
       
    
            2
            votes
        
        
            3
            answers
        
        
            5k
            views
        
    Testing if I have full read/write access to a file in VB .NET 4.5 before processing it
                I'm writing a windows service which runs as the local system account. I'm trying to make sure if I have full read/write access to a file beginning to process it any further. Here is my code:
    Dim ...
            
        
       
    
            2
            votes
        
        
            2
            answers
        
        
            655
            views
        
    Roslyn Only Compiler Error with Lambda Statements: Expression cannot be converted into an expression tree
                Question
How can I rewrite the below Moq tests so they work again in Roslyn? Obviously I could remove the Lambda, but I was hoping to avoid that. 
Also, for interest sake: did the Roslyn compiler ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            2k
            views
        
    ASP.NET "The request was aborted: Could not create SSL/TLS secure channel" occurs also with configured servicepointmanager
                I'm trying to request this image: https://www.kamerstunt.nl/file/img/web/woning/9577323WenumWieselZwolseweg-142d_6.jpg
If the image no longer exists when you read this, it might have been removed, but ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            375
            views
        
    .Net 4.0 throws Invalid Date Exception
                In .Net 1.1 ,the following code does not show any error.
Dim T As DateTime = "10\1\2010"
But in .Net 4.5 , the same code shows error saying "Unrecognised Date Format".
Why is this happening? Why ...
            
        
       
    
            2
            votes
        
        
            2
            answers
        
        
            3k
            views
        
    Repository pattern with Entity Framework 5. Updating related objects
                I am building a repository for a new application which uses Entity Framework 5 as the backend data source. I have the basic CRUD operation working for simple models but I am struggling to understand ...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            278
            views
        
    IOLEWindow Interface not (no longer?) working
                We have had this piece of code in our application for a long time, and as far as we know it was working fine until now:
(Please note that I have removed any code that is irrelevant to the problem, e....
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            2k
            views
        
    CefSharp SetZoomLevel not working
                I am using in a WinForm an object of type:
CefSharp.WinForms.ChromiumWebBrowser
Everything is working fine but I am having an issue when I try to change the ZoomLevel with SetZoomLevel method:
If ...
            
        
       
    
            2
            votes
        
        
            1
            answer
        
        
            409
            views
        
    Ensure a method only fires once when an event is triggered multiple times in Winforms newer method in .NET 4.5
                So essentially I have wired up three text boxes to do a smart filter and want to let a user do a multi filter.  The only problem was that it was firing too frequently and I want to have it fire after ...
            
        
       
    
            2
            votes
        
        
            0
            answers
        
        
            418
            views
        
    Entity Framework 5.0 TBH multiple level abstract inheritance hierarchy not saving properties into databse
                I have a two level heirarchy of inheritance defined in my EF5 edmx file.
A simple example of the class structure:
A -> B 
A -> C 
A -> D -> E
A -> D -> F
Where bold classes are abstract (...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            1k
            views
        
    MEF CompositionContainer Missing ComposeParts Extension method
                I am trying to abstract away the MEF composition of parts into a class library class but I am having problems in .Net4.5 RC as the ComposeParts Extension method is not available in the class library ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            520
            views
        
    Control locations wrong in nested SplitContainer at high DPI
                Controls are in the wrong location when they are anchored to bottom or right in a SplitContainer that's in a Panel or another SplitContainer at high DPI settings like 160 % with .Net Framework 4.0 or ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            2k
            views
        
    How to draw control while is moved in a Drag-and-drop event
                In Vb.net, through Drag and Drop events, a control (button) is moved from a Panel to another Panel.
Is there any way or option to draw the control (button) while is being moved by cursor? Now I have ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            163
            views
        
    "Input value not long enough for date format" When updating with TableAdapter
                My queries are managed by a DataAdapter, so I have little to no control over it's generation.The problem query goes this way:
UPDATE  MYSCHEMA.MYTABLE
SET     MYDATETIME = :myDateTime
WHERE   (MYKEY =...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            572
            views
        
    Access page session variables from class
                In my web application(vb.net 4.6), I use session variables in all my pages.
It's using 
Page.Session As HttpSessionState
I recently created a new public class within this project to hold some ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            2k
            views
        
    Visual Studio 2013 not showing .net Framework
                I have been trying to figure out how to install the .net framework 4.5.2 for visual studio. I heard that visual studio already has 4.5 installed, but it's not showing up on my list, the highest is ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            9k
            views
        
    ASP.NET 4.5 How do I use an Ajax controls, I can't find them in the Toolbox?
                total newbie to AJAX, I got the NuGET an I found the Ajax Control Toolkit
7.1213.0
I ran this    PM> Install-Package AjaxControlToolkit 
It said successful at the end. 
There is nothing to add if I ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            197
            views
        
    None of my Win Forms buttons work
                I have a windows form which connects to a SQL Server though a dataset. The form was working fine since my last compile. All of a sudden, none of my buttons work! The data is loaded on the form, all ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            193
            views
        
    'sendasync' is not a member of 'System.Threading.Tasks.DataFlow.BufferBlock'
                I'm trying to run the Microsoft TPL DataFlow complete example at the bottom of 'How to: Write Messages to and Read Messages from a Dataflow Block' but the code will not compile as-is.  I have pulled ...
            
        
       
    
            1
            vote
        
        
            2
            answers
        
        
            1k
            views
        
    How to Verify If the Database Connection is Successfully Established?
                The Controller:
Imports System.Data.SqlClient
Private Sub SqlClientPermission(value As Boolean)
        allowBlankPassword = True
    End Sub
    Function CreateCommand() As SqlCommand
        Dim ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            36
            views
        
    VB .NET 4.5: Running python script through Shell() returns "File not found"
                Running the following snippet yields "System.IO.FileNotFoundException: File not found"
Sub Main()
        Dim scriptPath As String = "D:\Programs\Tester.py"
        Dim pythonPath ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            482
            views
        
    Error: You can't create entries as long as previously created entries are still open
                I've created à Zip maker in VB.NET and I've this error :
You can't create entries as long as previously created entries are still open.
(Translated from French : Impossible de créer des entrées tant ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            287
            views
        
    Utilize a .Net Framework 4.5 project reference in a .Net Framework 3.5 startup Project
                We have a project that was built in the 3.5 version of the .Net Framework. We updated this project to be on the 4.0 version of the .Net Framework, and after we worked through all of the issues we ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            125
            views
        
    StreamWriter.close() does not flush in Windows 2012
                I'm coding a VB.net application that writes files on disk. I have to be sure data is really written on disk every 1 second. So I close the stream, set the last write date and reopen it:
Dim now As ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            769
            views
        
    Adding an element to an xdocument at runtime vb.net
                I have two programs, 
one is a webservice written in C# .NET V4.5 and the other is written in VB.NET V4.0
I am using the xDocument class to create an xml document to send to a webservice,
in the VB ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            89
            views
        
    How to stop WebRequest use last successful credential - reset CredentialCache
                When using the following code, if I specify a wrong username/password combination I get a 407 error.
If I use a correct one, I get the page requested.
If I try again with a wrong username/password I ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            94
            views
        
    Threading Consumers in a Blocking Collection
                I have windows service that on a timer event adds items to a blocking collection and then creates a thread for each item in the queue to be processed.I am using CompleteAdding() to make sure the queue ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            129
            views
        
    WP8.1 Dynamically Created Image is missing
                I'm developing a Windows Phone 8.1 application using a Hub control to dynamically display categories (as HubSections) and images (contained within a StackPanel in each HubSection).
The process runs ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            1k
            views
        
    Download File and Extract Immediately - File is being used by another process
                I'm looping through a list of zip files and downloading them from a WebClient.  I'm trying to extract them immediately after they download, but getting an error that the file is being used by another ...
            
        
       
    
            1
            vote
        
        
            0
            answers
        
        
            117
            views
        
    FindControl no longer working after .NET 4.5 Upgrade
                Prior to upgrading to .NET 4.5 the code was working correctly with findControl, but it was because they were being added with the prepended placeholder location. We are now receiving 
Object ...
            
        
       
    
            1
            vote
        
        
            1
            answer
        
        
            687
            views
        
    SpeechRecognitionEngine Spoken and Recorded do not match
                I am using SpeechRecognitionEngine to recognize information being spoken by a user. The method will be running on the client's computer and it is working just fine and recognizing text almost like I ...
            
        
       
    
            0
            votes
        
        
            2
            answers
        
        
            83
            views
        
    Assign values to Tuple with named values in inline function
                I'm supporting a solution using VS 2022 and Framework 4.5.2.
I'm trying to create a tuple with named values inside an inline function and pass it to another function.
I know how to declare the tuple ...