Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all 3509 articles
Browse latest View live

Rollback to earlier versions of VS project while developing locally

$
0
0

In the process of building an asp.net mvc core rc1 with sql databases, c#, bootstrap, angular, css, javascript, javascript dependencies, package managers like bower, or any visual studio project for that matter, I sometimes break the application and would like to roll it back to a previous state when the application was working. 

What are some ways/the best way to create incremental versions, save and flag working versions, and rollback to earlier versions especially when a project has so many moving parts, technologies, and dependencies? 

I would prefer the most standard/popular Microsoft or open source technique or tool that may be free or integrated into Visual Studio.

I also would like the option to do the backups on my local machine rather than on an external server.

Thanks!


Missing ASP.NET web application for visual C#

$
0
0

Hi i have installed windows visual studio 2015 community version but am unable to follow along with my code school curriculum because there is no ASP.NET web application template option from new project. .net framework 4.6 is selected and I am currently running windows 8 because I am unable to upgrade at this time due to hardware issues on my laptop. Please help i am unable to find a solution on stack overflow or other support sites for this problem!

VS studio about/info:

Microsoft Visual Studio Community 2015
Version 14.0.24720.00 Update 1
Microsoft .NET Framework
Version 4.6.01055

Installed Version: Community

Visual Basic 2015   00322-20000-00000-AA718
Microsoft Visual Basic 2015

Visual C# 2015   00322-20000-00000-AA718
Microsoft Visual C# 2015

Visual C++ 2015   00322-20000-00000-AA718
Microsoft Visual C++ 2015

Application Insights Tools for Visual Studio Package   4.2.60128.3
Application Insights Tools for Visual Studio

ASP.NET Web Frameworks and Tools 2012.2   4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.40204.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.5
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Microsoft Azure Mobile Services Tools   1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager   3.3.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

TypeScript   1.7.6.0
TypeScript for Microsoft Visual Studio

Visual Studio Tools for Apache Cordova   Update 6
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   14.0.24720.00
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Website publish failing due to file path being too long

$
0
0
<div class="body">

I am trying to publish a Website project from a vendor that has ridiculously long paths to some of its files. When publishing, the error is:

    The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

When I publish, Visual Studio 2012 Update 3 is attempting to write to a temp directory, and the prefix is quite long:

     C:\Users\cuser\AppData\Local\Temp\WebSitePublish\MidasCMS400v9-1580334405\obj\Debug\Package\PackageTmp\

I thought I might be able to redirect VS to a different temporary directory at `c:\tem` by following this SO answer: http://stackoverflow.com/questions/16526022/temp-path-too-long-when-publishing-a-web-site-project

I create my publication profile, and as soon as I open it, there is an error indicating that `WebPublishMethod` is not an element of `PropertyGroup`. Regardless, I updated the file so it looks like this:

    <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
      <PropertyGroup>
        <WebPublishMethod>FileSystem</WebPublishMethod>
        <LastUsedBuildConfiguration>Debug</LastUsedBuildConfiguration>
        <LastUsedPlatform>Any CPU</LastUsedPlatform>
        <SiteUrlToLaunchAfterPublish />
        <ExcludeApp_Data>False</ExcludeApp_Data>
        <publishUrl>C:\Sites\MidasPublish</publishUrl>
        <DeleteExistingFiles>False</DeleteExistingFiles>
        <AspnetCompileMergeIntermediateOutputPath>c:\tem\</AspnetCompileMergeIntermediateOutputPath>
      </PropertyGroup>
    </Project>

When I try to publish, I get the a modal box pop-up entitled "File Modification Detected", with the message "The project YourWebsite has been modified outside the environment", and it asks me if I want to reload. In my error list, I continue to get the error about the path being too long, as it is not attempting to use the `c:\tem` directory I identified.

I need to put this bloody thing onto a server, I am up for any solution that allows me to publish it. I don't know much about the Website project template, so please let me know if there is a better way.

Thanks!

</div>

How do I turn off feature testing in the Test Explorer window

$
0
0

I run Unit Tests categorized by Class in the TEST Explorer window.
Others on my team have written Feature Tests or automated integration Tests.

In Visual Studio 2013 the integration tests did not show up for me in the Test Explorer window which is fine with me because I am not involved in that.
I just want to be able to run my integration tests quickly.
But the feature tests take a long time.

Now in VS 2015, the feature tests are showing up for me.
Is there a setting to have these not show up in the Test Explorer window?  And basically not be discovered?

Also, if I go to Tools -> Options, I expect to see a "Test Tools" option.  But its not there.

How to Eliminate render-blocking JavaScript and CSS in above-the-fold content from asp:ScriptManager

$
0
0

Here is my code

<asp:ScriptManager ID="ScriptManager1" runat="server"
                   LoadScriptsBeforeUI="false"
                   EnablePartialRendering="false" EnableCdn="true"></asp:ScriptManager>

I don't understand what I am doing wrong.

Or is there any possible to add async attribute?

Any Idea?

How to implement agile scrum with VS2013 community edition

$
0
0

just tell me is it possible to implement agile scrum with VS2013 community edition ? if yes from where i can get detail guidance. if not possible then what MS tool exist......is it TFS ?

any MS free tool exist which will be integrated in VS IDE to maintain agile scrum (sprint / backlog / progress etc) please guide me. thanks

VS 2015 Changing URL Extensions

$
0
0

I am using VS 2015 and creating websites with a VB backend. The site is to replace one that I created in VS 2012 that is in production and works fine.

Upon deploying it to an Apache/IIS hybrid hosting site, the URL extensions are removed when calling the pages. Due to the call going to an Apache server, the Apache server recognizes the .aspx extension for the page it is looking for, and passes it along to the IIS server (which is setup to handle ASP.NET).

Something in VS 2015 is rewriting the URL so that it is only passing Default instead of Default.aspx along so I get error 404 (Page not Found).

The hosting site says that it is not their servers that is truncating the page request, yet rather something in the code that I am publishing. I know that the standard is to remove the URL extension, but in this case I want to keep them so that the page request works correctly with this hybrid server setup my hosting site has.

I cannot find what the code is in the VS 2015 project that is calling the rewrite. Does anyone know where I might find this code so that I can remove it?

Convert txt data to xls data with saving in C:// path etc.

$
0
0

Hello there, my english is bad, but i try to explain some points.

point #1

i have an idea to create a simple application, which will be converting some *txt files into *xls file

point #2

in *txt file some data's are wrong, it need to correct or delete, for example, if temperature in January couldn't be +2, then it is wrong/

point #3

then after converting into xls, it need to save in c://

with best regards,

Andrew S.


Separating Web Applications into multiple projects

$
0
0

   Hi,

<div class="comment-right-col"> <div>

I have a web application that is becoming rather large. I want to separate it into smaller more logical projects,

Solution1:

   Mainproject

      index.aspx

      login.aspx

      Menu.Master

 ChildProject

      ListProduct.aspx

In the Master page  (menu), when I click in a bouton , i need to dispaly the content of the page  ListProduct.aspx (ChildProject)

But when i use Server.transfer("ChildProject/ListProduct.aspx") , I have a error message like "Server.Transfer throws Error executing child request"

But when i use Response.Redirect("ChildProject/ListProduct.aspx",false) ,I am losing Session variables after Response.Redirect(url,false)

any Ideas please??

</div> </div>

How do I implement an HTTP server or Web service in my VB ASP.Net App to receive SMS-MO messages via http API

$
0
0

Hi.

The above header refers.

I have a functioning VB Asp.net App that is Live @ http://www.234Aproko.com.

I have just subscribed to a short code and the provider needs to be sending SMS-MO Messages (periodically and as they occur) to me through my Asp.net App.

Now, I am able to send replies back to their server through the Web Client's downloadstring command.

The Issue I am having now is:

1. Which URL do they send their HTTP get requests to (this is their format: <base_url>?from=originator&to=shortcode/longcode&text=msgdata 
Other?

2. How do I listen (and how often) to be able to detect and receive such sent (SMS-MO) Messages, so I can I do what is required of my app?

If I didn't ask the right question, please pardon me.

Thanks.

TypeSript auto compile doesn't work when open folder as website.

$
0
0

Hi

When I  go Open->Website and link to folder with .ts files and start editing them compiler doesn't recompile files on save. I did try check / un-check Compile on save in Options but any way it doesn't work. I remember in VS 2013 it did work not in 2015

../_images/typescript-options.png

It catting me from opportunity to join team project.  

MS VS 2015 txt editor issue

$
0
0

Q: How can I turn of the light gray SQUARE BOX that shows up when I select a line to write code...too much highlighting ??

Visual Studio Web Application Loads a Blank Page

$
0
0

I have a web application that runs perfectly fine, when I start Visual Studio as an administrator.  If I start the application normally and try to load the project the web page is blank with no generated HTML and the output window shows several critical DLLs as unloaded.  (See the log below).  I am using Visual Studio 2013 with the latest update.  I am using IIS Express for debugging mode.  I have disabled Browser Link.  My application is using impersonation with a general domain application account (i.e. MyDomain\MyUser).  This user has been added to the Administrators and IIS_IUSRS groups (the machine has been rebooted since).  When I disable impersonation the application appears to run fine.  This points me to an access issue for the impersonating user.  Any ideas what I need to do in order for the application user to run the application on my local machine?

'iisexpress.exe' (CLR v2.0.50727: DefaultDomain): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: DefaultDomain): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: DefaultDomain): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: Domain 2): Loaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Loaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: DefaultDomain): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: DefaultDomain): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.

'iexplore.exe' (Script): Loaded 'Script Code (Windows Internet Explorer)'.

'iisexpress.exe' (CLR v2.0.50727: Domain 2): Unloaded 'C:\WINDOWS\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll'

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Unloaded 'C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll'

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Unloaded 'C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll'

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Unloaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Unloaded 'C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll'

'iisexpress.exe' (CLR v2.0.50727: /LM/W3SVC/11/ROOT-1-131060669501742709): Unloaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.JScript\8.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'

WebSite Project all references are missing, could not add reference

$
0
0

I have created a website project in Visual Studio 2013, it was working fine until yesterday. But today all assembly references are missing.

Getting the message Type or namespace does not exist

When try to add the missing reference assembly getting the error message, the web site is already referencing the assembly.

This is quite annoying.

Any help would be appreciated.

Thanks

VS2015 and SSDT report preview - no endpoint listening at net.pipe://localhost/PreviewProcessingServce7324/ReportProcessing

$
0
0

This used to work but now I am getting the error:

There was no endpoint listening at net.pipe://localhost/PreviewProcessingServce7324/ReportProcessing
that could accept the message. This is often caused by an incorrect address or
SOAP action. See InnerException, if present, for more details.

I have searched the web and checked things like the net.pipe listener adapter services is installed and running.

I found one post on this site that suggested running VS as Administrator - this actually worked - so a workaround but I would like to get to the root of the actual issue.

I have another Windows 10 machine with the CTP release of VS2015 and this works fine.

I am currently running VS2015 update 2 with the latest SSDT

Microsoft Visual Studio Community 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Community

Microsoft Visual Studio Tools for Applications 2015 00322-20000-00000-AA197
Microsoft Visual Studio Tools for Applications 2015

Visual Basic 2015 00322-20000-00000-AA197
Microsoft Visual Basic 2015

Visual C# 2015 00322-20000-00000-AA197
Microsoft Visual C# 2015

Visual C++ 2015 00322-20000-00000-AA197
Microsoft Visual C++ 2015

Visual F# 2015 00322-20000-00000-AA197
Microsoft Visual F# 2015

Windows Phone SDK 8.0 - ENU 00322-20000-00000-AA197
Windows Phone SDK 8.0 - ENU

.NET Reflector Visual Studio Extension 9.0.1.374
Integrates .NET Reflector into Visual Studio to allow you to seamlessly debug into third-party code and assemblies, even if you don't have the source code for them.

Visit www.reflector.net for more information.

Copyright (c) 2009-2012 Red Gate Software Inc.

AnkhSVN - Subversion Support for Visual Studio 2.6.12735.14
AnkhSVN - Subversion Support for Visual Studio 2.6.12735.14
* Ankh.Package 2.6.12735.14
* Subversion 1.9.2 via SharpSvn 1.9002.3777.76

SharpSvn is linked to: Apr 1.5.1, Apr-util 1.5.4, Cyrus Sasl 2.1.26, eXpat 2.1.0, LibSSH2 1.6.0, OpenSSL 1.0.2d 9 Jul 2015, Serf 1.3.8, SQLite 3.8.11.1, Subversion 1.9.2-SharpSvn, Utf8proc 1.1.5, ZLib 1.2.8
SharpSvn is optionally linked to: Berkeley DB 4.4.20, SharpPlink 0.65.0(SharpSvn)

Application Insights Tools for Visual Studio Package 5.2.60328.3
Application Insights Tools for Visual Studio

ASP.NET and Web Tools 2015 (RC1 Update 1) 14.1.20203.0
ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/

Azure App Service Tools v2.7.1 14.0.11112.0
Azure App Service Tools v2.7.1

Common Azure Tools 1.7
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Devart Code Compare 4.1.78
Devart Code Compare
Copyright (c) 2012-2015 Devart. All rights reserved.
http://www.devart.com/codecompare/

GitHub.VisualStudio 1.0
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Language Service 2.0
JavaScript Language Service

JavaScript Project System 2.0
JavaScript Project System

JustDecompile Tools 1.0
Makes JustDecompile functionality available in VIsual Studio. Requires JustDecompile installation.

Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools

NuGet Package Manager 3.4.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

Python Tools for Visual Studio 2.2.40315.00
Python Tools for Visual Studio provides IntelliSense, projects, templates, Interactive windows, and other support for Python developers.

Python Tools for Visual Studio - Django Integration 2.2.40315.00
Provides templates and integration for the Django web framework.

Python Tools for Visual Studio - Profiling Support 2.2.40315.00
Profiling support for Python projects.

SQL Server Analysis Services 13.0.1400.361
Microsoft SQL Server Analysis Services Designer
Version 13.0.1400.361

SQL Server Data Tools 14.0.60413.0
Microsoft SQL Server Data Tools

SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
Version 13.0.1400.361

SQL Server Reporting Services 13.0.1400.361
Microsoft SQL Server Reporting Services Designers
Version 13.0.1400.361

TypeScript 1.8.30.0
TypeScript tools for Visual Studio

Visual Studio Tools for Universal Windows Apps 14.0.24720.00

Any pointers to what the root cause of this issue is?


Is it neccessary to install all previous versions of VS, SQL Server management

$
0
0

Hi all,

Currently I have VS 10, VS 13 & VS 15 and SQL Server 2008 R2 and SQL Server 2014 with management studios installed on my system.

I am thinking to update my system from 32 bit to 64 bit, for this I will need to clean install the OS.

So I want to know that is it really necessary to install previous versions of VS and SQL Server or only latest versions would be sufficient?

Thanks,
Sophia

My Bower package manager looks awful in VS2015

$
0
0

Why does my Bower Package Manager look illegible but Nuget package manager looks fine. How do I fix this?

Here they are side by side on the same project as two tabbed forms. http://imgur.com/TRZG1Op

Visual Studio info:

Microsoft Visual Studio Professional 2015
Version 14.0.25123.00 Update 2
Microsoft .NET Framework
Version 4.6.01038

Installed Version: Professional

ASP.NET and Web Tools 2015 (RC1 Update 1) 14.1.20203.0

ASP.NET and Web Tools 2015 (RC1 Update 1)

ASP.NET Web Frameworks and Tools 2012.2 4.1.41102.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/

NuGet Package Manager 3.4.2

NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

VS2015 Restore package error. Can't add nuget package to a project.

$
0
0

Here is what happened when add one, for example Microsoft.AspNet.Mvc  


And when i try to get older package. It seems installed  but it incompatible



Nuget package i am already reinstall,
 

How to fix this problem?? 

Can I use VS Community 2015 to edit and publish classic ASP?

$
0
0

I maintain several websites that use "modern" web standards (e.g., HTML5, jquery, css, etc), except they include classic ASP for some server-side scripting (i.e., they are *.asp files). I'm wondering if I can use Community 2015 to edit and publish these sites.

I ask, because I am looking for a better editor. I currently use Expression Web which is no longer supported. I've tried Dreamweaver, Coffeecup, Brackets and UltraEdit, but none of those editors are as good as Visual Studio's.

I don't need or want .NET, the MVC model, C#, web forms, WCF, Azure, etc. I simply want to edit the *.asp, *.js, *.css files using VS's superb editor and upload them (via an IDE and ftp) to a hosted server. 

In VS 2015, I've tried File | New | Project, File | New | Web Site, and File | New | Project From Existing Code, but those options all appear to add additional Microsoft technologies. I want my source files to remain independent of these technologies.

Thanks!

Visual Studio 2015, Beginner questions...

$
0
0

I created a form, and when I start running the program, what can I do so the form cannot be modified in size when is running the program?

And also I created a form1, with a click a form2 Show and Hide at 2.5 seconds;
if I create a form3, how can I make the form2 Show and Hide... 
I used the same code in form3 as in the form1 but when I use the form3 the form2 Shows it doesn't Hide...

I don't know if my question are understable, if not... please tell me, and thanks for taking the time for reading this.

P.D I'm sorry if I have grammatical mistakes. 

Viewing all 3509 articles
Browse latest View live


Latest Images

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