.NET Programming





The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.

Share tech news, updates, or what's on your mind.

Sign up to Post

I've got a website on shared hosting platform that I think go messed up when they updated the .net framework on the server.  I have several sites that are currently not working correctly.  I don't have direct access to the server so that kind of makes it difficult to troubleshoot directly.  So I have to keep emailing their support.

The site I am currently having an issues with is http://www.formulaboatsmo.com, I use a framework from DMXzone.com for my database calls, it uses a combination of javascript and asp.net for the functions.  The site is written in classic asp.  So what started happening is my asp database driven sections aren't working.

I get this error: 006~ASP 0178~Server.CreateObject Access Error~The call to Server.CreateObject failed while checking permissions. Access is denied to this object.

The developer(dmxzone) believes the issue is with the permissions on the System.security.dll should have read/read&execute.

I'm at a loss of what to do or direction to take.  If you load just this page: http://formulaboatsmo.com/dmxConnect/api/Boats/FrontSecondaryRandom.asp it will show you all the errors being kicked up.  Sites worked perfectly until the .net updates.

{"type":"Error","fileName":"lib/core/parser.asp","lineNumber":86,"message":"006~ASP 0178~Server.CreateObject Access Error~The call to Server.CreateObject failed while checking permissions. Access is denied to this 

Open in new window

Cloud Class® Course: Microsoft Windows 7 Basic
LVL 12
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Writing an app that will parse an excel file.  The file has 2 worksheets.  For this purpose say SheetA and SheetB.  I am viewing the process while it is running to see the results.  I want SheetB to displayed in the foreground.  

Any idea how to accomplish?
Is SOLID Outdated?

What are more modern definitions/terms for design principles for OOP?

object aid

when i try to add object aid uml plugin worked on one laptop

other laptop
when i gave the name

Name as Object Aid UML Explorer
Location http://objectaid.com/update/current

from eclipse-->help->install new softwares

getting below error

Unable to read repository at http://objectaid.com/update/current/content.xml.
Unable to read repository at http://objectaid.com/update/current/content.xml.
Malformed reply from SOCKS server

please advise
I wrote an app in VB6 many  years ago. Scheduler and statistics for a pool league. It is complicated. Source code occupies about 300 MB.

I have been maintaining it on an old XP machine that finally died. Fortunately, I have all the source code and files on an external hard drive (and archived to CD).

I keep telling these people that the program needs to be complete re-written from scratch in some modern language. vb.net? Visual C++? Bourland? I'm 84 years old, and simply do not have the ambition.

What about an XP emulator on my Win7 machine? Any suggestions?

There are schedule/statistics apps out there. Any recommendations?

App is complicated. Variable number of divisions. Variable # of teams/division. Variable # of players/team. Different starting dates/division. Different rounds/season for each division. Venues may support teams in various divisions, and may support more teams than they have available pool tables. The divisions "cross-fertilize" to violate that condition. As I said, It is a complicated lot of coding.
Can someone please assist with re-writing a xml file as working with xml files is not one of my strong points.

I am using the OSDFrontEnd from scconfigmgr.com and as part of the OSDFront end that gets put into the the winpe boot disk.  It is basically a friendly front end of the sccm task sequence. Within the config file for the OSDFront end,  there is a option that allows you to set mandatory applications.  The problem is when you configure these settings and inject it into the winpee bootdisk it effectively gets locked and cannot be modified without re-creating or reconfiguring the boot disk itself. I wanted to find a way to export this section to a external xml file.  That way the main config in regards to where to look for the mandatory apps gets locked within the boot disk however the actual settings for mandatory apps can be stored on a web server and modified on the fly if needed.  

 The section of the config file relating to mandatoryapps is as below.

      <setting name="AppsMandatory" serializeAs="Xml">
                    <ArrayOfString xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                        <string>Adobe Acrobat Reader 2017 DC</string>
                        <string>Java 8 Update 144 (32-Bit)</string>
                        <string>Java 8 Update 144 (64-Bit)</string>
What are some classic Problem Solving questions I might expect from an upcoming interview for a .NET Senior Software Engineering position.

My ASP.Net web application once has a internal server error when executing the method:


Is this IIS error or .Net framework error or application code error? How do I find out the root cause of that error?
When I compile someone c# code, I got the following warning.  What do I need to resolve this? Any idea?

The primary reference "xxxConfiguration" could not be resolved because it has an indirect dependency on the assembly "xxxAsync, Version=, Culture=neutral, PublicKeyToken=58aa7495915e0000" which was built against the ".NETFramework,Version=v4.6" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5".
when we go to eclipse market place vs when we go
install new software option under eclise-->help

please advise
Cloud Class® Course: SQL Server Core 2016
LVL 12
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

objectaid ul plugin now working

i went to eclipse -->help--->install new software

then i put url
it brings windwo with saying
Add Repository
with 3 text boxes
not sure what to give above text boxes
after some times says
it says coulld find

please advise
eclipse keplan through help market place i installed glassfih tools

i also downloaded the glass fish 5 from

when go to file new server add glassfish locations says only 4 and 3.1 versions of glassfish supported
i tried to search internet to get glasfish 4 or 4.1 etc but could not find

can you please advise where i have to go to get it

please advise
I am writing an app that will get a list of directories and files.  I am populating a List<string> to store this information.

I created an ENUM to determine what directories and file extensions should be excluded.  I was trying to figure out how to write linq to "removeall" from the list against the values in the ENUM.  

Want to see if there is a way without looping through each value in List<string>.
public static class Enumerators
	public enum ExcludedDirectories

	public enum ExcludedFiles

Open in new window

My solution is below.
    public static class EnumValidation
        public static List<string> DeleteValues<T>(List<string> value)
            var deletionvalues = Enum.GetValues(typeof(T));

            foreach (var del in deletionvalues)
                value.RemoveAll(x => x.Contains(del.ToString()));

            return value;

Open in new window

Is there a more efficient way?
How to read Child tags under parent tag with name space in C#?
<ns:tag1></ns tag1>

How to read child 1 tag?
I am able to till ns:tag2 but unable to read any further tag.
var child = parentElement.Descendants(ns + "tags").First();
This provides list of child tags, but unable to further read it.
Tried a few things like:
and child.Element("child1") (with all possible sub functions)
Even tried to reload the xml from tag2 in XElement again but that threw invalid xml exception.
but all are throwing null pointer exceptions.
I'm using visual studio 2017 command prompt to build the project, with following command

msbuild myproject.csproj /p:configuration=Release /p:outputpath="C:\publishfolder", and it fails. and the I have multiple similar errors

"C:\repos\myproject.csproj" (default target) (1) -> (_CopyWebApplicationLegacy target) ->  
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets(182,5):
error MSB3030: Could not copy the file "Scripts\jPlugin\blank.gif" because
it was not found. [C:\repos\myproject.csproj]

I had deleted the plugin I was using, in this path "Scripts\jPlugin", and looks like during build it is trying to copy the file , which is not there.
I also made sure Microsoft.WebApplication.targets existed in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Microsoft\VisualStudio\v15.0\WebApplications\.

I tried to publish directly from visual studio as well, in the error list, I can see the same error, the error is the same but the source in the error list in visual studio is IntelliSense.

Copying file Scripts\jPlugin\blank.gif to obj\DEV\Package\PackageTmp\Scripts\jPlugin\blank.gif failed.
Could not find a part of the path 'Scripts\jPlugin\blank.gif'.            

I'm not sure, why it is trying to copy the gif file which is not there. is there a cache , that visual studio maintains that i'm not clearing.

any thoughts on this?
I m trying to Install SQL 2008r2 on newly bulit Windows Server20088r2. It requires dotnetframework 3.5
However I added roles & features for dotnet.
It still requires
I have an access database that I am converting to a vb.net project.  There are a few lines of script that are causing issues.  Mostly the DLookup conversion.  Any help at converting this script would be most appreciated.  Thank you in advance!

Here is the original VBA code:

Private Sub Form_Timer()
'On Error GoTo ErrTrap:
    Dim DB As Database
    Dim rs As Recordset
    Dim count As Integer
    Dim displayCount As Integer
    Dim formToOpen As String
    Dim stopTime As Date
    Dim nowTime As Date
    Dim WinWnd As Long
    'Determine if a member of management has set an alert message. If not, continue normal operations
    If DLookup("Alert", "AlertMessage", "Alert > 0") <> "" Then
        'Open the alert message
        DoCmd.OpenForm ("frmMessage")
        Call Form_Query
        'Run the NRFT screen for 1 minute, then open the safety message
        If runCount = 2 Then
            DoCmd.OpenForm ("Form1")
        End If
        'Close the safety message after 1 minute
        If runCount = 5 Then
            DoCmd.Close acForm, "Form1"
        End If

        If runCount >= 8 Then
            'Loop through all rows in the Content table where Active is set to yes
            'For Count = 0 To DCount("Active", "Content", …
I've been looking at the Egg Drop question, trying to solve it.  I found two code samples providing the solutions which I provided below.

The first solution GetDrops seems to just loop endlessly.
The second solution PerformEggDrop returns 2 which I don't believe is correct considering what I've read it should be 12 or 14.
        private static void TestEggDrop()
            var x = EggDropSolution.GetDrops(2, 100);
            var result = EggDropSolution.PerformEggDrop(100, 2);

Open in new window

    public static class EggDropSolution
        public static int PerformEggDrop(int n, int k)

            /* A 2D table where entery eggFloor[i][j]
            will represent minimum number of trials
            needed for i eggs and j floors. */
            int[,] eggFloor = new int[n + 1, k + 1];
            int res;
            int i, j, x;

            // We need one trial for one floor and 
            // 0 trials for 0 floors
            for (i = 1; i <= n; i++)
                eggFloor[i, 1] = 1;
                eggFloor[i, 0] = 0;

            // We always need j trials for one egg
            // and j floors.
            for (j = 1; j <= k; j++)
                eggFloor[1, j] = j;

            // Fill rest of the entries in table 
            // using optimal substructure property
            for (i = 2; i <= n; i++)
                for (j = 2; j <= k; j++)

Open in new window

Hi all i would like to ask if there is a way to create a wk4 file in Visual Basic .NET?

My scenario is we have upgraded to Office 2016, I know that it doesn't support saving excel file to a wk4 format and we're disposing older units with Office 2003 that can make a wk4 file.

Is there any alternative way to import data in lotus notes other than wk4 format?
Cloud Class® Course: Amazon Web Services - Basic
LVL 12
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

I'm getting below error when i compile the c# project in vs2017

Formboca.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files
1. I'm following this example http://jsfiddle.net/glebkema/73gtkvjt/
that I got from here. I'm doing the jquery version Example

2. You can download my sample code here. Unzip and just click on "page.html" to see it. The js file is Reporting.js

This is what's happening

1. I click on "Add Report Delivery" button and I see the control displayed. I click on the purple div and I can hide and display the control. This works.
2. Click on "Add Report Delivery" again and you'll see the second control. Now, click on the puruple div and that div (control) doesn't collapse. I put debug steps in the JS code and for the second puruple div...the js code is not even called. Only the first div collapses and expands. I see I have unique Ids . Not sure what I'm missing.


EDIT I ran a test. When I click on "add delivery schedule", the control is built dynamically. Something with this dynamic control that the "click" control on "toggle" doesn't work. Don't know why.
How can i easy and securely post data entered in a desktop application (developed in visual studio) to a website (also developed with MVC) for reporting to remote user.

I have developed a desktop application and i want user to periodically post data to a website where others users can see reports.

Sincerely i don't know how to go about this.

Thank you

I've been asked to do some research on what the advantages are by moving an MS Access front-end to a .net platform. We have a front-end that runs on a SQL backend currently with about 15-20 users. I've done some research and for this size user base & database I really can't seem to find any major benefits by moving the front-end to .net. Can anyone shed some light on if this makes sense or not? I seem to think it doesn't because of the size of the database and the amount of users but I'm open to opinions.
i have a psd file which contains two designed screens for my app. My question is, how do I implement it into my application? Thank you all

A basic example would be appreciated
I have set up a bamboo task to build a ASP.NET application. It uses MSbuild executable to build the project. In the options, I pass in /p:Configuration=Release.
The project builds successfully but the bin folder has files with pdb extensions, which I believe are generated when project is built in debug mode.
How do i build the project in release configuration?

.NET Programming





The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.