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

Unresolved reference to Synonym

$
0
0

I have created a VS2012 database project from a database containing synonyms. I built a database reference to the database project containing the objects referenced in the synonyms in the first project. But when I perform a build on this project, it returns errors saying, "unresolved reference to object". 

I searched many online resources, all saying the same thing: add a database reference. That having been done, the errors persist. The synonym resides in the same database with the view (I did not design this database).

It is my opinion that Visual Studio cannot recognize synonyms in SQL Server 2008R2. Has anyone been successful getting this to work?


XAML Designer terminating unexpectedly!

$
0
0

Hi,

I have a serious problem that I cannot resolve. I am using Visual Studio 2013 Community Update 4.My OS is Windows 8.1 Pro.

Every time I start a new windows store/phone project and open the mainpage.xaml I receive this error message and cannot access the visual xaml designer:

An Unhandled exception has occurred

Details:

System.Runtime.Remoting.RemotingException
[3924] Designer process terminated unexpectedly!
   at Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain.Microsoft.Expression.DesignHost.Isolation.IIsolationDomain.CreateInstance(String assemblyName, String assemblyCodeBase, String typeName)
   at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
   at Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
   at Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
   at Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
   at Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
   at Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
   at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
   at Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()

Also in the Event Viewer I get:

Faulting application name: XDesProc.exe, version: 12.0.31101.0, time stamp: 0x54547532
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17278, time stamp: 0x53eeb460
Exception code: 0x00000004
Fault offset: 0x00012f71
Faulting process ID: 0xf54
Faulting application start time: 0x01d040d04d7c4917
Faulting application path: C:\Users\Tim\AppData\Local\Microsoft\VisualStudio\12.0\Designer\ShadowCache\xblplb1b.wsk\zg3uy5wv.j2b\XDesProc.exe
Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
Report ID: 8b7a3919-acc3-11e4-bf04-0015830cbfeb
Faulting package full name: App.a7634f14b.a2ab7.a4f9e.a8e19.a6056a1d90eeb_1.0.0.0_x86_NorthAmerica_8wekyb3d8bbwe
Faulting package-relative application ID: Designer.App

Steps I have already attempted to resolve this problem:

- Repairing, uninstalling/reinstalling Visual Studio

- Checked to see if XDesProc.exe is hanging (it wasn't).

- Deleting Shadow Cache

- Found no file in the root of C:\ called "program"

- Ran a batch file with these commands:

pushd% VS120COMNTOOLS% 
icacls .. \ IDE / grant "ALL APPLICATION PACKAGES": (OI) (F) 
icacls .. \ IDE / grant "ALL APPLICATION PACKAGES": (CI) (F) 
icacls .. \ IDE \ PrivateAssemblies / grant "ALL APPLICATION PACKAGES": (OI) (F) 
icacls .. \ IDE \ PrivateAssemblies / grant "ALL APPLICATION PACKAGES": (CI) (F) 
icacls .. \ IDE \ PublicAssemblies / grant "ALL APPLICATION PACKAGES": (OI) (F) 
icacls .. \ IDE \ PublicAssemblies / grant "ALL APPLICATION PACKAGES": (CI) (F)

- Uninstalled Xamarin

- Updated all my drivers

- Restarted my PC numerous times.


This error also happens in Blend. I am at a loss, and am going crazy with this issue. Please Help.

Thanks in advance



VS2015 Preview - building android app with assets

$
0
0

I have successfully built and deployed a native android application using visual studio 2015 preview however I can't figure out how to include the assets into the apk. I've tried adding a custom build step to copy them into $(OutDir)\Package\res\assets after Build and ant does indeed 'crunch' them. But it fails with this message: [aapt] invalid resource directory name: C:\xxxxx\ARM\Debug\Package\res assets. It looks like it's not adding the assets folder correctly to the path? Or is there another way to add the assets to the apk?



Static library is always rebuilt even though there are no changes

$
0
0

I'm using Visual Studio Express 2012 to build a solution containing several projects including two EXEs, one DLL, and a recently added static library. The static library is used by one of the EXEs and soon the DLL as well.

Ever since adding the static library I get the following pop-up message every time I use the "Start Debugging" or "Start Without Debugging" to start the EXE:

     This project is out of date

     library - Debug Win32

     Would you like to build it?

This happens even when there have been no changes to any of the source files in the static library.

If I click "Yes" I see in the output window that it is starting a build of the static library but no files are recompiled and the library manager is not run.

I had a similar problem with one of the EXE projects a couple of years ago and was advised to delete all of the files from the Debug (or Release) directory for the project and allow them to be rebuilt. That solved the problem with the EXE project but I've tried to do the same with the static library project and it does not olve the problem. The EXEis not rebuilt as it should be if anything had changed in the static library.

Any suggestions?


Norm

Android native activity asset folder

$
0
0
I have successfully built and deployed a native android application using visual studio 2015 preview however I can't figure out how to include the assets into the apk. I've tried adding a custom build step to copy them into $(OutDir)\Package\res\assets after Build and ant does indeed 'crunch' them. But it fails with this message: [aapt] invalid resource directory name: C:\xxxxx\ARM\Debug\Package\res assets. It looks like it's not adding the assets folder correctly to the path? Or is there another way to add the assets to the apk?

ASP.NET - Not allowed to resize textbox width to 100%

$
0
0

Hi:

I have several applications I have been working on and everything was going well until in one application, I had to make a textbox conform to the width of the page (depending on what size it was resized to in the browser).

When I view the source to the rendered page it is set to rows="2" and cols="20" no matter what I tried. What is going on with Visual Studio 2013? I am way behind schedule now because of this and there does not seem to be any obvious logic to this. I have even opened completely new test projects to make sure that it was not something I broke during the development process and, NO, I still cannot programmatically control the textbox in an ASP.NET application to make the textbox any bigger than rows="2" cols="20"

Is anyone else having this issue, I am sure there are because I cannot be the only one needing a textbox in my ASP.NET web application.....I would be grateful if someone could explain this object to me as it has been changed somewhere along the IDE development process.

I have also made this a multiline and am using CSS to manage the attributes. I do not have any problem not doing this if it means the textbox will work as expected.

Thanks in advance for your consideration.



Best Solution for Busy WCF Service to Database

$
0
0
I have a WCF service that writes log records to a database for several applications. It logs sometimes 200K+ an hour. I am using entity framework currently to create the records and each is created independently (per call). That means a connection is getting created for each one. I've found that because of the heavy amount of connections (this database is shared with another application), that I'm having max connection issues. Since this application is consistently writing to the database, I didn't know if there was a better way of limiting its connections (maybe sharing them) as the inserts are done asynchronously so the requestor is not held up, and they don't have to be immediately inserted. Since immediately having them isn't a must have, I've also considered writing the logs to a file then building a batch insert to occur every so often so that only one connection is open when that occurs. Just wondering what may be some suggestions on the best way to go about the creation and handling of the database connections for a system like this? Thanks.

Path or exe file problem?

$
0
0

New to this forum. First post. Using VS 2013 Community.  
Using the book: MS Visual Basic 2013 Step by Step written by Michael Halvorson.

I finished creating the MyLuckySevenWF in chapter 4. All went well until I tried to run the app. In the Error List window, I received the error message: Unable to write to output file 'C:\Users\Bill\Documents\Visual Studio 2013\Projects\Book\Chapter 04\MyLuckySevenWF\obj\Release\MyLuckySevenWF.exe': Access is denied.

I also receive the popup message "Visual Studio cannot start debugging because the debug target 'C:\Users\Bill\Documents\Visual Studio 2013\Projects\Book\Chapter 04\MyLuckySevenWF\MyLuckySevenWF.exe  is missing.  Please build the project and retry or set the OutputPath and AssemblyName properties appropriately to point at the correct location for the target assembly."

After the error, from the Build menu I ran the "Build MyLuckySevenWF", but when I tried to run the app, same error.

I then ran the ReBuild... with no success. Then the Publish.... with no success. 

I notice in the popup error message that "...obj\Release..." is missing from the path.

I looked at the file folder. There is no .exe file in either obj\Debug or obj\Release folders.

In the Projects\Book\Chapter 04\MyLuckySevenWF folder, there is a MyLuckySevenWF.exe.config file;  a MyLuckySevenWF.vshost.exe file and a MyLuckySevenWF.vshost.exe.config file. Along with some other files.

If anyone would please help me with this issue I would be very grateful and  I am sure that I will be able to use the knowledge going forward.

Thanks.


What errors are indicated by the pink color on the scroll bar?

$
0
0

Here are the settings for the scroll bar:

Here is the scroll bar full of pink marks meaning the file is full of such errors:

Unfortunately, I can't figure out what they are.  Could anyone offer a tip on this?

BTW, the project builds and runs fine without any problem.


Hong

Where is Web Deploy Client username list stored

$
0
0

I want to remove some of these names, but cannot find where they're stored.

Trying to run Helloworld

$
0
0

I am trying to run the following code on VS Community 2013:

#include <iostream>

int main()
{
	std::cout << "Hello, world!\n";
}


After I compile and then select Debug-Start Debugging, I get this error message:

'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'Project1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
The program '[3088] Project1.exe' has exited with code 0 (0x0).

Why? What do I need to do to fix this?


Goto defination context menu is disabled for one of the project in solution.

$
0
0

hi

I have included the workflow designer activities in project which has xaml files. and after the my intellisense stopped working.

any help or update will be gr8.

Thanks

Ram

Printer Preferences options reset

$
0
0

Hi everyone,

I have delivered an application through Citrix to users. When I run the application on the server and I print, the label printer takes the settings of the default printer including paper size. When I run the application through Citrix, the printer settings especially the paper size are reset. This means every time the application is run the settings have to be reset. I have noticed that visual studio C# can be fairly limited when it comes to printing. I am using the crystalReportViewer's print option to print my label reports. The pages are 4x6 but when I go through Citrix the pages become 3x2. Is there a way to force a page size through my code? Any suggestions would be appreciated.


M.N.

Error while creating VS Database project

$
0
0

Hello,

currently i am having Visual studio Professional  2013 V12.0.30723.00 

when ever i create a visual studio SQL server Database project, i will get below error.

These Projects are either not supported or need project behavior impacting modifications to open in this version of visual studio.Projects not displayed either require no changes or will automatically be modified such that behavioer is not impacted.

Unsupported

This version of visual studio is unable to open the following projects.The Project types may not be installed or this version of visual studio may not supported them.
For more information on enabling these project types or otherwise migrating your assets, please see the details in the 'Migration Report' displayed after clicking OK. 

could you please suggest me what other things i need to install on my machine to resolve this issue.

Thank You. 

"Analyze > Performance and Diagnostics" does not open in VS2013

$
0
0

Howdy,

I'm running VS2013, Version 12.0.31101.00 Update 4 and I've recently encountered an issue where I can no longer open Performance and Diagnostics.

When I try, it loads for a brief second then nothing.... I can still proceed as normal with everything else, there's no freeze/lock-up/crash, it just doesn't ever open Performance and Diagnostics.

The issue affects all projects and running Update 4 - Repair made no impact.

I ran a /log session but there doesn't seem to be anything relevant in there:

<entry><record>664</record><time>2015/02/09 09:48:15.916</time><type>Information</type><source>VisualStudio</source><description>Entering function CVsPackageInfo::HrInstantiatePackage</description><guid>{22512D50-40BC-4DEA-89B1-21D70BB4218E}</guid></entry><entry><record>665</record><time>2015/02/09 09:48:15.916</time><type>Information</type><source>VisualStudio</source><description>Begin package load [DiagnosticsHubPackage]</description><guid>{22512D50-40BC-4DEA-89B1-21D70BB4218E}</guid></entry><entry><record>666</record><time>2015/02/09 09:48:16.274</time><type>Information</type><source>VisualStudio</source><description>End package load [DiagnosticsHubPackage]</description><guid>{22512D50-40BC-4DEA-89B1-21D70BB4218E}</guid></entry><entry><record>667</record><time>2015/02/09 09:48:16.352</time><type>Information</type><source>VisualStudio</source><description>Entering function CVsPackageInfo::HrInstantiatePackage</description><guid>{2FA86802-6C0C-4820-B09A-F947036A1002}</guid></entry><entry><record>668</record><time>2015/02/09 09:48:16.352</time><type>Information</type><source>VisualStudio</source><description>Begin package load [Microsoft.VisualStudio.WebClient.Diagnostics.PerformanceToolHost.Package.PerformanceToolHostPackage, Microsoft.VisualStudio.WebClient.Diagnostics.PerformanceToolHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description><guid>{2FA86802-6C0C-4820-B09A-F947036A1002}</guid></entry><entry><record>669</record><time>2015/02/09 09:48:16.352</time><type>Information</type><source>VisualStudio</source><description>End package load [Microsoft.VisualStudio.WebClient.Diagnostics.PerformanceToolHost.Package.PerformanceToolHostPackage, Microsoft.VisualStudio.WebClient.Diagnostics.PerformanceToolHost, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description><guid>{2FA86802-6C0C-4820-B09A-F947036A1002}</guid></entry><entry><record>670</record><time>2015/02/09 09:48:16.368</time><type>Information</type><source>VisualStudio</source><description>Entering function CVsPackageInfo::HrInstantiatePackage</description><guid>{BEB01DDF-9D2B-435B-A9E7-76557E2B6B52}</guid></entry><entry><record>671</record><time>2015/02/09 09:48:16.368</time><type>Information</type><source>VisualStudio</source><description>Begin package load [VsDebugPresentationPackage,version=12.0.0.0,publicKeyToken=b03f5f7f11d50a3a,culture=neutral]</description><guid>{BEB01DDF-9D2B-435B-A9E7-76557E2B6B52}</guid></entry><entry><record>672</record><time>2015/02/09 09:48:16.446</time><type>Information</type><source>VisualStudio</source><description>End package load [VsDebugPresentationPackage,version=12.0.0.0,publicKeyToken=b03f5f7f11d50a3a,culture=neutral]</description><guid>{BEB01DDF-9D2B-435B-A9E7-76557E2B6B52}</guid></entry>

It says it's begun and ended the package load... but yet nothing ever appears. Ithink the issue started when I installed Update 4, but I'm not sure. My next step will be to try downgrading to an earlier release, but before I do I thought I'd ask here, in case anyone had any advice.

Thanks very much,

Josh


What is the release date for TFS 2015

$
0
0
When will TFS 2015 RTM be available?

VS Project build fails on TSQL Code in script.

$
0
0

Hi there,

I have the following issue on which I've done some research, but nothing helps.

The database project I am working on compiles everything but one script. The scripts folder has 3 scripts, a controller that calls the remainder two.

One of these scripts fail on SQL syntax which is weird because they seem to be okay and SSMS would not complain. Having experimented a little I found that any SQL statement fails on syntax, there must be a configuration issue here.

What I have tried so far:

-add the script as a stored procedure and reference it within the script, so that the script will have one line only (EXEC usp_BuildTestData - it is needless to say that the stored procedure compiles well...)

-create a new script file (without build) from within VS.

-check if the script file BuildAction property is set to None

-load the script file and switch off the SQLCMD mode in t-SQL Editor Execution settings.

Build still fails with SQL72007: The syntax check failed 'Incorrect syntax near EXEC' in the batch near 'EXEC usp_BuildTestData '.

I thought this was a common error or at least something I could easily find a solution for.

Unfortunately VS is somewhat new to me.

Any ideas are appreciated.

Versions:

Visual Studio Pro 2012 (Version 11.0.50727.1 RTMREL) (.Net FW: 4.5.50709)

Target database version: SQL 2008R2 (this is set in the project's target platform setting)


Visual Basic XML Literals Embedded Expressions - Can I do simple math?

$
0
0

Hello all.  I'm getting stumped by what I hope is a simple problem.  I'm trying to embed a simple formula incrementing a variable to act as a "line number" for an XML document.  Writingliteral XML in visual basic.  Here's what the code looks like:

<%= From d In orderData
                                           Select <ItemOut quantity=<%= d.OrderQuantity %> lineNumber=<%= i %>><ItemID><SupplierPartID><%= d.VendorPartNo %></SupplierPartID></ItemID><ItemDetail><UnitPrice><Money currency="USD"><%= d.PricePerPackage %></Money></UnitPrice><Description xml:lang="en"><%= d.Description %></Description><UnitOfMeasure><%= d.OrderUOM %></UnitOfMeasure></ItemDetail><%= i = i + 1 %></ItemOut>
                                           %>

I was expecting each iteration of d in OrderData to tick i + 1, however, it is simply returning "false".  See the output XML here:

<ItemOut quantity="1" lineNumber="1"><ItemID><SupplierPartID>99999</SupplierPartID></ItemID><ItemDetail><UnitPrice><Money currency="USD">0.00</Money></UnitPrice><Description xml:lang="en">Tub and Tile Caulk Biscuit</Description><UnitOfMeasure>cs</UnitOfMeasure></ItemDetail>false</ItemOut><ItemOut quantity="1" lineNumber="1"><ItemID><SupplierPartID>999999</SupplierPartID></ItemID><ItemDetail><UnitPrice><Money currency="USD">0.00</Money></UnitPrice><Description xml:lang="en">Tub and Tile Caulk Almond</Description><UnitOfMeasure>cs</UnitOfMeasure></ItemDetail>false</ItemOut>

BUILDING OF BIOS WITH VISUAL STUDIO

$
0
0

Hi

I have one doubt "which is the version and edition of visual studio that support that can be used as IDE for  BIOS development.

Thanks in advance. 

VS 2010 crashes out of memory

$
0
0

VS intermittently crashes with an out of memory exception.  My computer has ample memory and there is no reason for this.

I always lose work when it happens.

I am using Visual Studio 2010 Professional (10.0.40219.1 SP1Rel)

I have read the following posts and many others.  I don't expect any resolution.  I won't bother to create a report at Connect because I have wasted too much time on this already, and I have to go try to recover my lost work.  I just wanted report my experience.

https://social.msdn.microsoft.com/Forums/en-US/2cfaf28f-80af-49ee-8408-07b4a8e0e964/visual-studio-2010-randomly-crashing?forum=vswpfdesigner
https://connect.microsoft.com/VisualStudio/feedback/details/624958/crashes-crashes-and-more-crashes

https://connect.microsoft.com/VisualStudio/feedback/details/578148/vsttexecution-errors-in-event-log-could-not-load-file-or-assembly-microsoft-visualstudio-qualitytools-codeduitestpackage


See info from Event Viewer below.

Similar connect report (one of several):

https://connect.microsoft.com/VisualStudio/feedback/details/586949/out-of-memory-exception
https://connect.microsoft.com/VisualStudio/feedback/details/617056/visual-studio-2010-crash-system-outofmemoryexception




 

 

EventType clr20r3, P1 devenv.exe, P2 10.0.40219.1, P3 4d5f2a73, P4 presentationcore, P5 4.0.0.0, P6 51eea8f5, P7 109c, P8 be, P9 system.outofmemoryexception, P10 NIL.
The description for Event ID ( 0 ) in Source ( VSTTExecution ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: (devenv.exe, PID 19532, Thread 1) TuipPackage.InitializeTestProjectPlugins: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.VisualStudio.QualityTools.CodedUITestPackage, PublicKeyToken=b03f5f7f11d50a3a'
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMarkHandle stackMark, Boolean loadTypeFromPartialName, ObjectHandleOnStack type)
   at System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName)
   at System.RuntimeType.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark)
   at System.Type.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase)
   at Microsoft.VisualStudio.TestTools.Tips.TuipPackage.TuipPackage.InitializeTestProjectPlugins()

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].






bill


Viewing all 21115 articles
Browse latest View live


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