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

VS2015 Error 8007006E Unable to finish updating resource for bin\Release\app.publish\setup.exe

$
0
0

Hi,

My solution was originally created in VS Community and I was able to you use the ClickOnce method of publishing my web form on the intranet. I've now got VS 2015 Pro and I keep getting an error when attempting to publish.

An error occurred generating a bootstrapper: Unable to finish updating resource for bin\Release\app.publish\setup.exe with error 8007006E

I've rebooted, I've deleted my profile, I've uninstalled & reinstalled.  I'm stuck for what to do next.  If anyone has a solution to this error I'd be incredibly grateful.

Thanks,


Failed installation of ASP.NET Web Tools Preview 2 for DotNetCore on VS2015 U3

$
0
0

I have VS 2015 with update 3, with patch https://msdn.microsoft.com/en-us/library/mt752379.aspx?f=255&MSPPError=-2147217396

Then I tried to install ASP.NET web tooling Preview 2 for dot net core (suggested by VS Extensions update), and I get this:

If i start Update 3 installation again (to repair something i guess) it says everything is installed correctly. VS starts normally. 

Any ideas!?


VS Error Opening Web Page - Missing stdole.dll (Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.Create)

$
0
0

The first time I open up a *htm* file in my Asp.Net solution, I get a generic error message from Visual Studio. Opening the ActivityLog.xml file, I see the following:

System.IO.FileNotFoundException: Could not load file or assembly 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'stdole, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.Create(ITextBuffer buffer)
  at Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.<>c__DisplayClass0_0.<GetOrCreate>b__0()
   at Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator)
   at Microsoft.VisualStudio.JavaScript.Web.Extensions.Interop.HTMLEditor.HTMLTreeHelperFactory.GetOrCreate(ITextBuffer buffer)
   at Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTagger..ctor(ITextView view, ITextBuffer sourceBuffer, ISPASupportedTagProvider tagNameProver)
   at Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.<>c__DisplayClass2_0`1.<CreateTagger>b__0()
  at Microsoft.VisualStudio.Utilities.PropertyCollection.GetOrCreateSingletonProperty[T](Object key, Func`1 creator)
   at Microsoft.VisualStudio.JavaScript.Web.Extensions.Classification.SPARegionTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer)
   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


It clearly can't find stdole.dll. I've tried:

- Starting in safe mode. This didn't disable whatever is causing the issue.

- Reinstalling the Tools and Windows SDK as described at https://github.com/Microsoft/TypeScript/issues/4238 . I also cleared the cache and updated the configuration. This did not do anything.

I fixed the issue by copying stdole.dll from a known good location on my machine into the same location as devenv.exe. HOWEVER, this is a hacky solution. I was wondering if anyone has seen this issue and what they've done to solve it, or what troubleshooting steps I can take to find a non-hacky solution to this problem. Thanks!

VS DEP4300 error on deploy of a UWP app to remote client (Windows 10 IoT Core)

$
0
0

when i deploy an empty project to raspberry pi 2

an error accur

DEP4300: can't use c:\Users\DefaultaAcount\AppData\Local\DevelopmentFiles...

Illegal charaters in path.

无法使用c:\Users\DefaultaAcount\AppData\Local\DevelopmentFiles的基布局文件夹为应用程序包 e9ceo512-649a4f2d-8157-9dded4da8c00|VS.Debug_ARM.sman|CN=sman|e9cea512.....sman 生成根文件夹

Illegal charactors in path.

How can I solve this problem?

Thank you all



Access is denied problems with exe file for visual studio 2015 project

$
0
0
Question
You cannot vote on your own post
0

I am having a really annoying problem with my windows form project in visual studios 2015 on windows 10.

So I saved a windows form project onto dropbox and I was using it back and forth between my windows 7 laptop and windows 10 pc. But now suddenly my windows 10 pc can't run the program at all since it is throwing strange errors about access denied with the exe out of nowhere and cleaning, rebuilding, and even restarting my computer aren't fixing the problem.

I am getting a few errors, the first is sometimes when I debug the program I get " Error while trying to run project: Could not load file or assembly 'project name' or one of its dependencies. Access is denied."

next is " Unable to copy file to destination . access is denied."

then lastly when I try to manually double click the exe to run it in the folder I get " Insufficient system resources exist to complete the requested service" ( I have 18 gigs of memory and tons of harddrive space so not sure what this means).

I've tried looking into user permissions and I have full access to it. It also was not letting me move the .exe file onto my desktop off of dropbox saying "you Require permission from myself to make changes to this file". I've tried running VS as admin and running as the main super admin account on my computer still to no avail. I've also checked the pagefile to see if it's not giving enough resources but it's set to automatic so it should be fine.

Here's some screen shots of the main errors I see. 

Also it's working fine right now on my windows 7 laptop and I just restarted my windows 10 pc in safe mode and ran the project and it gave no errors and ran fine, so the only way I managed to run the project was in safe mode. It's only this one project that is causing problems on my windows 10 pc so I'm not sure what I can do at this point.

Any help would be greatly appreciated,

Thanks.

How to copy record from table to another with Access Database using VB

$
0
0

I have a DBTEST.accdb file and have 4 table in it
Using VS 2013 Express

In my VS project.

Form1 have two DataGridView, storing and showing data of table1 and table2 in DBTEST.accdb
All the column is the same in table1 and table2
One of the column is set to Yes/No (CheckBox) in DBTEST.accdb

Now, I would like to determine weather the CheckBox is Checked.
And copy the whole selected row to table2 from table1, then delete from table1.
And I want the task is done by one button.

Thanks a lot.

Visual Studio 2015 Automated Code Review and Unit testing tools

$
0
0

What is the best tools to use with visual studio 2015 and MVC5 application for automated code review.

and What is the best tool to use with Visual Studio 2015 and MVC5 application for unit testing.

NuGet XAMARIN package reference error??

$
0
0

I can't get past this compile error.  I have even manually downloaded the package to the solution package directory and it still does not see the Xamarin package.    I have done all the FAQ suggestions about turning on the auto update feature, but that does not seem to help.

So restore does not download it as advertised.  I have the right file in the right directory,

Severity Code Description Project File Line Suppression State
Error  This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\Packages\Xamarin.Forms.1.4.4.6392\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets. HyperTime.Core C:\Users\User\Documents\Visual Studio 2015\Projects\HyperTime\master\HyperTime.Core\HyperTime.Core.csproj 79 


Intellisense says "Not found", but solution builds

$
0
0

Hi,

I'm fairly new to VS development and I'm trying to run a solution my partner developed.

I can build the solution and everything works fine, except when I look at the code, it is showing all kinds of errors in the syntax highlighting/intellisense.

The issue seems to be that intellisense doesn't find "Core" although the compiler must (because it builds and runs). See the screenshot below: 

Any idea why the syntax highlighting can't find "Core" resulting in error indicators but the compiler does find it and compiles fine?

Thank you.

Best regards,

Eric



Visual Studio Enterprise crashes while building with code analysis

$
0
0

When I try to build my c# solution from visual studio enterprise, Visual studio is crashing. The build configuration without code analysis enabled is working fine. This issue happens only for configurations having code analysis enabled. The application log gives error as below.

Application: devenv.exe

Framework Version: v4.0.30319

Description: The application requested process termination through System.Environment.FailFast(string message). Message: System.ArgumentException: Value does not fall within the expected range. at Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable4.GetDocumentData(UInt32 cookie) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace.AttachToDocument(UInt32 docCookie, String moniker) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace.Registration_WorkspaceChanged(Object sender, EventArgs e) at Microsoft.CodeAnalysis.WorkspaceRegistration.RaiseEvents() at Microsoft.CodeAnalysis.Workspace.<>c__DisplayClass199_0.<RegisterText>b__0() at Roslyn.Utilities.TaskExtensions.<>c__DisplayClass14_0.<ContinueWithAfterDelay>b__1(Task _) at Roslyn.Utilities.TaskExtensions.<>c__DisplayClass2_0.<SafeContinueWith>b__0(Task antecedent) at Roslyn.Utilities.TaskExtensions.<>c__DisplayClass6_0`1.<SafeContinueWith>b__0(Task t) Stack: at System.Environment.FailFast(System.String, System.Exception) at Microsoft.CodeAnalysis.FailFast.OnFatalException(System.Exception) at Microsoft.CodeAnalysis.ErrorReporting.FatalError.Report(System.Exception, System.Action`1<System.Exception>) at Microsoft.CodeAnalysis.ErrorReporting.FatalError.ReportUnlessCanceled(System.Exception) at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task) at Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable4.GetDocumentData(UInt32) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace.AttachToDocument(UInt32, System.String) at Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.MiscellaneousFilesWorkspace.Registration_WorkspaceChanged(System.Object, System.EventArgs) at Microsoft.CodeAnalysis.WorkspaceRegistration.RaiseEvents() at Microsoft.CodeAnalysis.Workspace+<>c__DisplayClass199_0.<RegisterText>b__0() at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass14_0.<ContinueWithAfterDelay>b__1(System.Threading.Tasks.Task) at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass2_0.<SafeContinueWith>b__0(System.Threading.Tasks.Task) at Roslyn.Utilities.TaskExtensions+<>c__DisplayClass6_0`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<SafeContinueWith>b__0(System.Threading.Tasks.Task) at System.Threading.Tasks.ContinuationResultTaskFromTask`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Sample project configuration is as below.

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ReleaseCR|x64'">
    <OutputPath>..\..\..\..\BinReleaseCR(x64)\GUI\Product\</OutputPath>
    <DefineConstants>TRACE;CODE_ANALYSIS;USE_WINCODECS</DefineConstants>
    <Optimize>true</Optimize>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <CodeAnalysisLogFile>..\..\..\..\BinReleaseCR(x64)\GUI\CodeAnalysisLog\GUI.exe.CodeAnalysisLog.xml</CodeAnalysisLogFile>
    <CodeAnalysisUseTypeNameInSuppression>true</CodeAnalysisUseTypeNameInSuppression>
    <CodeAnalysisModuleSuppressionsFile>GlobalSuppressions.cs</CodeAnalysisModuleSuppressionsFile>
    <ErrorReport>prompt</ErrorReport>
    <CodeAnalysisRuleSet>..\..\..\..\CodingRules\AlsR_CodingRules\CodingRulesFromMicrosoftAllRules.ruleset</CodeAnalysisRuleSet>
    <CodeAnalysisRuleSetDirectories>;C:\Program Files (X86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\\Rule Sets</CodeAnalysisRuleSetDirectories>
    <CodeAnalysisIgnoreBuiltInRuleSets>false</CodeAnalysisIgnoreBuiltInRuleSets>
    <CodeAnalysisRuleDirectories>;C:\Program Files (X86)\Microsoft Visual Studio 14.0\Team Tools\Static Analysis Tools\FxCop\\Rules</CodeAnalysisRuleDirectories>
    <CodeAnalysisIgnoreBuiltInRules>false</CodeAnalysisIgnoreBuiltInRules>
    <DocumentationFile>..\..\..\..\BinReleaseCR(x64)\GUI\Product\GUI.XML</DocumentationFile>
    <RunCodeAnalysis>true</RunCodeAnalysis>
    <Prefer32Bit>false</Prefer32Bit>
  </PropertyGroup>

Licensing Q - can you downgrade Visual Studio .Net Enterprise Developer (2002/2003) to Visual Studio Enterprise 6.0?

$
0
0

While doing a clean-up of our licensing, I've found Visual Studio Enterprise v6.0 installed - my company has licenses for Visual Studio .Net Enterprise Developer 2002 and 2003.

If VS Enterprise v6 is required by those users - can we apply those 2002 and 2003 licenses?

I've tried to find answers on the licensing forums/sites and I also asked our reseller, who doesn't know either.

Many thanks in advance!!!

Disable/Enable Auto-vectorization

$
0
0

According to:

https://msdn.microsoft.com/en-us/library/hh872235.aspx

the auto-vectorizer can be enabled/disabled switching the /arch in visual studio for x86 and x64.

According to:

https://msdn.microsoft.com/en-us/library/jj620895.aspx

the ARM architecture is chosen using /arch:[ARMv7VE|VFPv4]

Does the addition of /arch:[ARMv7VE|VFPv4] in command line (as it is advised) enables auto-vectorization on IoT emitting NEON instructions?

Moreover, which is the compilation configuration to disable the auto-vectorization targeting on IoT without using a lower optimization level such as /O1?

For example, using "Enabled Enhanced instruction set -> Not set",  disables the auto-vectorization for x86 and x64.

Which is the corresponding setting for ARM architectures?

Thanks in advance.



Error attempting to create or edit publish profiles

$
0
0

I am unable to create or edit publish profiles.  I receive the following error in any project i attempt to do so.

Since i can't upload pictures, text follows: 

Microsoft Visual Studio 

Method not found: 'Newtonsoft.Json.Linq.JObject Microsoft.VisualStudio.ProjectSystem.DotNet.Helpers.JsonHelper.ParseJsonContent(System.String)'.

I have accidentally made my code dissapear and my program will run but behave unexpected, i dont know what i have done but i have an idea, please help....

$
0
0

So i wanted to back up my program by clicking save project as, on a usb device, but when i returned to the visual studio UI i had some new bars pinned and i cklicked them away and after that i had clicked away my source code accidentally. I can still run the application but it does not respond in anyway. How can i restore this?

Thanks in advance!


Alexander Marin

vbc.exe file not found?

$
0
0

I have an extensive VB.NET application I inherited and have been using and making modifications for some time now.  However, when last I checked in a number of modifications to TFS and tried to build and run the application in debug, the application would not open and would fail for a server timeout.  It then started issuing an error on builds stating the vbc.exe file could not be found.  I closed and restarted VS 2015 and even did a workstation OS restart (Windows 8.1).  However, now it continues to tell me the vbc.exe file cannot be found requesting a shutdown or debug of vbc.exe itself, which does not work for the same issue.  However, the strangest this is that when I search the solution workspace folders in Windows Explorer it locates the file in Bin and a couple of other directory with the solution directory.  The primary file is under a sub-folder called Roslyn.  I have no idea as to what is going on with this problem that just suddenly started occurring nor how to get past it.  I don't seem to be having a problem with any other .NET application, however this one is only VB project and all the rest are C#. 


Ron K.


Problem creating new projects in VB (infinite loading)

$
0
0

I had an issue with Visual Studio 2015 Express where it could not create a new project with visual basic. After the form asking directory, name, etc comes up and clicking "OK", it will just infinitely (as far as I know) hang at 'creating project xxx...' At first I tried updating it. That didn't go smoothly so I just reinstalled it. After a couple tries, and hours later I finally reopen it to the same exact problem occurring. There were a few features that it said didn't work but none I deemed very important and I forget them now (maybe they were?). Anyway, creating c++ projects seems to work fine. Opening already made VB projects appears to infinitely load too. I'm using Windows 7 Pro with SP1 64 bit. Not sure how to create error logs and I'm unsure if they would be of particular use anyway since the IDE doesn't seem to ever recognize that there is an error. To close it I have to end it in task manager. One of my solutions throws an error because "one or more documents failed to load correctly or something along those lines, while another solution infinitely loads. That is by double clicking the .sln file and trying to open it that way. It also occasionally complains that it is busy and to report the problem to Microsoft (yeah, not paying them to report an error). Any help appreciated!

VS 2013 Express same issue

VS 2010 works though!

VS2012 keeps popping up after minimizing.

$
0
0
I can't get my VS2012 app to stop popping up to the foreground. I minimize it to do some work in another window, but it keeps wanting to be the active window. Any ideas?

Why does VS remove my inline code when editing completely unrelated controls in an ASPX page?

$
0
0

Good afternoon all!

I've run into a rather annoying issue and was hoping someone could say "oh that's happening because x, y and z!"

I am using VS 2013 Professional version 12.0.40629.00 Update 5 to develop a website. On one of the pages the following code exists:

<% if (Profile.PasswordRecoveryEnabled == false)
       {
    %><%-- DO WORK HERE --%><%       } %>

The above lines appear right below the page declaration, line 5 to be exact.

I inserted a Literal control on the design surface, and went to rename it. Once I click out of the name box on the property sheet, suddenly my code changes and my inline code above (with the exception of what is in the <%-- DO WORK HERE --%> spot) is changed to:

<%-- Label and controls go here. --%><%-- DO WORK HERE --%><%-- Label and controls go here. --%>

This obviously isn't okay. Is there a reason why this is happening?

I have no clue why something like this would happen, but it makes it very difficult to work on a page when it keeps changing my markup for, what I consider, no apparent reason.

Any thoughts?



Accessing Windows 10 functions from Unity IL2CPP project via a class library

$
0
0
I have been trying to create a UWP class library that gives me access to Windows 10s native features such as Windows.Security.Authentication.OnlineId. I would like to get a username and ID from the device for use in a Unity UWP IL2CPP project. I am currently able to do this with Unity's built in social class for ios and there is code which google has written that allows this to work seamlessly with the same class but for android's Google Play Games.

I've downloaded a sample off github (https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/WebAccountManagement) which demonstrates how to call the relevant classes and functions in a UWP app and works well but the samples appear to be are accessing classes from the "Windows.Foundation.UniversalApiContract" class.

I can't seem to find a way to add this to a basic UWP class library so I can call on the required classes such as Windows::Security::Credentials::WebAccountProvider.

The best I've been able to do is create a basic function in the class library that returns a small hardcoded string just to test if the concept was remotely possible.
:-

    extern "C" __declspec(dllexport) wchar_t* __stdcall GetMyString()    {    	wchar_t* myString = L"Guuuper";    	auto resultBufferLength = wcslen(myString) + 1;    	wchar_t* result = static_cast<wchar_t*>(CoTaskMemAlloc(resultBufferLength * sizeof(wchar_t)));    	wcscpy_s(result, resultBufferLength, myString);    	return result;        }



My whole journey in attempting to do that can be found here:-
http://forum.unity3d.com/threads/returning-c-string-to-il2cpp-windows-store-project.395284/

I've been able to successfully call this code from within unity via a UWP build but my main question is how I would go about adding the appropriate references or how I would create this class library to access the WebAccountProvider class?

I've asked the same question on StackOverflow and am even offering 50 bounty but haven't managed to get enough attention on the matter.

Any help would be much appreciated

Software Developer / 3D Modeler / Graphic Designer / Web Designer www.samsongabriels.co.uk Livin' 4 Christ!

What are the best tools to do c# remote pair programming?

$
0
0

Hello,

What are the best tools to do c# remote pair programming ?

Is it possible ?

Regards,

Pierre8e

Viewing all 21115 articles
Browse latest View live