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

Where is 'Data' main menu item in VS 2013?

0
0

Up to now, I have been using VS 2010 to maintain an ASP.NET website that makes use of a SQL Server database. I have been used to seeing a main menu item called 'Data' (located between Team and Tools). This offered the option of 'New Query' that gave me access to a query designer interface. However, if I open this website project in VS 2013 there is no main menu item called 'Data', despite an open connection in Server Explorer, and I have failed to find another way to open the query designer.

Some guidance would be appreciated.

David


Visual Studio 2010 does not load current files anymore

0
0

I have been using Visual Studio 2010 Express for quite sometime now. After closing with files opened (and saved) it would always remember the files and reload them upon a new startup. But today that doesn't happen anymore.

I can't find an option that may need to be turned on again.

Does anyone know where that option is?

VS 2013 Update 3

0
0

Hello,

I installed VS2013Update 3 and now I get errors when opening an solution:

The 'Microsoft.VisualStudio.Web.Publish.WebPublishPackage,MircosoftVisualStudio.Web.Publish' package did not load correctly. 

And

The 'ScaffoldungVSPackage' package did not load correctly.

In the activitylog are following errors:

<entry>
<record>447</record>
<time>2014/08/05 14:27:31.859</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [Microsoft.VisualStudio.Web.Publish.WebPublishPackage, Microsoft.VisualStudio.Web.Publish]</description>
<guid>{1AD387FC-B1E8-4023-91FE-F22260B661DB}</guid>
<hr>80131522</hr>
<errorinfo>Could not load type 'Microsoft.VisualStudio.Web.Internal.Contracts.Publish.IVsWebJobPublishService' from assembly 'Microsoft.VisualStudio.Web.Internal.Contracts, Version=2.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</errorinfo>
</entry>

<entry>
<record>450</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>
<entry>
<record>451</record>
<time>2014/08/05 14:31:20.199</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [ScaffoldingVsPackage]</description>
<guid>{FAA496BF-FB16-4671-B3D5-E4B388A18478}</guid>
<hr>80131500</hr>
<errorinfo>Cannot cast the underlying exported value of type 'Microsoft.AspNet.Scaffolding.Templating.ScaffoldingAssemblyDirectiveProcessor (ContractName="Microsoft.AspNet.Scaffolding.IServiceRegistrar")' to type 'Microsoft.AspNet.Scaffolding.IServiceRegistrar'.</errorinfo>
</entry>

Has anyone an idea how to resolve this issue? I already tried:

- Reinstalling VS2013

- Reinstalling WindowsAzureSDK V2.4

- Disabling Extensions

Thanks ;)

The namespace name doesnt exist

0
0

The connection class Is static and I am getting this error. Any idea why.

The type or namespace name 'ConnectionClass' does not exist in the namespace 'WebSite2.App_Code' (are you missing an assembly reference?) C:\Users\Me\Documents\Visual Studio 2013\Projects\WebSite2\WebSite2\Pages\Coffee.aspx.cs 21 54 WebSite2

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.Text;

namespace WebSite2.Pages
{
    public partial class Coffee : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        private void FillPage()
        {
            ArrayList coffeeList = WebSite2.App_Code.ConnectionClass.GetCoffeeByType(!IsPostBack ? "%" : DropDownList1.SelectedValue);
            StringBuilder sb = new StringBuilder();

"Unable to start debugging on the web server" VS2013, Win2012, IIS7.5

0
0

I have an ASP.NET mvc that I run on local IIS to debug.  When I click the run button in Visual Studio I get this error

"Unable to start debugging on the web server.  The web server is not configured correctly."

I click OK and then the IDE attaches normally and debugging works fine despite the error message.  How do I get rid of this error message for good?

Note, project is set to wait for request from an external application.

JavaScript runtime error: Operation aborted

0
0

Hi guys,

I have Microsoft Visual Web Developer 2010 Express.

I created a New project

Select ASP.NET MVC 3 web application (C#)

A dialog appears ,In the Dialog "Project template = Select Empty" , "View Engine = Selected Razor" , "tick HTML5 semantic Markup"

Add a controller (HomeController), In Scaffolding option give Empty controller

In the HomeController.cs Replace  public ActionResult Index() with below code.

       public string Index()

       {

           return "DIL Hello from Home";

       }

choose Debug/Start Debugging.

You get error "JavaScript runtime error: Operation aborted"

Can someone help me with this.

Thanks in Advance

Stella

.NET 3.5 MVC 2 WebSite on Visual Studio 2013

0
0

How can I build a WebSite in .NET 3.5 with MVC 2 on Visual Studio 2013?

I tried searching for Visual Studio 2008, but I was unable to download it.

I use Windows 8.1

How to debug "UnobtrusiveValidationMode" error

0
0

WebForms UnobtrusiveValidationMode requires a ScriptResourceMapping for 'jquery'. Please add a ScriptResourceMapping named jquery(case-sensitive).


BootStrapped again

0
0

I am programming a website in Visual Studio 2003 update 3.
My top menu is controlled by bootstrap.css. Strangely enough, my top menu behaves differently in Visual Studio and when run from my web server.

I press F12 and I tracked down the CSS attributes that gives my trouble and they are different when debugging from Visual Studio and when running my website from my web server.

Why and how does my CSS classes change in different  environment?

VS 2012 - How to publish folders ?

0
0

In my ASP.NET project I have folders for css, images, and javascript. 

How do I specify that these folders be included in the Publish?

In the Package/Publish Web setting I selected "Only files needed to run this application", and those folders were NOT included.

Thanks for any ideas

 

Newbie Question

0
0

Can anyone please explain why I cannot declare the two variable hardwareID and docPath in the code below? I'm still learning .

public partial class Controls_WebUserControl : System.Web.UI.UserControl
{
    string hardwareID = Request.QueryString["HardwareID"];
    string docPath = "~/Documents/Hardware/" + hardwareID + "/";

    protected void Page_Load(object sender, EventArgs e)
    {

        if (hardwareID == null) {
            UploadStatusLabel.Text = "You did not specify a HardwareID. Please contact the Administrator.<br />";
        }
        else
        {

            //Create directory if it doesnt already exist
            if (!Directory.Exists(docPath))
            {
                Directory.CreateDirectory(Server.MapPath(docPath));
            }

        }
    }
}

Testing both the Pop-up Window (Pop-up page) and its Calling Window (Main Page)

0
0

I was directed to this forum.  So, I hope this will work:

I am a newbie to VS 2012 and I have an unique situation.

I have a Main Page and a Pop-Up Window that is called from the Main Page.  These two are in total separate projects and directories.  Each has its own Web Config file (not sure if that is relevant).

I need to single step through the Main Page before I call the Pop-Up Window.  When the Main Page does call the Pop-Up Window, I will need to single step throught that as well.

OK, let work through the activities that would happen.

Assumption:

For each project (in this case there will be two), there is an instance of Visual Studio 2012. 

Each instance of VS do not know that the other exists and there is no communication between the instances.

Process:

 In first VS 2012 instance:

Each instance of VS do not know that the other exists and there is no communication between the instances.

Process:

In first VS 2012 instance:

  1.  Open Main Window project using VS 2012.
  2. Modify project to open “Window” project.

In second VS 2012 instance:

  1. Open “Window” project.
  2. Modify project to detect that it is being called as a window and to make adjustments.

Begin debugging:

  1. Return to first VS 2012 and start debugging session by  pressing PF5.
  2. Reach breakpoint just before “window” project is called.
  3. Verify that the Query String is built correctly.

Problem:

While sitting at the break point in first instance of VS 2012, what do I do inside the second instance (or first instance of VS 2012 for that matter) to activate debugging in the “Window” project that is opened in the second instance of VS 2012?  I want to make sure that the Query String was passed correctly and single step through the "Window" project to check that the modifications work properly!

The second major step would be to "finish" executing the "Window" project and "return" back to the debugging session on the Main screen to verify that the data extracted by the "Window" project is returned properly.

 

NuGet package(s) are missing .Enable NuGet Package Restore to download

0
0

Good day hi

I am receiving the following error how do i resolve this error

Error 1 This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=317567. D:\Perforce_Dublind\DICOM\code\dev\Dublind\Dublind.csproj 1384 5 Dublind

Visual Studio 2013 Express for web crushes when opening a new project.

0
0

2 days ago VS started crushing on new project with the following massage:

"Object reference not set to an instance of an object"

When I look at the references folder of the project the is opened it seems that VS has lost connection to all (or many) extensions (that I know) are installed.

I disabled, uninstalled, reinstalled just about every software I could including VS.

Don’t know where to go from here.

Please help

 David Bareket.

Microsoft.SqlServer.Management.Sdk.Sfc not found with Visual Studio 2013 and SQL Server 2014; all with the latest updates.

0
0

In a new Web application i was adding an ADO.NET Entity Data Model and choosing model content as generate from database.The test connection is getting succeeded but after that I am getting the below error.

Could not load file or assembly Microsoft.SqlServer.Management.Sdk.Sfc version 11.0.0" or one of its dependency.The system cannot find the file specified

Searching on Internet i have seen that i’m not alone with this problem.

Could be the combination of Visual Studio 2013 with the very new SQL 2014?


Error JavaScript runtime error: Object doesn't support property or method 'bind'

0
0

After updating to visual studio 2013 update 3, I am getting the following runtime error on every page with a formview.  

Unhandled exception at line 65, column 3427 in http://localhost:53693/9b3609c5e71a4703b362072b60faa99e/browserLink 0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'bind'. 

The debugger points to this line:  

try { this.addExtension("Microsoft.VisualStudio.Web.BrowserLink.HtmlMappingExtensionFactory", (function(n,t){function k(){var b=this,w=function(n,i){var e,r,u,o;if(!i)return null;if(e=f(i),e)return e.selectorData==n?e:null;if(t(i).is(n.selector)){if(r=null,n.parent){for(u=i.parentElement,o=n.selector.split(">").length-1;o>0;o--)u=u.parentElement;s(n.parent,u)&&(r=t(i.parentElement).children(n.selector))}else n.descendant?t(i).find(n.descendant.selectorData.selector).each(function(i,u){if(s(n.descendant,u))return r=t(u).parents(n.selector),!1}):r=t(n.selector);r&&v(n,r)&&(r.each(function(t,i){if(!p(i)){var u=t%n.elements.length,r=n.elements[u];r&&a(i,r)}}),n.isInTemplateLike||d(n))}return f(i)},s=function(n,t){return w(n.selectorData,t)==n},nt=function(n){for(var u,r,t=0;t<i.length;t++)if(u=i[t],u&&(r=w(i[t],n),r))return r;return null},e=function(n){var t=f(n);return t?t:nt(n)},l=function(n,t,i){if(n<r.length){var u=r[n];if(u)return{sourcePath:u,startPosition:t,length:i}}return null},y=function(t,i){t&&(i==null&&(i=!0),n.invoke("selectRange",t.sourcePath,t.startPosition,t.length,i))},tt=function(n,t,i){return n.sourcePath.toLowerCase()!=t.toLowerCase()?!1:n.startPosition>i?!1:i-n.startPosition>n.length?!1:!0},g=function(n,t,i){var r=n.start,f=n.length,o=r+f,e=n.startTag||0,s=r+e,u=t-i;r>=t?u>=o?(r=t,f=0,e=0):u>r?(f=o-u,r=t,e=u>=s?0:s-u):r+=i:s>t?(u>s?e=t-r:e+=i,u>o?f=t-r:f+=i):o>t&&(u>o?f=t-r:f+=i),n.start=r,n.length=f,n.startTag&&(n.startTag=e)},k=function(n,t){for(var f,e,i,r;t.length>=2;)for(f=t.shift(),e=t.shift(),i=0;i<u.length;i++)r=u[i],r.sourceIndex==n&&g(r,f,e)},c=function(t,i){if(t<r.length){var u=r[t];n.invokeAsync("getChangesInFile",u).continueWith(function(n){k(t,n),c(t+1,i)})}else i()};this.getCompleteRange=function(n){var t=e(n);return t?l(t.sourceIndex,t.start,t.length):null},this.getStartTagRange=function(n){var t=e(n);return t&&t.startTag?l(t.sourceIndex,t.start,t.startTag):null},this.selectCompleteRange=function(n){y(b.getCompleteRange(n))},this.selectStartTagRange=function(n){y(b.getStartTagRange(n))},this.canMapToSource=function(n){return e(n)!=null},this.ensureUpToDateAsync=function(n){n&&h.push(n),o||(o=!0,c(0,function(){var t=h,n;for(h=[],o=!1,n=0;n<t.length;n++)try{t[n]()}catch(i){}}))},this.getElementAtPosition=function(n,i){for(var f=null,o=null,r,e=0;e<u.length;e++)r=u[e],r.start<=i&&r.length>=i-r.start&&(f==null||f.length>r.length)&&(f=r);return f&&t(f.selectorData.selector).each(function(n,t){if(s(f,t))return o=t,!1}),o}}var l=!1,r=[],o=!0,h=[],u=[],i=[],f=function(n){return n?n.__browserLink_sourceMapping||null:null},p=function(n){return f(n)!=null},a=function(n,t){n&&(n.__browserLink_sourceMapping=t)},v=function(n,t){return n.isTemplateLike||n.isParentTemplateLike?t.length%n.elements.length==0:t.length==n.elements.length},c=function(n){var r,o,e,t,f,h,u,s;for(i.push(n),r=i.length-1;r<i.length;r++)for(o=i[r],e=0;e<o.elements.length;e++)if(t=o.elements[e],t){for(f=0;f<t.children.length;f++)h=t.children[f],i.push(h);for(u=0;u<t.ancestors.length;u++)s=t.ancestors[u],i.push(s)}},d=function(n){for(var t=0;t<i.length;t++)i[t]==n&&(i[t]=null)},nt=function(n){return t(n)},g=function(n,i){for(var u=t(n),f=i.split(">"),r=0;r<f.length;r++)u=u.children(f[r]);return u},b=function(n,i){return t(n).parents(i)},y=function(n,t){var i=t(n.selector);v(n,i)?(i.each(function(t,i){var o=t%n.elements.length,r=n.elements[o],u,f;r!=null&&(a(i,r),u=r.children,e(u,0,u.length,null,g.bind(null,i)),f=r.ancestors,e(f,0,f.length,null,b.bind(null,i)))}),n.isTemplateLike&&c(n)):c(n)},e=function(n,t,i,r,u){for(var f=t;f<t+i;f++){if(f>=n.length){r&&r();return}y(n[f],u)}t+i<n.length&&setTimeout(function(){e(n,t+i,i,r,u)},5)},w=function(n,t){e(n,0,10,t,nt)},s=function(n){var v=[],l,o,i,a,e,t,f,h,r,c;if(n)for(l=0;l<n.length;l++)for(o=n[l],i={selector:o[0],elements:[],isTemplateLike:!1},v.push(i),a=1;a<o.length;a++){if(e=o[a],t=null,e){for(f=e[0],h=e.length>=2?e[1]:{},t={selectorData:i,sourceIndex:f[0],start:f[1],length:f[2],startTag:f.length>=4?f[3]:null,children:s(h.children),ancestors:s(h.ancestors)},h.templateLike&&o.length==2&&(i.isTemplateLike=!0,i.isInTemplateLike=!0),r=0;r<t.children.length;r++)t.children[r].parent=t,t.children[r].isParentTemplateLike=i.isTemplateLike,t.children[r].isInTemplateLike=i.isInTemplateLike;for(c=0;c<t.ancestors.length;c++)t.ancestors[c].descendant=t;u.push(t)}i.elements.push(t)}return v};return n.addSharedService("sourceMapping",new k),{onConnected:function(){if(!l&&n.initializationData&&n.initializationData.requestId){var i="~/__browserLink/requestData/"+n.initializationData.requestId;n.invokeAsync("resolveUrl",i).continueWith(function(i){i&&t.ajax(i,{dataType:"json",data:{version:2},cache:!0,success:function(t){l=!0;var i=s(t.map);w(i,function(){n.invokeAsync("resolveSourceFilePaths",t.files).continueWith(function(t){r=t,o=!1,n.sourceMapping.ensureUpToDateAsync(null)})})}})})}}}})); } catch(e) { this.log("Invalid extension script encountered for extension 'Microsoft.VisualStudio.Web.BrowserLink.HtmlMappingExtensionFactory'."); return; }

I can ignore the error and the formview appears to work.

Any recommendations for using Visual Studio to create an android app?

0
0

I asked this question in the asp.net forum, and it got deleted. So hopefully this is the right one.

Binging the question as to apps to develop an android app comes up with some add-ins for Visual Studio. I am interested in whether or not anyone has used one or has any opinions of them?

I would like to use Visual Studio for development.  If it won't work, I'll use something else.

Java script debug

0
0

I try to debug java script in a MVC project and I can not. Why the VS2013 can not break breakpoints in separate .js files? Is there any  specific settings? I get this well known message - "The breakpoint will not be currently hit. No symbols has been loaded for this document."

Uploading website project files to remote server? ...

0
0

Recently, I inherited an ASP.NET website that is being maintained using Expression Web 4 (which is no longer supported).  The source code files (*.aspx, *.html, *.css, *.js) are uploaded via FTP within Expression Web to a remote server running IIS.

I was shocked to find out that Visual Studio 2013 website (NOT application) projects are missing two very important features that were present in Expression Web 4, namely:

1. The ability to mark certain files as “Exclude from publishing” – My suggestion is to include this feature in VS for website projects so that we can still have source files in the project but exclude them from being copied (FTP’d)  to a remote server;  typical cases are differences in web.config from test to production servers, etc.   Does anything like this exist in VS?

2. The ability to copy (FTP) only those files that were changed since the last copy to a remote server.  In Expression Web you could (with one click) “Publish all changed files” to the remote server.  Again, does anything like that exists in VS website projects?? (or am I missing something??)

It just does not make sense that thousands of INDIVIDUAL developers like myself who maintain small to medium sized sites must manually keep a list of files we edit throughout the day or week and then copy those files to the remote server (potential for errors abound because a changed file was not pushed to the server!), or waste time pushing ALL of the files back up to the remote server (waste of bandwidth and processing as each page uploaded to the remote server will now be recompiled by IIS and cause a delay on the site).  [end of rant]

I guess I am curious how other developers manage to maintain website projects when using Visual Studio?   Or ... please provide the name of a utility that can accomplish what I have described above !

Thanks in Advance !

Project not selected to build for this solution configuration

0
0

Hello,

All of a sudden, I get this message for my projects when I do Rebuild Solution.  Only the web project rebuilds, which causes problems.  Why does this message pop up and how do I get my projects to build

Project not selected to build for this solution configuration

Thanks.

Viewing all 3509 articles
Browse latest View live




Latest Images