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

Build errors for ARM64 intrinsics on Visual Studio 2017 Preview

$
0
0

Hi,

I am trying to a C++ program for ARM64 including ARM64 intrinsics (arm64intr.h) on Visual Studio 2017 Preview. Getting error message like "#error This header is specific to ARM targets" while building the same.

Please guide me with a solution or any work around for the same.

Thank you in advance.

Regards,

Shweta


Visual Studio is starting up automatically

$
0
0

I have noticed that Visual Studio 2017 is now starting up automatically, when I log in.

In the Task Manager, I see "devenv.exe".

Is there any way to prevent it from starting up?


Using Excel as Database

$
0
0

Hello

Developing an application for a university in which they would like to use data from an excel file to pull prices/names. I'm not overly experienced with creating a database with an excel template, so I thought I'd ask here. Cannot post the excel datasheet as it is confidential information, but it's as one could expect. Have EPPlus and EntityFramework as packages, and can possibly transfer the excel data into, say, access.

Also, if this is posted in the wrong area, please feel free to move it as needed.

Thank you!

App package creates old .ps1 file

$
0
0

Hi,

This started a couple of days ago and I don't seem to be able to fix it.

When I create an app package the .ps1 file is very old. If i download that to a device  it downloads an older version of the app

I also at the same time lost connection to my files and had to reinsert them. I have tried to move the file and create a new one but get a constant out of date project.

I don't have any .h files that shouldn't be there and I have deleted all the tlog files to no avail

thanks for help

"Create Project" with REST api in VSTS

$
0
0

Hello,

I am currently working on a chatbot that is suppose to create new VSTS projects on demand. So far I managed to get all the names of already existing projects via the REST api.

I am using the program "Fiddler" to make the request so I can use them in C#

This is the closest I have gotten to a working POST request, but it keeps getting a 415 error

(Sorry I am not allowed to post images yet with this account)

POST https://MyUserName.visualstudio.com/_apis/projects?api-version=5.0-preview

Header:

User-Agent: Fiddler
Host: MyUsername.visualstudio.com
Authorization: Basic Q2VlcGVydDozbHR2endlcmGDsaE3154F6b2lhd2hzdnhqcHkzZ2p4NHNuaWdteWM0dWRlaGR2N3dh
Content-Length: 98
Content-Type: application/json-patch+json

Body:

{
  "name": "FabrikamTravel",
  "description": "Frabrikam travel app for Windows Phone" 
}

The error:

{"$id":"1","innerException":null,"message":"TF400898: An Internal Error Occurred. Activity Id: 3e7c083c-0320-41db-a19a-38834ec32b4f.","typeName":"System.Web.Http.HttpResponseException, System.Web.Http","typeKey":"HttpResponseException","errorCode":0,"eventId":0}

I cant really find anything on that subject online besides one Forum post, but that one didnt help me.

Im a student, so I am still learning. So please keep the answeres relatively simple.

PS: The token is correct, I already used it to get the names of all existing projects.

Removing languages from a DLL

$
0
0
I have been using the 2012 ReportViewer control and VS 2013 for a couple of years in my ASP.NET projects. I just upgraded to VS 2015 and the 2015 ReportViewer control. Now that I have done that, the DLL file Microsoft.SqlServer.Types.resources.dll in the bin directory has a bunch of language directories under my project's bin directory. I was wondering if there is some way to get rid of these language directories and files as they are not needed. I tried to delete them manually, but when I rebuild the project they show back up.

Can we migrate TFS 2015 update 2 to TFS 2017 update 3.1

$
0
0

Hi,

I have a collection from TFS 2015 update 2 from SQL 2014 Enterprise Edition.  I wanted to migrate this collection to TFS 2017 update 3.1 and SQL 2016 Enterprise Edition.

So I stopped my collection from TFS 2015 and detached and took the backup of the DB.  I was able to restored the collection to SQL 2016.  But when I tried to attach the collection, I got an error "TF254078: No attachable databases were found.."

I do have sys admin from both TFS server and SQL 2016 server.

I also did check the properties and I see as below

Tfs_Configuration's properties:

  • TFS 2017 Update 3.1
  • TFS_PRODUCT_VERSION = 15.17.27414.0
  • TFS_SERVICE_LEVEL = Dev15.M125.1

Tfs_defaultCollection which is from TFS 2015 update 2 properties:

  • TFS_PRODUCT_VERSION = 14.95.25122.0
  • TFS_SERVICE_LEVEL = Dev14.M95.3

Could you please advise what I am missing here that caused the error above? 

Appreciate any help I can get!

Thanks.

 

 

Npoi reads incorrect values in formulas

$
0
0

Hi

I have the formula: =+N136/N133 in a cell. The result is 17.53% (2 decimals) but NPOI reads: 0.173372680906768 or in another  words: 17.34%

I don't understand what happened?


Visual Studio 2017 - SSIS Project Incompatible

$
0
0

Hi All,

I created and have been working on a VS2017 SSIS SSDT solution for the past week. Visual Studio crashed a little while ago and after the restart the toolbar message said xxxx plugin caused the crash, click disable after restart never see this message again.

I clicked disable and restart now Visual Studio says my SSIS solution is incompatible and I can't open it, either starting Visual Studio then select the solution or right clicking and selecting open with.

So how do I re-enable SSIS packages?

Thanks

Windows Authentication doesn't work with IIS Express 10 when running Visual Studio 2017 under another account

$
0
0

At my workplace, we do development on a production network, meaning we have a regular, restricted account and an "admin" account, which has greater rights. We recently had a hardware refresh where we went from Windows 7 to Windows 10, and VS 2013 to VS 2017.

Under the old system, I could log in with my regular account, run VS 2013 as my admin account, and I was able to build and run my web application just fine in Firefox.

This does not work under Windows 10. When I try running VS 2017 under my admin account while logged into my regular account, windows authentication fails for my web application, giving me either 401.1 or 401.2 errors. The only way I have been able to get everything working is to log into my admin account and run it from there. This isn't the preferred way to do things. So, is there any way to do what I want to do in Windows 10 and VS 2017?

Access is Denied Error- After Build Solution and When Start without Debugging

$
0
0

Hi, I am relatively new to visual studio so I hope I am being straight forward and clear.

I am simply trying to run a simple "Hello World!" console app. Using Visual C# with .NET FRAMEWORK. The project files are being stored on a non-network drive. Here is my code.

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestHello
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}

The build is successful but when I select "Run Without Debugging" cmd.exe pops up and instead of it showing Hello World! it shows "Access is Denied" "Press any key to continue".

I have tried everything I can think of. My permissions are all set to read and write and I always "Run as Administrator". I checked my Anti virus programs and it is not having its access blocked, as far as I can tell. 

If anyone could please help it would be very much appreciated. It's quite disheartening when you can't even getting a "Hello World!" To function properly. 

 

Best method for an application development

$
0
0

I have a system I developed for a small business. It creates and manages jobs, creates BOM's, basic project management and displays status and produces reports on performance and manages cash flow. I wrote the system in COBOL. I am rewriting it.  I've converted the database/tables to SQL Server.  The application is primarily data entry and report screens, and a few reports.

There are 11 tables, 22 screens, 5 reports that actually get printed ad PDF's. The actual data volume is small by today's standards.

I was told that there is/was a Microsoft tool that will produce VB source code to perform the basic connect/backup/add/change/delete/view database tables.  I cannot seem to find anything although there are some vague reverences to the ability in forums.

I'd like to use whatever is the best method to do the database stuff and focus on rewriting the business logic. Are there tool(s) to automate the development of the database and screens and background functions?

Mike

Valid options for Condition in Custom Action of a Setup project?

$
0
0
I am looking for information on what is a valid entry as a Condition when creating a Custom Action in a Visual Studio 2010 Setup project.  I have seen "NOT Installed" in a specific example, but nothing that lists other valid entries.  Anyone know of such a list?

RSBeech

C# manually add USB device to appxmanifest file. How to find configuration codes

$
0
0

I purchased a Bosch BNO055 multiple function sensor USB stick.  I am using VS 2017 and I think I need to add USB device capabilities to the appxmanifest file.  Editing the file is no problem but I have no idea how to obtain the codes that are required for DeviceID, Function Types. Where can I find required values?

Thanks

[C++] Synchronize between multiple named pipe client

$
0
0

Hi all,

I'm developing an application C++.

My application has 3 threads: A, B, C

Thread A and B write message to named pipe, then thread C reads message from named pipe.

I intend to do as following

- Thread C plays role as server, create named pipe by using CreateNamedPipe() API and using ReadFile() to read data from named pipe

- Thread A, B plays role as client, connect to named pipe by using CreateFile() and using WriteFile() to write data to named pipe.

I wonder that I have to add exclusive control to synchronize thread A and B?

Please help me.


Visual Studio 2017 default project location how to change for managed env

$
0
0

Hi I'm trying to package up Visual Studio 2017 Community edition for deployment in an FE College environment and have run into a bit of a snag. Managed desktops using folder redirection and UEV for settings, no roaming profiles.  

It's been fed back to me by the ICT Teachers testing the deployment package that there is one little problem they want fixed.  The default new project save location is C:\users\%username%\source... when they are used to it being %userprofile%\Documents\VisualStudio20xx...  This new location is a bit of a problem as it's outside of redirected folders so is lost when the students move between computers unless they remember to save the project elsewhere. Bit of a dangerous data loss potential if great care is not taken to save in the correct location.  

Now I've read on stackoverflow this location is now controlled by a private reg hive and no longer as a key I can control in HKLM by group policy.  I've no idea how to administrative modify it in the new location via install wrapper script or with group policy.  

I know I'm not the only person that want's to deploy visual studio to students in a managed classroom environment where local user profiles are not persisted so I hope somebody at microsoft or in the community has a solution to this they can share.  

Regards

Angus Carson

Visual Studio 2015 “Show All Files” in solution level

$
0
0

Hi

Does Visual Studio have a botton:Show All Files in the level of sln file?

Since I would like to identity hide files quickly.

Not able to connect to Excel 2016- 64 bit as Microsoft.Office.Inerop.Excel is not visible to add in References

$
0
0

I am using MS office 365 64 bit on windows 10 64 bit.

When I am trying to connect to excel 2016 (64bit), I want to add reference to Microsoft.Office.Interop.Excel . But it is not visible either in Assembly or Extensions or in COM . The only item visible in COM is Microsoft.Excel 16.0 object library. When I tried to add Microsoft.Excel 16.0 object library to references, it gives the message: "A reference to 'Microsoft Excel 16.0 Object Library' Could not be added.

I such a situation, how will I connect to excel from Visual Studio Community Edition 2017

Venugopal Kartha

Mumbai, India

C# Couldn't process file xxx.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file

$
0
0

I have issue while i try to build project in VS2012.

Can't build due to error:

"Couldn't process file xxx.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."

I didn't downloaded file from internet. That project was build from scratch. In project after selecting Properties, in Windows Explorer nothing happened, i don't have "unblock" option, only default 3 options (read only, hidden, archived).

I have same error and can't build or rebuild project. I have theory that is recent error after update Windows.
Have some clue. probably VS after update add Visual Studio Remote Code Execution Vulnerability. But, I don't have any file from web. I create own .png files to project, just that. Maybe someone know, how get rid of that problem ?

how to add v80 platform toolset to vs2017

$
0
0
Hello, Is that possible to add v80 platform toolset to vs2017 by modifying the .props and .targets files? If that's possible then how to modify the .props and .targets files.
Viewing all 21115 articles
Browse latest View live


Latest Images