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

What is DCAppConfig -> 'Enable' admin setting is not found.

$
0
0

I am using the guidance of this article to chase down missing header files, and my DebugView window is filled with thousands of the same message:

Info: DCAppConfig -> 'Enable' admin setting is not found. 

I am compiling a C++/MFC project in VS2010. I am trying to determine if this is a message I should be concerned about, and whether it indicates an issue with the settings for our projects.


NPGSQL problem.

$
0
0

I have an error message about NPGSQL as listed below:

"Could not load file or assembly 'Npgsql, Version=2.0.11.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its dependencies. The system cannot find the file specified."

Please provide assistance on how to get this resolved. Much thanks.

Carlossharp

Visual Studio 2013 creates very many threads until it is unusable

$
0
0

Recently, my Visual Studio 2013 started to lag heavily after finishing a build of a rather big solution (~100 projects). When I looked at Task Manager, the devenv process had more than 2000 threads and was constantly eating one whole CPU core. I have found out that after start, VS has about 100 threads. After loading the solution, the number rises to ~600. Then after each build, the number increases by some amount, until at some point VS becomes hardly usable. It seems to me that the number may be proportional to the number of files in the solution as there are less threads for smaller solutions.


I explored the threads in Sysinternals' Process Explorer and it seems that they are all waiting in clr.dll!GetPrivateContextsPerfCounters+0x591c. Maybe there is some .NET performance monitoring option that I have turned on that would cause this? But I don't know what it could be that I might have turned on.


I have also tried Visual Studio 2012 for comparison and it creates these threads as well, so it is most likely something outside Visual Studio that is causing it. Or maybe it is some VS extension that I have installed for both VS2012 and VS2013, but I don't know which could that be. Is there an easier way to find out, other than disabling/uninstalling them all?


Thanks for any suggestions.

Are there any good books on Visual Studio 2013 Extensibility?

$
0
0
I would like to learn how to make VSPackage and other extensibility projects for Visual Studio 2013. Even with all the good documentation available on this topic, I have always found it hard to enter into and learn a new area this unique without a complete book; sites, blogs, forums, tutorials, etc. always seem to be more useful for more specific topics or adding to knowledge after having already been first introduced to it elsewhere. Does anybody know of any good books available on Visual Studio 2013 extensibility? Most of the books I have found are very out of date, mostly for Visual Studio 2008. Thanks.

Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/

Default or Static Item in Layout within ListView

$
0
0
I am trying to have a static item show up within the layouttemplate of my listview. Anyone can show me some examples of this? I have a lv_serviceLocations_DataBound event that fires the ListView to be visible, but I am unsure of how to take the data within my DataTable and have a default location be visible once the ListView appears. Here is some of my code...

<asp:ListView ID="lvServiceLocations" runat="server" DataSourceID="sdsServiceLocations" 
DataKeyNames="user_service_location_id" InsertItemPosition="FirstItem"
 OnItemInserting="lvServiceLocations_ItemInserting"
  OnDataBound="lvServiceLocations_DataBound" ><LayoutTemplate><table class="location-selection-table ui-widget-content"><tr><th colspan="4" class="ui-widget-header">Locations</th></tr><tr id="itemPlaceHolder" runat="server" /></table></LayoutTemplate><ItemTemplate><tr class="location-selection-item-row"><td class="location-selection-actions"><asp:LinkButton runat="server" Text="Remove" CommandName="Delete" /></td><td><%# Eval("selected_state") %></td><td><%# Eval("selected_county") %></td><td class="location-selection-actions"></td></tr></ItemTemplate>

Deleted from Schema View but still in Solution View

$
0
0

Hi All,

I am comparing Database Project and Production Database

Somehow I have deleted a Stored Procedure from Schema View but it is still in the Solution

So it doesnt show that when I do schema compare .

How can I get it back into schema view so it shows in schema compare?

thanks

Gok

Help With Visual Studio 2012 error: Unable to access the IIS metabase.

$
0
0
Could someone please help:  I had Visual studio 2012 crash on my pc while running a asp.net web application project.  After I rebooted my computer and restarted Visual Studio 2012, I started getting this error when I try to open existing projects.  

"error  : Creation of the virtual directory http://localhost:61471/ failed with the error: Unable to access the IIS metabase. You do not have sufficient privilege to access IIS web sites on your machine."

I get this error when I try to create a new web application project.  "Web application projects are currently configured to use IIS Express.  To switch back to using the Visual Studio Development server, change the development server option under the Projects and Solutions/Web Projects category of the Tools/Options menu.  Configuring IIS Express failed with the following error:  Unable to access the IIS metabase.  You do not have sufficient privilage to access IIS web Sites on your machine."

Note I have tried doing this "aspnet_regiis.exe -ga MyUserName" using the Visual Studio 2012 command Prompt as Admin.  Didn't help.  I have tried repairing the .Net Framework 4.5, it completed succesfully but didn't fix the issue. 

Would anyone have any idea what is wrong, and how to fix this.

Thanks

Dave.

Migrating Sql Server 2005 database project to Sql Server 2012 by Visiual Studio

$
0
0

Hi All,

I am trying to migrate Sql Server 2005 Database project to Sql Server 2012 by Visual Studio 2010

but I am getting these errors at below and doesnt load

GDSDW.sln Converted
Conversion Report - GDSDW.sln:
Solution converted successfully

Project: GDSDW
Filename Status  
 GDSDW.sqlproj 
Conversion Report - GDSDW.sqlproj:
Could not retrieve the target platform from your project file. 
 
Filename Status 
 GDSDW.dbproj Converted
Conversion Report - GDSDW.dbproj:
Beginning Upgrade
In order to use the upgraded database project of type .sqlproj in Visual Studio 2010, install SQL Server Data Tools for Visual Studio 2010 from the following location:http://go.microsoft.com/fwlink/?LinkID=237127&clcid=0x409. Some file types in Visual Studio 2010 database projects of type .dbproj may not be supported in SQL Server Data Tools database projects (.sqlproj). Please refer to the link for more information about SQL Server Data Tools.


Windows Forms application: Data Source Configuration Wizard crashes Visual Studio 2013 when pressing Finish

$
0
0

I was trying to drop a textbox to a Windows Form and bind it to a table field.

I chose "Add Project Data Source..." under "(Data Bindings)" and went through the wizard until I selected a table and fields, then pressed Finish, and my Visual Studio crashed.

Thanks,

Steven


how to get more info on .NET crash - machine without VS

$
0
0

Hi,

Is there a possible way to collect more data from a C# crash of an app without

installing VS ?

Thanks

No Azure Website info inside VS2013

$
0
0

As of yesterday, I can no longer see Websites inside of the Azure explorer (it stays as Refreshing...) and when trying to publish a website, Azure Website does not offer any options and the drop down is grayed out.

It seems that this may be to a permissions issue I have been experiencing across the Azure universe.

I have signed out, reset the subscription to no avail.

Who can I contact about this?

Publish does not Deploy MVC5 Views

$
0
0

I am using VS 2013 Update 2.  I have built an MVC 5 application.  I am trying to deploy the application to a local IIS server.  In the publish options, I have tried all the combination of the following:

    Precompile during publishing [Yes and No]

    Allow precompiled site to be updated [Yes and No]

    Merge [I have tried Do not merge, and Merge each individual folder output].

In all cases, the build and publish is successful, however, when the application runs, none of the MVC Views can be found.  I have checked individual view files and all are marked as 'Content', and 'Do Not Copy'.  I have changed the 'Do not Copy' to 'Copy Always' and also tried 'Copy when Updated'.  In all of these cases, the View files are not copied to the IIS server.

We manually copied the contents of the Views folder to the IIS server and the application works correctly and all views are located.

This seems to be a deployment / publish issue.

The only thing unusual about our MVC application is the we have overridden the base class for all views.  This was done via Views\App.Config  [<pagespageBaseType="CBT.SOE.UI.SoeWebViewPage">]

We have the workaround of manually copying all of the views, but we would like to find a resolution as to why the publish process refuses to deploy [or find] our views.

Where are the deployed views?

What can we do to force the publish process to copy the views?

Thanks,

jpl

VS 2013 Premium Build Fails

$
0
0

New to Visual Studio and trying out a dirt simple "Hello World" console app - but it won't build. Turning on "Diagnostic" level logging, all I get is this: 

1>Project 'ATconsole1' is not up to date. Missing output file 'C:\Users\ht3lions\Documents\Visual Studio 2013\Projects\ATconsole1\ATconsole1\bin\Debug\ATconsole1.exe'.
1>------ Build started: Project: ATconsole1, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I've tried deleting the intermediate files and rebuilding, but that yields the same result. 

So - what am I missing?

DIA SDK APIs for inlined function

$
0
0

Hi,

I am trying to use the following APIs provided in DIA SDK:

IDiaSymbol::findInlineFramesByAddr
IDiaSymbol::findInlineFramesByRVA
IDiaSymbol::findInlineFramesByVA
IDiaSymbol::findInlineeLines
IDiaSymbol::findInlineeLinesByAddr
IDiaSymbol::findInlineeLinesByRVA
IDiaSymbol::findInlineeLinesByVA

I always get E_INVALIDARG error, en though the functions got inlined in the executable file.

Code snippet:

IDiaEnumLineNumbers *pLines;
hr = pSymbol->findInlineeLines(&pLines);
// hr is always E_INVALIDARG :(
if (S_OK == hr) {
	// do something with pLines
}

Any suggestion on how to fix this? What may be going wrong?

System.Web.Mvc namespace missing from .Net class library in Microsoft Help Viewer

$
0
0

I have just noticed that although I have both the .Net 3.5 and 4 class library documentation installed (courtesy of the Help Library Manager), these do not included the System.Web.Mvc namespace. When I take the option to install content from online, I cannot find an option relating to MVC which I can select.

The whole point of using Microsoft rather than going to the open source world is that with Microsoft things are definitive, supported, and documented. Yes they may change every 18 months (just when you're beginning to get the hang of something) but at least they change definitively. If they can't keep the documentation up to date then we may as well give up and use open source - at least there things don't keep changing at such a dramatic rate.

Either I've missed something or someone appears to have dropped the ball here. I sure hope it's the former and someone can point me in the right direction.

Michael




C++ debugging, keeping variables expanded in Watch when they are being modified

$
0
0
Whenever I have a variable in the Watch window expanded, it will automatically collapse when modified. Is there any way to keep them expanded? It makes debugging the contents of vectors tedious.

Help Viewer possible limitations for bigger files

$
0
0
Hello,

With every release that we publish, we are preparing new API Reference both for Visual Studio’s Help Viewer and Web output versions. Last time that we released new version of our product (August 2014) and it was time to generate new version for our API Reference. We had several new assemblies to add to the project:

Telerik.Sitefinity.AuditTrail.dll
Telerik.Sitefinity.RecycleBin.dll ...

The problem is that the AuditTrail assembly's api reference never appears in Help Viewer.

At first we thought that it’s a problem in the tool that generates the API Reference – Document! X tool from Innovasys. However after a discussion with their support we realized that it’s the Help Viewer who didn’t indexed the API reference properly. Here’s what we received from Innovasys in result to their investigation:
The .mshc generated is correct and includes all of the content in your project, including the Audittrail assembly. It seems however that Microsoft Help Viewer is not indexing the .mshc file entirely - there are many assemblies missing from the Table of Contents, not just AuditTrail - the Toc starts from around Telerik.Sitefinity.M* with all those before missing (and maybe more). After much experimentation it seems that any file after "topic42002.html" has not been indexed. We are not aware of any size/file number limitations in Help Viewer but there is a possibility you have hit one here - the images folder contains 64,000 images on it's own .

Is there any setting that we are missing and is there really a limitation in Help Viewer?

We’ve tested with the Help Viewer for Visual Studio 2010, 2012 and 2013 and all with the same result – missing assembly AuditTrail



Compiler producing C1023 randomly

$
0
0

HI,

I am using Visual studio 2008 SP1 and when I compile my project I randomly get 

"1>c1xx : fatal error C1023: 'SDK2wince7 (ARMv4I)\Debug/XX.pch' : unexpected error with pch, try rebuilding the pch"

And this is getting realy anoying as I have to reboot PC everytime to get rid of this error.

Do you have any solutions to this error?

Regards,

Luka

How to make a C# Project work on Windows XP

$
0
0

Hello,

I am developing a C# Project using the Microsoft Visual Studio 2012 Express for Windows Desktop. I am developing on Windows 7 but the application has to run on Windows XP as well.

The Problem is, it won't run on Windows XP. I get the Errorlevel 5 which is an Access Denied Error as I found out. I searched the Internet for an answer but couldn't find anything that would help. I am using the.Net 3.5 Framework which is also installe don the Windoes XP Computer. I should also mention that the Software works perfectly on Windows Server 2003 (32 Bit).

There is no exception during the runtime or anything like that. As soon as you start the executable an errormessage Pops up which says "Is not a valid Win32 Application". As there is no Special Code Segment causing the Problem I can't post any code. 

Best regard
Marius



0x800a138f - JavaScript runtime error: Unable to get property 'toJSON' of undefined or null reference

$
0
0

We are migrating a VS2008 website to VS2013. When we try to run the website on the local host we get the error in the subject line. We can break or continue. If we continue the Java Script works. We are running on Server 2012 R2 and VS 2013 Update 1 and .NET 4.5.1. We know it has something to do with this Java inline script block so we created a very small sample program and recreated the error using a new website project. Here is the web page code:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><title>Nebraska Workers' Compensation Court</title></head><body><form id="form1" runat="server"><div><h1">Nebraska Workers' Compensation Court</h1><p><script type="text/javascript">
	    Today = new Date();
	    var Date = Today.getDate();
	    var whichDay = new Array('SUNDAY', 'MONDAY', 'TUESDAY', 'WEDNESDAY',
		'THURSDAY', 'FRIDAY', 'SATURDAY');
	    var DayName = whichDay[Today.getDay()];
	    var whichMonth = new Array('JANUARY', 'FEBRUARY', 'MARCH', 'APRIL', 'MAY',
		'JUNE', 'JULY', 'AUGUST', 'SEPTEMBER', 'OCTOBER', 'NOVEMBER', 'DECEMBER');
	    var MonthName = whichMonth[Today.getMonth()];
	    var Year = Today.getFullYear();
	    document.write(DayName + ", " + MonthName + " " + Date + ", " + Year);</script></p></div></form></body></html>

It works on VS2008 so we are stumped on why it does not work on VS2013?

Anybody have suggestions on how to resolve the unhandled exception?

Bruce


Viewing all 21115 articles
Browse latest View live


Latest Images

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