140,150 questions
0
votes
0
answers
17
views
ASP.NET WebForms: Adding StaticFileModule Rule for XML Causes “Duplicate Entry” Error and Breaks Index.aspx
I’m running into a specific issue with my web.config when trying to serve XML files.
As soon as I add this rule:
<add name="XmlFile" path="*.xml" verb="GET,HEAD" ...
Advice
0
votes
0
replies
18
views
SSRS Report External UNC Image File - If Not Found - Default Image
In my dataset for an SSRS report, I have a column that is comprised of a path and a file name of an image, dynamically created by each user's user id, as that's how the images for their pics are ...
0
votes
1
answer
76
views
Error in flush at downloading file with VB.Net
I'm trying to download files through a popup window. Most of files download correctly, but some one through this error:
Error in /Controladores/Descarga.ashx?guid=4b5050f6-2f69-41e1-8bd6-1113686e9575
...
0
votes
1
answer
53
views
ASP.NET Controls Don't Span Bootstrap Columns
I am using Bootstrap 3.5 with ASP.NET controls (Visual Studio 2022). I have an ASP.NET:TextBox in a Bootstrap column. While an HTML input tag spreads across the entire Bootstrap column, left to right, ...
Advice
0
votes
4
replies
110
views
VB.NET and classes and their sub-classes
I have a class in VB.NET. The definition of this class is re-defined according to need.
For example: TR as char(2), F1 as Char(10) then later TS as Char(2) F1 as float.
I want to define one class and ...
0
votes
0
answers
56
views
How to avoid methods in Dotfuscator Community Edition Debugging Check
If I read the documentation I can see:
Properties:
-Action: The Check Action the Check will take if it detects a debugger attached to the application.
Defaults to None.
-...
0
votes
0
answers
66
views
Send an email from a VB.NET application using outlook features
This is my code
Imports Outlook = Microsoft.Office.Interop.Outlook
Private Sub SenEmail_Click(sender As Object, e As EventArgs) Handles SenEmail.Click
Dim olApp As Outlook.Application = New ...
0
votes
1
answer
93
views
Setting the focus in .ascx user controls
I am having some difficulty setting the focus inside an .ascx custom control. Microsoft Copilot advises me to place a txtName.Focus() or Page.SetFocus(txtName) inside the Page_Load event of the .ascx.
...
-1
votes
1
answer
111
views
How to get an existing RowVersion value from a table to be used when updating the same record?
I'm learning to update a record in a SQL Server table after checking for concurrency violation using a RowVersion column (timestamp data type). However, I'm not able to extract the existing RowVersion ...
0
votes
1
answer
67
views
"System.IO.Ports is currently only supported on Windows." on .net 8.0 / Raspbian
i am trying to run a .net 8.0 application on Linux / Raspbian with System.IO.Ports, i have done this previously with the same setup with no issues.
This time i am getting this exception when running ...
0
votes
0
answers
96
views
How to set up 3 update panels
I have 3 panels and would like to use update panels as follows for better display. ASP.NET / VB.NET
Panel 1:
2 text boxes
2 drop down lists
Panel 2:
2 buttons
Panel 3:
3 drop down lists
1 checkbox
If ...
0
votes
1
answer
103
views
VB.NET DataGridView not showing label row with EmpId and EmpName before attendance rows
What are you trying to do?
I'm building an attendance summary grid in VB.NET (Windows Forms). For each employee, I want to insert a label row before their daily attendance rows. This label row should ...
0
votes
0
answers
39
views
Error when using ExecuteNonQuery in SSIS Script task using OleDb connection in VS 2022
I have created an SSIS package to transfer a large bulk amount of data. Everything works fine on all my other Execute SQL Tasks, however on my only Script Task I keep getting the error
Invalid column ...
1
vote
1
answer
112
views
GnuTLS error -110 and 425 error when connecting with FtpWebRequest to FileZilla server
I'm a student learning about VB Net and I got a task to create a program in VB that allows me to upload files using FTP. But I always get this error despite the file being successfully transferred to ...
0
votes
1
answer
70
views
How to keep getting the latest validation code in google authenticator for TOTP
I am implementing 2 Factor Authentication TOTP (Time-based One-Time Password) for a login page. After enter id and password, it will go to TOTP checking. It can only get the first code and won't ...
0
votes
2
answers
269
views
Can the TextBox portion of a ComboBox be made resizeable on all sides?
Can the TextBox portion of a ComboBox be made resizeable on all sides?
I've done this with the TextBox (shown below). I thought the ComboBox was a composite control with a TextBox & ListBox, so I ...
1
vote
0
answers
156
views
Stop PictureBox from resizing when Text sze is changed VB .net
Cannot insert the Code comes up with:-
"Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K ...
0
votes
0
answers
43
views
How to generate an OpenCover report for part of an application?
My Application starts with frmmain
Public Class frmmain
Private Sub frmmain_Shown(sender As Object, e As EventArgs) Handles Me.Shown
Call load_interface() ' Fetch backend data, prepare ...
1
vote
0
answers
55
views
Cannot copy file to another folder using Renci.SshNet.Sftp ("No such File" Error)
I need to copy and rename a file from one folder of an SFTP server to another.
I'm using Renci.SshNet.Sftp to perform the copy task.
When I copy to the same folder, it works perfectly.
But when I set ...
1
vote
2
answers
165
views
How to make shapes, drawn on a form, resilient to changes in display's resolution / scale
An elegant solution for drawing polygons on a form was proposed by Jimi, as part of an answer to the question Why am I getting an extra line when drawing polygons? (see attached code).
I designed the ...
5
votes
1
answer
164
views
Why am I getting an extra line when drawing polygons?
After some advice from kind people over here, I managed to have my code working. However, an extra line, from the origin of the form to the first polygon point, is also drawn.
I would like to learn ...
2
votes
4
answers
167
views
Can we do an assignment operation in the true/false part of IIF in VB.net?
Can we do an assignment operation in either true or false parts of the IIF function of VB.net?
Public Sub Main(args() As string)
Dim score As Integer = 0
DIM scoreString As String = &...
0
votes
2
answers
258
views
Each time I try to run a file or project in Visual Studio 2022 Community edition, I am presented with different errors
I tried to open a file in Visual Studio 2022 Community, all of a sudden I got this error message:
The Trust Service cannot be loaded. Trust Checks are now disabled
After a couple of failed attempts, ...
-1
votes
1
answer
132
views
How do I reference controls with a variable in visual basic 2025?
I am trying to do the same sort of thing as the OP this question, but can't get the suggested code in the answer to work.
I'm using Visual Studio 2022, but doubt that's the reason it doesn't work for ...
0
votes
1
answer
62
views
VB.NET Cookie Mystery
I'm working on a legacy app, and I'm a little stumped by the intention behind this:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
...