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

When are VC runtime needed? Is an installer needed?

$
0
0

I have an app I built with VS2017 using C# for my personal use.  It runs fine on my win10 desktop that has VS2017 and if I copy the .exe to my surface pro 4 it also runs fine.  I want to share this app with some friends. I built it for "any pc" and have a 32 and 64 bit "release" apps and I uploaded them to my personal webpage on GoDaddy..

Do apps built with VS2017 community need to have VC runtimes to work?  If they do is there a way to build them in?  All the systems I have tested it on already have VC runtimes.

Are installer packages even needed for C# apps built with VS2017?  When I retired my company was using Installshield and I recall a free one came with the earlier VC compilers.  I do not see that tool or anything like it in VS2017.  Maybe I should be using a newer version of VS?

When downloading my .exe app from my website I get a lot of scary warnings.  I found I can reduce the number of warning by compressing the .exe to .zip or .7z.  Can an installer package be used so there is only one warning such is typically seen on just about any site (amd, nvidia, gpuz,   How is it if I download my .zip from my webpage I get all type or warnings but if I download a .zip (or whatever) from Microsoft, amd,etc only think I have to answer is whether to save or open it?


Redirecting web traffic from multiple domains to single ssl domain

$
0
0

I have multiple domain names similar to my main web domain 

i Am trying to consolidate them all to one domain for many reasons but mostly so search indexes do not think I am spamming them. 

so I want to send http://MultipleSites.com/eachpage.aspx to

https://mainsite.com/eachpage.aspx

i do not want to simply check if https:  and if not change to https because pages not covered by the ssl will not load right

ideally I would like to write one piece of code On the master page to do that

any ideas on a simple way?


Trial for VS 2019 is expiring but its not accepting my product key

$
0
0
Ive been using the trial successfully for a while but now that its expiring I got the key and when I try to use it I am getting a rather generic error. A error occurred while applying the product key.

Can error "fatal error LNK1107: invalid or corrpt file" be caused by a static library file that is too large?

$
0
0

I have a Solution in Visual Studio 2015 that has 2 x64 Projects: one builds a static library and one builds a console executable that uses the library.  I'm using Windows 10, 64bit edition.  I'm trying to build both Release and Debug configurations.

In both cases the static library is quite large, over 2 GB.

Initially, I was getting this error from Visual Studio when linking: "fatal error LNK1104: cannot open file 'C:\blah\blah\blah.lib'".

From looking on the web, it looked like I had to tell Visual Studio to use the x64 native tools in order to link to static library files this large. So I have added this line to both configurations in the .vcxproj file:

<PreferredToolArchitecture>x64</PreferredToolArchitecture>

Indeed, by adding the 'preferred tool architecture' line to the .vcxproj file, I solved that error for both Release and Debug configurations.

So, now the Debug configuration builds and runs as expected.

However, the Release version now reports the "LNK1107" error mentioned in the title.  I have replicated the error multiple times on multiple computers, so it's not happenstance.   Is it possible that Visual Studio is building a corrupt static library file?

It's easier for me to believe that the error has to do with the file size rather than Visual Studio building a corrupt file consistently.  But, the Debug static library file is actually substantially bigger than the Release version (around 3.2 GB for debug vs. 2.4 GB for release).  So, if Visual Studio can use the bigger static library file in debug mode, shouldn't it be able to use a smaller version for release?

I guess another possibility is that the static library file format is wrong. But, I've checked the properties of the release build vs. the debug build quite carefully and don't see any differences.

Can you suggest any other issues that might cause the LNK1107 error?

Thanks for any help.

-tom


VS 2019 autocomplete not working as well as it did in 2017

$
0
0
Visual Studio 2019's automatic syntax correction is not working as well as it used to. For example, if I type "guid" then press space, in VS 2017 it would correct this to "Guid"; however, in 2019 it keeps it how I typed it instead of correcting it. Is there some sort of setting that I can change to bring back the old (seemingly smarter) auto-correct of 2017?

Visual studio 2017 CE and Python

$
0
0
The statement    import wx    works in Idle and Pyscripter but not VS Community Edition AFAIK
Staying in VS2017CE using Python 3.6(64bit) I try  Run command pip install wx 
and VS reports
----- Installing 'wx' -----
Collecting wx
  Could not find a version that satisfies the requirement wx (from versions: )
No matching distribution found for wx
You are using pip version 10.0.1, however version 19.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
----- Failed to install 'wx' -----
Now I’m searching for Python 3.6(64-bit)     . . . .
Explorer finds it at C:\Users\srfpa\Documents\Visual Studio 2017\Python Scripts
But explorer says this folder is empty 
So I show hidden items and see a Python 3.6(64-bit) folder which 
shows me only a Readme file
Does anyone have wxPython installed with    import wx    working ?
If I should repost elsewhere, let me know.
TIA
Bob

Bob

Unable to Service Request

$
0
0

Whenever I attempt to go to my MSDN subscriptions at this link: https://msdn.microsoft.com/dn369243 I get 'Unable to service request' every time. 

I have attempted this on 4 different browsers on two different devices and cleared my cookies. Even when I attempt to go to MSDN support I get the same error. 

How do I get the application to wait while the user chooses from a combobox

$
0
0

I have two webserver searches; the first gets information to use in the second. If there is more than one result from the first search I load the results into a combo box I then want the user to choose from a value in that combo box so I can pass it to the second websearch.

I have tried giving the combobox the focus and 'doevents' but nothing seems to work.

Is this possible?


The program '[14400] iisexpress.exe' has exited with code 0 (0x0)

$
0
0

Hi, 

I am getting below error when I run my web application. 

The program '[3736] iisexpress.exe' has exited with code 0 (0x0).

Please help me resolving this error. I have tried almost all suggestions which are on internet.

vs 2017 issue

Thanks..

Dubugger doesn't work - "you are debugging a release build..."

$
0
0

My project is a web service project.  I have been working on it for weeks and everything has been fine.  For some unknown reason I started getting the error:You are debugging a release build of "my project.dll". The build is in debug mode.  To the best of my knowledge, I didn't change any settings.  It just stopped working.

I researched this and found numerous posts but none of the solutions has worked for me.  I have cleaned, rebuilt, restarted IIS, rebooted, upgraded visual studio, etc, etc, etc.  Nothing has worked.

I have had similar errors on different projects before, and the Clean usually fixes, but not this time.

How do I fix this?  I will never get the 1/2 day wasted back!

NEW GIT Push Error

$
0
0

NOTE: Been using Visual Studio and GIT for years (2017 currently).  I PUSH almost daily.  This issue just popped up today.

Trying to PUSH a COMMIT I did yesterday using GIT in Visual Studio 2017 Team Explorer, and getting the following error:

Error: cannot spawn /c/program files (x86)/microsoft visual studio/2017/enterprise/common7/ide/commonextensions/microsoft/teamfoundation/team explorer/Git/mingw32/libexec/git-core/git-askpass.exe: No such file or directory
Error encountered while pushing branch to the remote repository: Git failed with a fatal error.
could not read Username for '<path>': terminal prompts disabled
Pushing to <path>

Again, just started today.  No problem for years.

I did try reloading VS and rebooting.

Android studio emulator on microsoft azure

$
0
0

Hi everyone, i tried to run the emulator from microsoft studio on an virtuel azure computer (cause my one is not good enough) but when i trie to simulate my code, they tell me it`s not working because of the AMD Prozesser. so i tried to simulate it on "genymotion" but when i start the virtual device, it stopps booting and my azure pc crashes.

(i alsoe cant use my own device because i use the virtuel computer from azuer and have no option to plug in my phone)

If there is a other way to simulate my code ore to fix this problem ... pleas let me know

Thank you

Set up ArcGIS add ins on visual studio 2019

$
0
0

Hi, i used to have Visual Studio 2017 with ArcGIS 10.7. Now i have installed Visual Studio 2019 and i can not see templates of ArcGIS. But my previous projects with add ins are still working. I just can't create new one. How can i fix this issue?

Thanks


Problems in _stprinf _stscanf instructions

$
0
0

I get wrong results using _stprintf and _stscanf functions

           // _TCHAR txt[] = _T("Vers "); 

           //_TCHAR txt[] = _T("5.123 "); 

          _stprintf (str, (_T(“ %s\t %s”), txt, nver );

     // str is wrong!

     // Contains only 1<sup>st</sup> character of txt 

         //_TCHAR str[] = _T("NAME\t123 "); 

         _stscanf (str, _T(“%s%d”), name, num );

     // name is wrong!

    // Contains something like Chinese text in name

         // num is OK

R Tools for Visual Studio 2019 - is it available?

$
0
0

If not, is there a timeline for it?

Thanks.

ps tried looking on forum / google on this but haven't been able to find an answer


How to avoid restart when installing with MSVC merge modules

$
0
0

We're running into an issue where quiet install of our product is causing machines to reboot without warning shortly after install. We can reproduce the issue using the following command-line:

msiexec /I installer.msi /qn

The installer log is showing this:

MSI (s) (38:F4) [11:45:04:543]: Verifying accessibility of file: msvcp140.dll
Info 1603. The file C:\Windows\SysWOW64\msvcp140.dll is being held in use. Close that application and retry.

We are attempting to install the 2017 runtime and this issue seems to happen when a user has installed the 2015 runtime and a program is using one of the associated DLLs.

We are using WiX to create our installer and we are using the following merge modules:

  • Microsoft_VC141_CRT_x64.msm
  • Microsoft_VC141_MFC_x64.msm
  • Microsoft_VC141_OpenMP_x64.msm
  • Microsoft_VC141_CRT_x86.msm
  • Microsoft_VC141_MFC_x86.msm
  • Microsoft_VC141_OpenMP_x86.msm

We have some 32bit components so we need to ensure that x64 and x86 runtimes are installed.

Is there any way to keep the merge modules from triggering an uninstall without warning? We have a strong preference toward an msi installer so we would like to avoid creating an exe installer bundle that chains the runtime exe installs and our own installer if at all possible.

Search not working properly

$
0
0

Hi,

As usual I'm left supporting another horrible MVC application, made by a developer that left the company.

In general is unbelievable hard with Model View Controlller, since the relevant bits of code are hidden all over the shop.

So I'm simply trying to find where and how validation occours, since I need to add more.
Some existing fields are validated, somehow (by magic it would seem).
For example, Business Group.

Running the code locally at least that is working this time.

But why can't I simply search for the existing validation text? Then I would know where it is, find it and add validation for my new field.
As an example, the validation says things like:
Please correct the validation issues below
or
Please select the business group.

But such strings cannot be found in Visual Studio, this time using 2017 edition.
I suppose alternatively VS \ C Sharp may know to validate the columns because they are not null?
But then how is the prompt provided? I mean it's not like it's an SQL Error for saving a record without a not null value.

Other things don't work to, there is a button labelled Create Reservation - that can't be found, even though I know for a fact that text exists in the solution since I eventually found it another way.

Any ideas to make it search properly? Use Windows Perhaps?


Oracle client issue

$
0
0

Does anyone have experience setting up both 32 bit and 64 bit Oracle Data Access Components on a Windows 10 system running both Power BI 64bit and Visual Studio Community 2013 32 bit?

Here is my problem. I have reports created in Visual Studio Community 2013 running on a Microsoft 2008R2 SSRS report server. I have been tasked to move them all into Power BI.

I am also setting up a new PC. I installed Power BI first along with the 64 bit Oracle client Power BI required. When I installed VS 2013 next, I discovered I had a compatibility problem when I tried to run one of my reports against an Oracle database and got this message.

An error occurred during local report processing.

An error has occurred during report processing.

Cannot create a connection to data source '<OracleData>'.

Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: Dx8007000B)

Enable debugging

$
0
0
I'm using VS Community 2017.  I am trying to debug a form application. I have Enable native code debugging checked, but the program is stopping at breakpoints.  Is there another setting?

ResultView Enuramation yielded no results

$
0
0

I raised this as a bug last year through VS Community 2017 feedback but it never got resolved, only got to triage recently before being discarded due lack of severity.  I am running a query on a sql server table and despite the results showing a field count of 1, ResultsView displays "Enumeration yielded no results".  This query is returning true or false.  No result would indicate a field count of 0.  Anyone have any ideas?

  
Viewing all 21115 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>