Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x

Microsoft Visual Studio

465

Solutions

527

Contributors

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.

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

Sign up to Post

I am using Visual Studio 2010.  For some reason in source view my properties window does not show the styles anymore (drop down list styles such as border color, style, width, etc.).  I have tried going to tools > properties > text editor > Miscelaneous > there is not option to enable properties grid in source view.

I had this before and I have obviously clicked some options in visual studio to hide some of these properties from the properties window.

Can some help?

Thanks

Rick
0
Nothing ever in the clear!
LVL 1
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

C# Visual Studio question regarding how to kill Excel interop process.
0
I use vb.net to launch and use Microsoft Excel.  There is 1 computer, however, that will not launch excel when I run this code:

Imports XL = Microsoft.Office.Interop.Excel

Public Class Form1

    Dim xlApp As New XL.Application
    Dim wb As XL.Workbook
 
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        wb = xlApp.Workbooks.Add()
    End Sub
End Class

I have references to Microsoft.Office.Core and Microsoft.Office.Interop.Excel.  I am using Visual Studio 2015 and the Excel on the user's machine is 2010 Professional Plus.

Please see the attached error.

Thank you,

Elliot Semmelman
error.docx
0
Hi Experts,

My Developpers use excel interop dll to import data to SQL Server from excel file on client PC via web application. they ask me to install excel on my web server.
I don't need to perches additional office licence for web server and open another vulnerabilities on my web server.
I search a run time, couldn't find.
Redistributable  Interop Assemblies didn't work.

Is there any way to export excel using excel interop dll without installing excel to web server?
or is there alternative method to import data from excel to SQL Server through web app.
0
my C# asp.net solution support localization from database, when i call localization class ("Local Resources") its return the string correct in < placeholder>.
but if i call  localization class ("Local Resources") in text=" ". between double quotation. return no result
the code as shown in attached file
viber-image2.jpg
0
Hi,
I need to create the settings file for Child form. Each child form have the same variables but with different values.
How can I do that?
0
I know how to add a dll or static library into my project but recently i have come to a situation that i need to add a dll library into my new dll/static library project (i have NOT decided yet:)) and i cannot follow the same way i did with "ordinary" prjects like properties->c\c++->general->additional....but i don`t see any LINK category in properties?!. Can you please help me find that "LINK":) or show me how to do that in another way? I am working with c/c++ by the way:)

EDIT: i am including my lib but can`t link it and show which lib i need to use like Link->input .... my.lib
0
I created a Web FOrms project in Visual Studio 2015 and I cannot read the form data from a HTML page into an ASPX page. According to everything I've seen on the web, my code should work. But, it does not. When I click the button on the HTML page, the ASPX page gets shown, but the first string in the page_Load event is null.

THis should be trivial, but there's a problem somewhere.
PersonData.html
CreditReport.aspx
CreditReport.aspx.cs
Web.config
0
I know connecting to a MySQL Db is notoriously fiddly in Visual Studio. I did manage it though, and have been running a web app successfully for a couple of years, syncing SQL data across to MySQL.

I now have an issue however, which is preventing the app from running. It is a web job scheduled hourly in MS Azure, but it is now failing with the following error message:

[01/02/2018 23:16:54 > 9c069f: ERR ] Unhandled Exception: System.TypeLoadException: Inheritance security rules violated by type: 'MySql.Data.MySqlClient.MySqlProviderServices'. Derived types must either match the security accessibility of the base type or be less accessible.

I have read various MySQL guides and forums with people having similar issues, but still haven't managed to fix it. The latest thing I did was to uninstall all of the MySQL Nuget packages and reinstall them again. It could be there is an incompatibility between the entity versions of each of them, I guess, but I don't know how to work out which versions I should have.

Attached is a screenshot showing the errors I'm getting. It has now resulted in me not being able to open the .edmx file - database designer - in Visual Studio at all. I'm tempted to delete all related files, underneath the WPMySQLDev.edmx branch, but there are so many references and calls to tables in this database that I worry whether we can get them all back in place.

Can anyone suggest how I should go about getting this app back up and working again from …
0
I'm creating a service website using visual studio 2015 and VB web form site, I need the user to select a date to book in for a service using calendar control and for that date to be put into car service date field in the database which is NULL at the moment,  how would I go about doing this, I'm struggling because I'm new to VB and many website tutorials cover c# for this particular question.
0
Efficient way to get backups off site to Azure
LVL 1
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Hi I need to know to correctly write the filter for Open File dialog to avoid the problem with case sensitivity.
For example I need to put the filter for text file and it can  be *.txt but also  *.TXT.
I use Visual Studio 2017 C#.
0
Hello Experts,

I kind expert wrote a the following C# script. I don't get any errors when I debug it with Visual Studio. However, I'm not sure how to test the script with input/output data. Can someone please show me how to add data to the script. For example, for hours I would like add 6, and for capacity I would like to add 7200

using System.Threading.Tasks;
using System.Net;
using System.Net.Http;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
        }

        public class test
        {

            const double revenuePerkW = 0.12;
            const double technicianCost = 250;
            const double turbineCost = 100;


            public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
            {

                //Get request body
                dynamic data = await req.Content.ReadAsAsync<object>();
                int hours = data.hours;
                int capacity = data.capacity;
                //Formulas to calculate revenue and cost
                double revenueOpportunity = capacity * revenuePerkW * 24;
                double costToFix = (hours * technicianCost) + turbineCost;
                string repairTurbine;
                if (revenueOpportunity > costToFix)
                {
                    repairTurbine = "Yes";
                }
                else
                {
                    repairTurbine = "No";
                }

            

Open in new window

0
Hello Experts,

Before you look at this question, I just want to point out that I'm an extreme newbie with C# when I debug the following c# program in Visual Studio I keep on getting the following errors

'a namespace cannot directly contain members such as fields or methods' at the following lines of code

using system.Net;

const double revenuePerkW = 0.12;
const double technicianCost = 250;
const double turbineCost = 100;

public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{

The full c# program is as follows:

using System.Net;

const double revenuePerkW = 0.12;
const double technicianCost = 250;
const double turbineCost = 100;

public static async Task<HttpResponseMessage> Run(HttpRequestMessage req, TraceWriter log)
{

    //Get request body
    dynamic data = await req.Content.ReadAsAsync<object>();
    int hours = data.hours;
    int capacity = data.capacity;

    //Formulas to calculate revenue and cost
    double revenueOpportunity = capacity * revenuePerkW * 24;
    double costToFix = (hours * technicianCost) + turbineCost;
    string repairTurbine;

    if (revenueOpportunity > costToFix)
    {
        repairTurbine = "Yes";
    }
    else
    {
        repairTurbine = "No";
    }

    return req.CreateResponse(HttpStatusCode.OK, new
    {
        message = repairTurbine,
        revenueOpportunity = "$" + revenueOpportunity,
        costToFix = "$" + costToFix
    });
}

Open in new window


Can someone please let me know how to fix this problem.

Cheers

Carlton
0
HI Experts,

I'm moving servers, and have a number of functions on the old SQL 2008 that I want to make sure have transferred correctly.. I have Microsoft Visual Studio 2008 on the old server and in Server Explorer have created a new data connection with the sa username and password of the new SQL instance, however it won't connect. Am i missing something? is it Firewall related?

Thank you
0
I am trying to use VSTS to support my SSMS 2017 projects
I'm using Git Bash which works fine for local repos
However when I try to access the repo on VSTS I keep getting not a gt error messages

What is the URL required to access a project from outside Visual studio?

Note I have setup alternative credentials which work fine
0
I have made an application that detects,pairs and connect discoverable Bluetooth devices.Also I have made an application that encrypts and decrypts file. Now I want to check whether an already paired device is in range. If I select an already paired device and it is not in range then the function for encrypting the file must be activated and if that selected paired device comes in range then function for decryption must be activated. How can I implement it? Please suggest any solution.
I have also attached visual c# files for both applications as well.
BluetoothApplication2.sln
EncryptDecrypt.sln
0
We have a web application designed on Visual Studio 2008.
Can we move everything to VS2016?
Will there be any issues? Are they compatible?

Thanks in advance.
0
I upgraded my VS2005 to VS2013 and I'm now unable to access my Database schema (.XSD File).
When I double click it I get the following Screen Shot...how do I fix this?

Thanks,
Mark
Error.jpg
0
TITLE Program Template          (RevStr.asm)

; This program reverses a string.

.model flat, stdcall
.stack 4096
ExitProcess PROTO, dwExitCode:DWORD
Writestring PROTO
INCLUDE (where you have it stored)\Irvine32.inc

.data
aName BYTE "Abraham Lincoln",0
nameSize = ($ - aName) - 1

.code
main PROC

; Push the name on the stack.
      mov ecx,nameSize
      mov esi,0

L1:      movzx eax, aName[esi]      ; get character
      push eax                  ; push on stack
      inc esi
      Loop L1

; Pop the name from the stack, in reverse,
; and store in the aName array.
      mov ecx, nameSize
      mov esi, 0

L2:      pop eax                  ; get character
      mov aName[esi],  al            ; store in string
      inc esi
      Loop L2

; Display the name.
      mov edx,  OFFSET aName
      call Writestring
      call Crlf
INVOKE ExitProcess, 0
main ENDP
END main
0
Visualize your virtual and backup environments
LVL 1
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

I'm migrating from a VBA/EXCEL app that connects to SQL Server and runs reports, to SSIS.  I use Visual Studio 2015, and connecting to Sql Server 2012.

I work at a large corporation that is pretty locked down.  I have been able to use an ADODB (2.8) connection using windows authentication.  

It is weird because the connection was working fine, and now it isn't.  I do need to move from windows authentication to SQL Server... I did that with the connection string (many variations attempted) but can't get it to work on my environment (VDI), but a co-worker can get it to work.

This is a lot of background, but I'm looking for a solution, because I can't do anything until I get a connection.

I'm wondering if I can use the data connection in Server Explorer, which does work fine.  I don't know if or how to make the connection in code to an ado object using the data connection in server explorer.  My attempt is in the last line of code below with DirectCast.

Below is my code, with all the attempts remmed out.  I was trying to open the connection, but then tried the direcast using sqlconnection instead.  I don't know if that will work, but I can't move forward because it says "dts" isn't declared.  

Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Linq
Imports System.Text
Imports System.Threading.Tasks
Imports System.Windows.Forms
Imports System.Data.SqlClient
Imports 

Open in new window

0
Backing up Access Linked table to separate Access Db using VB.net and Visual Studio 2012.
I have tried code I found on Expert Exchange published 2010-03-30 by DDB. It uses ADODB which does not work well with Visual Studio 2012.
0
Hi,

I hope that someone is able to help. The web development team have changed the current website that we are using. We have an order download application that integrated into mageno.

The issue is that I try to change the endpoint address to the following and I receive an error:

https://old.filofax.co.uk/index.php/api/v2_soap/index/?wsdl=1

Error message is attached(error1)

I have also tried to generate a proxy class using the same error message.

My issue is that I can browse to this URL ok.

I would appreciate any help. I have contacted the hosting company and they don't have any iea.

Best Regards,

Ross
error1.png
0
In Visual Studio 2015/VB project, in project properties I specify the certificate to sign the build with. I expect that when I build, the resulting exe will be signed. But it's not. Detailed output from the build process does not show any attempt to do it, and no errors - it successfully builds, but the exe is not signed. Am I doing something wrong, or I misunderstand how it works?

screenshot
0
I am making a student planner/grade report app for
Android Studio class in college. I was just wondering if anyone is experienced with using android Studio?
0
Due to account restrictions I have my own local account, and we have an "admin" account that we use to run specific applications, for example Visual Studio. We simply login with our regular account then Run as administrator the shortcut. TFS then used this admin account for our mappings etc.

Unfortunately due to a password change this no longer seems to be working, and all my mappings are not available! In Team Explorer if I hold the mouse cursor over the Team Project it says Connected as: MyLocalAccount, however when I've checked a colleagues it says their admin account.  So now in Team Explorer it's looking for me to configure my mappings, and when I try and use the existing project it says it's already mapped (presumably under my other account).

I've tried clearing the TFS cache on the C drive, I've added & removed the details under Credential Manager in Windows (several sources suggested this online) but nothing has worked. Using the Credential Manager various blogs suggested I'd be presented with a dialog box to login when I next tried connecting to TFS, however this has never appeared!

I've been working on a piece of code and I'd ideally like to not have to create a new mapping and start / copy over code.
0

Microsoft Visual Studio

465

Solutions

527

Contributors

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs for Microsoft Windows, as well as web sites, web applications and web services. Visual Studio uses Microsoft software development platforms such as Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and Microsoft Silverlight. It can produce both native code and managed code.