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

Can "clean" be configured to remove certain files from different directories?

$
0
0
I am currently working on a project that on build, creates other files necessary for the project to run. Is there a way to configure the "clean" option under "Build" in Visual Studio 2012 to remove multiple files from multiple directories? Either by name or by file extension would be great. 

ASP.NET(Ajax) PageMethod with javascript- returns whole page as a response

$
0
0

My Code

                        

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script  type="text/javascript">
        function bindDdl() {
            try {
                //var ddl = document.getElementById('ddl1');
                var x = PageMethods.Get_Data(onsuccess, onfail);
            }
            catch (e) {
                alert("Error1"& e);
            }
        }

            function onsuccess(result) {
                try {
                    alert("sUCCESS- "& result);
                }
                catch (e) {
                    alert(e);
                }
            }
            function onfail(result) {
                try {
                    alert("eRRORfail - " & result);

                }
                catch (e) {
                    alert(e);
                }
            }

    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"></asp:ScriptManager>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>

              

 protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TextBox1.Attributes.Add("onblur", "javascript:bindDdl()");

            }
        }

        [System.Web.Services.WebMethod]
        [System.Web.Script.Services.ScriptMethod]
        public static string Get_Data()
        {
            string result = "Welcome";
            return result;
        }


Problem with login to Developer Account using Visual Studio 2015

$
0
0

Hello,

 

When I try to create apps package for Universal  Windows Store app using my developer account, I get the message "There's a temporary problem with the service. Please try again. If you continue to get this message, try again later."  (Visual Studio 2015 )


Webbrowser Control

$
0
0

Hi,

I have requirement of creating application that can access the ip camera's on another location. Client application has configured with the local ip addresses of the ipcam. Client application should send request through WCF routing services to access the cameras
So in the client I need a WebBrowser control which we can separate request, So i can send it through the WCF routing service and when it return the response I would be able to bind it with the WebBrowser Control.

Can we modify the the existing control do this ?

project unavailable

$
0
0

I just installed VS yesterday and when I open my old project that I created yesterday, the project exploerer said it is unavailable and when I reload it, it says reload fail. Anyone knows what's going on?

I ran VS as administrator, doesn't work. Deleted .SUO file, does't work. Ran the tool thing under start menu and also doesn't work. Any help will be appreciated, thanks. 

Installing Problem

$
0
0

hi, 

whenever i try to install python in VS 2015 Community 

i get this error :

Invalid entries passed to /FilterFeatureSelectionTree

my log life :

[32C8:3AE0][2015-12-18T14:26:14]e000: MUX:  Invalid lineup Id encountered for /Filterfeatureselectiontree switch: PythonToolsForVisualStudioV1.

in the support page it says that i should download a flie called "feed.xml' i downloaded it already but i don't know where i have to put it.

Thanks in advance 

Visual Studio 2015 Update 1 Crash after compiling

$
0
0


<Project name> has triggered a breakpoint.

Get this error after compiling sample Windows 10 Universal project, but if I press continue, app will be opened.

Share a program

$
0
0

Hello every one

I just made a program by vb.net (Visual Studio IDE)

and it's good and useful

and I want to share it with every body for free

How can I do that


Application Error

$
0
0

The application was unable to start correctly (0xc000007b) error.

i tried reinstalling vs2012 express.

and copying all those dll files still it is not working.

please help.

Visual Studio FTP Log On Screen Locks up in Windows 10

$
0
0

I am using Microsoft Visual Studio Express 2015 for Web and have just upgraded to Windows 10. Since the upgrade, VS locks up  on the "FTP Log On" screen every time I use "Copy Web Site..." (See screenshot below). It seems like many developers are having the same issue, but I am unaware of a solution to the problem. This is a major issue since users can no longer synchronize their remote and local files. Does anyone know of a permanent solution? 


Go Gators!

Cross Platform Mobile C++ Development

$
0
0
I have an ios/andriod app that uses a shared c++ library. This builds and runs successfully on both android/ios simulators (very cool!!!). The ios app property pages don't provide a way to add additional include paths so I am manually editing vcreference.xcconfig to add HEADER_SEARCH_PATHS. Unfortunately this gets replaced on each rebuild so I'm constantly needing to reedit with my change. Is there a way to skip GenerateXCConfig or get it to add my HEADER_SEARCH_PATHS?

shared folder VSRemoteControl

$
0
0
Since I applied Update 1 to Visual Studio Enterprise 2015, I find a new shared folder called VSRemoteControl. For what purpose is it created? How do I remove it permanently?

Windows Store App

$
0
0
System.Security.SecurityException
Designer could not be started because of a permissions issue on the drive to which it is installed. Please check the permissions of the folder before trying to start the designer.

Visual Studio 2015 Installer Projects extension: Using a registry value as the DefaultLocation

$
0
0

I am trying to use the Search Registry to retrieve the current location of an installation and although the registry has the correct fully qualified directory, when I try to use it as the DefaultLocation, it only shows the drive letter.

This is what I have in the Launch Conditions Search Target Machine
GetCurrentFolder
Property: CURRENT_PATH
RegKey: SOFTWARE\[Manufacturer]\[ProductName]
Root: vsdrrHKLM
Value: Path

This what I used to create the registry entry in the Registry Editor
HKEY_CURRENT_USER
- Software
-- [Manufacturer]
--- [ProductName]
--- Path: Value = [TARGETDIR]

This what I have in the File System Editor for the Application Folder
DefaultLocation: [CURRENT_PATH]

When I run the Installer, it displays E:\ in the Select Installation Folder dialogue. The value of Path in HKEY_CURRENT_USER\SOFTWARE\Surazal\NWVault Metadata Viewer is E:\Program Files (x86)\Surazal\NWVault Metadata Viewer\

Can anyone tell me what I am doing wrong and how I can correct it?

Also, assuming I get this working, how can I deal with a first time installation when the registry entry has not been defined?

Many thanks for any help.

The 'ResourceManagerToolbarPackage' package did not load correctly

$
0
0

I had some issues with VS2015, and eventually I had to uninstall and reinstall VS2015. 

First, I got the following error whenever I opened a project:

The 'ResourceManagerPackage' package did not load correctly


The log file has the following:

Could not load file or assembly 'Microsoft.VisualStudio.Azure.ResourceManager.Contracts.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

After deleting the VS profile following the answer on SO, I am getting the following error now:

    The 'ResourceManagerToolbarPackage' package did not load correctly

The log file has the following:

<entry><record>555</record><time>2015/12/15 13:24:50.634</time><type>Information</type><source>VisualStudio</source><description>Begin package load [ResourceManagerToolbarPackage]</description><guid>{BB19C991-E685-4B45-AADD-2690DB723FCA}</guid></entry><entry><record>556</record><time>2015/12/15 13:24:50.642</time><type>Error</type><source>VisualStudio</source><description>SetSite failed for package [ResourceManagerToolbarPackage][Could not load file or assembly &apos;Microsoft.VisualStudio.Azure.ResourceManager.Contracts.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&apos; or one of its dependencies. The system cannot find the file specified.]:{   at Microsoft.VisualStudio.Azure.ResourceManager.DeployToolbarPackage.DeployToolbarManager..ctor(OleMenuCommandService menuCommandService, IVsUIShell uiShell, IComponentModel componentModel, IVsMonitorSelection monitorSelection, DTE dte, IVsSolution vsSolution)&#x000D;&#x000A;   at Microsoft.VisualStudio.Azure.ResourceManager.DeployToolbarPackage.ResourceManagerToolbarPackage.Initialize()&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description><guid>{BB19C991-E685-4B45-AADD-2690DB723FCA}</guid><hr>80070002</hr><errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Azure.ResourceManager.Contracts.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo></entry><entry><record>557</record><time>2015/12/15 13:24:50.645</time><type>Error</type><source>VisualStudio</source><description>End package load [ResourceManagerToolbarPackage]</description><guid>{BB19C991-E685-4B45-AADD-2690DB723FCA}</guid><hr>80070002</hr><errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Azure.ResourceManager.Contracts.1.0, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo></entry>

Could anyone offer a tip on how to resolve this?


Hong


VS 2015: Prevent IDE internet access

$
0
0

The IDE has allowed access to the MSFT symbol server. However, it also accesses some other servers right after startup. Why? No project is loaded, the option "Automatically check for updates" is disabled, and I'm not logged into my VS account, so there is no reason to access anything.

Which option must I disable to stop this unrequested behavior?

Some servers accessed are Akamai servers, but also...

93.184.221.200 edgecast.com
108.162.232.198 cloudflare.com
191.232.139.254 eu.vortex.microsoft.com

If I put trust in something by installing it, I expect not to misuse it by not giving the explicit clarity of what it is doing and why.


Armin

Referencing other projects' DLLs

$
0
0

I have three projects that are in their own solutions. These projects also have their own developers and their own repositories on VSTS -- aka VSO. They are:

  1. ASP.NET MVC Project
  2. BusinessLogic Project
  3. Infrastructure Project

We do want to keep these projects separate so that each team can work on their own project independently. It's also very important for us to make sure that each team has access rights only to what they need AND nothing else. So we don't want the Infrastructure team accessing the ASP.NET MVC project and vice versa.

The ASP.NET MVC project needs to reference the DLLs from the BusinessLogic and Infrastructure projects. It's easy enough to reference the DLLs through the "References" and browse to the DLLs.

My question is how can we make sure that when the BusinessLogic or Infrastructure teams update their projects, we "automatically" get the updated DLLs into the ASP.NET MVC project. How can we set this up?


Thanks, Sam



Backwards compatibility ...

$
0
0

I am downloading VS Community 2015 ... once it is installed can I safely uninstall VS2010 and be able to access / update my applications that I have previously written in VS2010 ?

TIA :-)

Executable generated from Visual Studio Community vs Professional

$
0
0

Forgive me if this was asked somewhere else, but is there any difference between the final executable generated by VS 2015 Community and VS 2015 Professional (or enterprise)?  I work in games so I care most about the optimizer.  It's looking like the only reason to use Professional is if I want the extra bells & whistles or if I have enough people working with me that the license requires it.  Is that true?

-Rez

Unable to start VS Emulator for Android in an Xamarin Forms app

$
0
0

I have created a Xamarin Forms app. It deploys to Windows Phone emulators without any issue. But unable to deploy to Android Emulators. The output is as follows:

1>------ Build started: Project: TestIcons_VS15, Configuration: Debug Any CPU ------

1>  TestIcons_VS15 -> C:\Users\shanti_dev\Dropbox\XPAs\Samples\TestIcons_VS15\TestIcons_VS15\TestIcons_VS15\bin\Debug\TestIcons_VS15.dll

2>Starting emulator: VS Emulator 5.5" Lollipop (5.1.1) XXHDPI Phone

2>Validating emulator arguments...

2>Determining if emulator is already running...

2>Preparing virtual machine...

2>Emulator start error: VS Emulator 5.5" Lollipop (5.1.1) XXHDPI Phone

========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Many times when I run the app, it keeps 'Preparing virtual machine' for ages. It wouldn't complete and I have to abort the deployment. I did the following:

I did uninstall the Android emulators and reinstalled them.

I did remove and added back the Hyper-V in Programs and features.

First I tried with the "5 inch KitKat(4.4) XXHDPI Phone" which was available immediately after installing the emulators. Then I downloaded the profile for the "5.5 inch Lollypop (5.1.1) XXHDPI Phone". But the results are the same. As such when I installed the later profile the install got stuck at creating virtual image. See the inserted image.

What am I missing?


ThanQ...

Viewing all 21115 articles
Browse latest View live


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