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

Where I can find xaml?

$
0
0
Hello, can you help me?
I want to learn programming with C#, I'm fresh beginner and I apologize for my week english.
I downloaded version of MS Visual Studio called Visual Studio Community. I want make new project (New Project > File > Visual C# > Windows Store > Blank App(XAML)), bacause the book I read told me to do this. But in this version of MS Visual Studio there is no "Windows store" and ""Black App (XAML)". What I should open instead of it? Sorry for my question if it's stupid (I think it is) and thank you for your help and patience.
Grzesiek

Sample Code on MSDN does not compile

$
0
0
I am trying to code a Custom Resource "reader" (may not be the correct term but remember I am newbie).  So, I first looked at this site:

http://www.codeproject.com/Articles/14190/ASP-NET-Custom-SQL-Server-ResourceProvider

Then I discovered another site where this was from Microsoft itself:

https://msdn.microsoft.com/en-us/library/system.web.compilation.resourceproviderfactory%28v=vs.110%29.aspx

So, I copied and pasted the above code into a new class.

I am getting red lines underneath the following references:

IDictionary (all occurances)
GetResourceCache(..)
IDictionaryEnumerator
IEnumerator IEnumerable.GetEnumerator()

Would you be able to try doing this and reply how to fix this or recommend how I could get Microsoft to correct and republish their sample code so that it works?

Thank you!

Why does VCProjectEngineObject::CreateProject throw error 'RegistryRoot must be set before calling GetVCInstallDir'?

$
0
0

Hello,

We are using the VCProjectEngine.dll to dig into visual studio projects to convert them to mak files for cross platform development. We are using version 12 of VCProjectEngine with VS 2013 projects.

The following code produces error message: 'RegistryRoot must be set before calling GetVCInstallDir' in the inner exception.

using Microsoft.VisualStudio.VCProjectEngine;

...

VCProjectEngine test = new VCProjectEngineObject();

VCProject proj = test.CreateProject("xxxj");

Do you know what could be going wrong? The LoadProject function of VCProjectEngine happens to work in the context of running the program from the command line. But we are trying to run it from behind a web service and that produces the error, 'RegistryRoot must be set before calling GetVCInstallDir' as well. Google hasn't come up with much for this error. The full name of the VCProjectEngine dll is 'Microsoft.VisualStudio.VCProjectEngine'.


Adam Bruss

Rookie question - report formatting

$
0
0

I'm trying to modify a report written in Visual Studio. Never used it before - trying to pick up slack for someone recently left.  It seems to have what I would call nested groups.  When I add rows or move stuff down it overwrites the next part.  It's a total nightmare.  Any tips or is this just going to take forever!  The report outputs a multi page form.  Any documentation I can read that I might understand - renderers and tablix are melting my brain.  Unable to paste screen shot.  Any help much appreciated.

Visual Studio Website

$
0
0

HI,

Just a preface, I have limited experience with visual basic, and no experience with Visual Studio at all.

I want to host a website with Visual Studios 2012 from my windows 7 desktop that will take input from the user, do some data manipulation with Excel and another program through visual basic, and then return an Excel file with the processed data to the user. Is this possible to do with Visual Studios?

Thanks

JD

files getting created in different places

$
0
0

I'm new to Visual Studio 2013. I am using the professional version.

I do File -> New -> Website...

and choose something (say, ASP.NET Empty Website, but could be anything) and specify a file location for it.

When I hit OK, it does it's thing and creates the solution. But it creates certain files in one location and certain other files in another location.

Is this happening because of some option setting?

How can I add a Website Project in a solution that should be excluded from source control?

$
0
0

Using VS 2013 update 4

I currently have a solution with a couple of Class Library Projects and Web Application Projects and all of these are bound to a source control (VS Online). Now I added an Existing Website Project in the same solution by choosing a Local IIS instance. However, I don't want this Website Project to be in source control.

I have tried File > Source Control > Advanced > Change Source Control ... and then clicked on the website project and then clicked Unbind. By doing this, it seems that the project was unbound. However, as soon as I close the solution it asks me to save the .sln file and seems that it restored the Scc*** info in the file.

I also tried editing the .sln file and set the SccProjectEnlistmentChoice* = 0 (of the website project, under GlobalSection) and then set the ProjectSection of the WebsiteProject to 

SccProjectName = ""
SccAuxPath = ""
SccLocalPath = ""
SccProvider = ""

instead of "SAK". This actually worked for me but everytime I open the solution, Visual Studio alerts an error saying "Unspecified error". This is the closest I got into solving this.

Is there a proper way of doing this? I think the proper way should be the "Unbind" method but it seems that it's not working as expected.

Let me know of other solutions.

Cheers!

WPF ElementHost Canvas, MouseDown event

$
0
0

Hi,

This is to get the ElementHost MouseDown event to fire, a canvas was manually added as a child to the element host, when its opacity was changed to 95%. Still neither of the events independently set for the element host and the canvas fire. I have not changed the canvas background property yet. I am not sure where to find the proper documentations for such events, nor of how the mouse down event mechanism behavior is, specially in this case that the entire element host container area is covered by the WPF controls, any insight is greatly appreciated.

Best Regards,

AliReza Bemanian, Ph.D.


VS 2013 Skips over my updated code

$
0
0

I am having an issue getting Visual Studio 2013 to execute my latest updates. As I make changes to any of my files and start the debugger, I place a break point where my code has changed and when I step into or over line by line it jumps right over the code as if it doesn't even exist.

The project consists of 2 class libraries and a UI website. I tried to clean and rebuild, delete all temp files in .NET framework folder, unchecked the flag to require source files to exactly match the original version...nothing is working. I created a new branch in TFS to keep my latest updates in tact while I was working in VS 2010. I connect to the new branch in VS 2013 and am trying to start on my next list of enhancements but the debugger is not recongnizing my changes. Everything I had commented out and have now un-commented still gets skipped as if it is still commented. My stored procedure call is still calling the old stored procedure instead of the new one. I can't figure it out.

Any help at all would be greatly appreciated!

Thanks!

Fixpack kb2402064

$
0
0

Hello Team,

How can I get this fixpack, its from 2010?

KB 2402064- An email message attachment name that contains non-ASCII characters and is longer than 41 UTF-8 encoded bytes is encoded two times before transmission in an application that is compiled for the .NET Framework 4

License for Visual Studio Package

$
0
0

Hi there,

I am developing a Extension (package) for Visual Studio 2013 and I wonder how I can add a license mechanism. How can I do that? Any code example?

Thank you!

Cheers,

Mathias


Gruß, Mathias --- MCP

Avoid marking files as modified by Git when there are no changes

$
0
0

Hello,

I am working on a project using Visual Studio 2013 Ultimate and Enterprise Architect 9.0 (a UML tool). I am using Git for Source Control in Visual Studio.

I have set up the programs so that I can synchronize code from Enterprise Architect (EA) to Visual Studio (VS) and vice versa using MDG Link for Visual Studio (an Enterprise Architect add-in). I first synchronized all the existing code from VS to EA.

Now I have the following workflow:

  • Create UML models in EA;
  • Add necessary attributes and operations to the class models;
  • Synchronize models with the code, which will add the added attributes and operations to my source;

The last step will regenerate all my source code files, but even if there are no changes Git marks the files as modified.

How can I avoid this behaviour, because now all my files are modified when Enterprise Architect synchronizes the model with the source code.

I only want Git to mark it as modified when there are actually things added or modified in the file.

Any help will be appreciated.

Marcel

Editor text scrolls too high

$
0
0

I don't care for the way the text editor windows scroll so that last line of text is at the very top of the editor window. It should only scroll so the last line of text is visible.  On small files it would make your outline view look a lot better, for example if you have a single page of text, your outline view only takes up half the screen.  And it seems that if you continue to allow the last line of text to scroll to the very top of the editor window, shouldn't you allow the very first line to scroll to the very bottom of the editor window?

Visual Studio 2015 CTP 6 - Sign In problem

$
0
0

Hi,

I attempted to try VS 2015 Preview (CTP 6). I installed the vm from Azure Gallery. But upon start VS asked me to sign in and I used my MSDN login, but it was rejected. I think that the issue might be that I do not have VS Ultimate but only the Professional. I could not run VS without signing in. It would close.

Is there a Professional version of the VS 2015 CTP available or not? If not, can one take  a look at Ultimate if you do not have that subscription level? 

I am sure that in the past I was able to look at CTP using Ultimate version (they expired after some time but they would not require me to have ultimate subscription). It was for older versions of VS though.

I deleted the vm already so not sure if I would bother again but just wondering if anybody got a similar issue.

Thanks,

KJRB

Using Templates

$
0
0

Hi, i am trying to create a new project. Trought File -> New -> Project.

 So When choosing Web Application a dont have Internet Application Template ou Intranet Application Template as an Option Why is that so?

how to create a text file (VBA 2013)

$
0
0

Hi, 

What I have:

- a form where user can fill in some textboxes, click on a button and add those text to a listbox (several times);

- a button to wrote all the above text in a file (fis.txt);

- can delete the text from the form and write another lines.

What I want:

1- click on a radioButton which give me the possibility to create a new text file and the user to enter the file name (fis2.txt).

Please help me with this issue.

Thank you,

Cristina



How to create a prerequisities with VS2013 and Installshield LE ?

$
0
0

Hello,

I want to create a new installer with an existing application. I use VS2013 with Installshield LE.

I've any problem with the requirments : I would like to do a software requirment with another programm (driver), than I use a registry key inside HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\programToTest

And then I test a value : DisplayVersion

I use "registry entry" choice.

But it isn't working. All time it don't detect this key, present or not present, I have all time my error message.

Thank you for your help.

Best regards,

Can't sign into Visual Studio through a proxy server

$
0
0

Hi,

Edit with

C:\Users\ABC\AppData\Local\Microsoft\VisualStudio\12.0\devenv.exe.config

<defaultProxy useDefaultCredentials="true" enabled="true">
            <proxy usesystemdefault="True" />
</defaultProxy>

or

<defaultProxy useDefaultCredentials="true" enabled="true">
            <proxy proxyaddress="http://my_proxy:8080"/>
 </defaultProxy>

How to turn off this annoyance? Those setting is no use....

Even i added the username and password to Creditial Manager, it is no use.

Eventime, i browse the web, i am required to press enter to the stored creditial.



Data Source Controls Not Appearing

$
0
0
I am building a program for use with a data base. When looking at the data sources window, I change my source from grid view to details. After that I drag it to the form I wish it to be on, however it used to add a toolbar with some controls to add a new entry, remove an entry, or go to the next entry, and now that toolbar with those controls is not showing up when i drag it into my form. what am i doing wrong?

Visual Studio does not refresh file modified outside when using Symlinks

$
0
0

Hello!

I'm using Unity + VSTU + VisualStudio 2012 Pro.

Unity's project contains symlinks, that are created by custom script, and generates VS project that I'm working in.

But whenever opened in VS source code file changed outside VS (updated from version control), studio does not claim to reopen it, and allows me to work with file's local copy. Often happens sad thing: my local changes override incoming ones, data lost occurs. 

Real file path: Project/VersionedWorkingCopy/SomeFolder/RealFile.cs

Project path: Project/GeneratedProjectFolder/SymlinkToSomeFolder/RealFile.cs

"GeneratedProjectFolder" is the working folder for Unity and VS. VS's project generated by Unity, so I can just postprocess generation and add something like this:

<Compile Include="GeneratedProjectFolder\SymlinkToSomeFolder\RealFile.cs" >
        <Link>..\VersionedWorkingCopy\SomeFolder\RealFile.cs</Link>
</Compile>

Actually, this doesn't work, saying 

"The file 'GeneratedProjectFolder\SymlinkToSomeFolder\RealFile.cs' could not be added to the project.  The specified path contains invalid characters, is an absolute path, or is a path outside of the project directory."

Using symlinks is critical for my project.

Thanks!

Viewing all 21115 articles
Browse latest View live


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