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

vs express web. where is release configuration?!

$
0
0

i just installed visual studio express web and i'm studing. in configuration manager i should have preinstalled release and debug  configurations but i have only debug listed.

why no release here?! thanks


MVS 2013 - Install issues

$
0
0

Hi all,

Ok, I started out with a 90 day trial of VS 2012.  At the end of the 90 days we purchased a license for VS 2012. Everything has been working great! ever since then.  So we recently downloaded VS 2013 and Installed it.  On my cubmates computer every thing worked great and his studio now says on the start up screen "Visual Studio 2013 Ultimate".  Mine however, still says "Professional 2012" even though 2013 is installed.  I have uninstalled / reinstalled as well as repair installed several times to no avail. I still cant get it to beleive its now VS 2013.

So when I go in and create a MVC5 Empty project and then click 'add' on the project context menu I see no option for "Add Scaffolding Item" and so I am stuck not being able to create new MVC 5 projects!

HELP PLEASE!  Anyone?!

Web config file is not displaying color scheme

$
0
0

my Web config file is not displaying color scheme, rest of the pages are showing fine shine,

Image is attached here

http://postimg.org/image/mdis7rvkp/5bf17f7a/

Which Visual Studio is best for School App ?

$
0
0

I m going to Make Online Islamic Academy Application For Student ERP Web Portal So PLeasae Suggest me What Visual Studio is best for that ?

PASSING CONTROL VALUES

$
0
0

I have been searching for a method of passing control values between pages.  I am a relatively new user of VS2010/VB.  I have reviewed many proposed solutions and found that maby were either too complicated in the  VB world or outside of it.  The one solution that I found which was appealing has been retired and therefore I cannot direct my question at the author.

Passing controls to other pages.

Below, is the exerpt from Rion Williams elegant solution which has been archived.

_________
*********

Using the QueryString

Another common approach would be to simply pass the values through the code-behind of your first page within the QueryString when performing your Redirect :

//Your values to pass across
string valueA = YourTextBox.Text;
string valueB = YourOtherTextBox.Text;

//Perform your Redirect
Response.Redirect(String.Format("YourTargetPage.aspx?A={0}&B={1}",valueA,valueB));

and then within your page that you are redirecting to, you can access the values from the QueryString as seen below :

//Your values to pass across
string valueA = Request.QueryString["A"]
string valueB = Request.QueryString["B"]

//Use your values accordingly

_________
*********

Following the above solution is my own attempt to implement the sending page and the receiving page.   They both fail and I cannot
I don't knpw why.  Can someone help me?

___________
***********SENDER*********

<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="SENDER.aspx.vb" Inherits="WebApplication2._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </asp:Content>
string valueA = textBox1.txt;
string valueB = TextBox2.txt;
Response.Redirect(String.Format("YourTargetPage.aspx?A={0}&B={1}",valueA,valueB));

___________
***********RECEIVER*********

<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="WebApplication5._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        <br />
    </p>
    <p>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </p>
    <p>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
string valueA = Request.QueryString["A"]
string valueB = Request.QueryString["B"]

VWD 2010 run code when user closes page

$
0
0

Hello everyone. I have decided to roll my own chat system using the membership authentication since I had such a hard time searching for an example using VB for over a week,  Anyways  I have most of the functionality working except one small piece(I hope).

What I am doing is using a database that stores the chat and who is currently in the room.

My problem is I need to remove that person only from the database when they leave the room. I thought I could do this in the page_unload section, but as I have found out that is the wrong area......I have the code to remove the person already. I also have read the MSDN article on the ASP page life cycle, but I still don't understand where I run the code when a person leaves the web page to remove them from the database?

 

Visual Studio 2013

$
0
0

Hi,

We have an existing ASP.Net 4.0 website project (Web Forms) which opens up in Visual Studio 2010 & VS 2012 without any issues.  After we installed VS 2013 & tried to open the same project, we observed that the website project got renamed. Since we run the project using local IIS server (localhost), does the new upgrade to VS 2013 has any special settings that we need to configure so it doesn't rename the website project?  For e.g, on VS 2010 & VS 2012, the website project shows up asMyWebapp and on VS 2013, it shows up as MyWebapp(2).

Also, how do we go about upgrading to .Net 4.5.1 from 4.0? Do we convert the existing one to 4.5 before moving onto 4.5.1?

Your inpiuts greatly appreciated.

Thanks,

Mary

 

VS 2013, Unable to launch the IIS Express Web Server

$
0
0

Hi,

Firstly, appologies if this thread appears twice, my first one has dissapeared with no trace, no emails, nothing.

I've got a newly built 64 bit Windows 8 machine running an x86 targeted asp.net web project. This project also hosts a Silverlight project.

On one machine, and this one only I get a very odd problem.

With IIS Express not running, I try to run the solution I get a message poping up saying "Unable to launch the IIS Express Web Server". A toast notification pops up from IIS Express saying "one or more errors occured...". Clicking on this notification tells me "The specified port is in use. Port 53150 is already being use by process IIS Express".

Opening the log file that this popup links to I get the following line:- Failed to register URL "http://localhost:53150/" for site "xxxx.xxxxx" application "/". Error description: Cannot create a file when that file already exists. (0x800700b7).

IIS Express is now running and I can browse the site on the port it complains about.

If I open the folder where IIS Express has put the log file, there are two logs for the same time (down to the second), one gives me the error line, the other has a filename matching the process ID of the running IIS Express giving me a sucess line.

It appears to me that VS 2013 is attempting to run two copies of IIS Express. This machine was reinstalled from a 64 bit Windows 7 machine that had the same problem. I do not think hardware is to blame here, it has to be an installation or configuration fault.

I'm really unclear what is going on and would really apprecate a pointer or two.


Refactor "not currently available" - VS 2013 Express for Web

$
0
0

Hitting Ctrl+R, Ctrl+R in Visual Studio is, as of this morning, no longer popping up the refactoring dialog, and instead an error appears at the bottom of my screen:

"The key combination (Ctrl+R, Ctrl+R) is bound to command (.Refactor.Rename) which is not currently available."

I have tried rebooting the computer as well as performing a full VS settings reset.  I have no extensions (e.g. Resharper) installed.

Thoughts?

UPDATE: This issue only occurs in .cshtml files.  I can refactor within my .cs files with no problem.

Visual Studio Update 4 Broke IIS Express' ability to request Client Certificates.

$
0
0

I had my IIS Express configured as specified on this page http://jasonrshaver.com/?tag=/Client+Certificates .  This allowed me to run my application in SSL for the 11 months from June 2013 all the way up to 9:50 AM EST this morning April 22, 2014.  At 9:54 AM EST we ran Visual Studio 2012 Update 4.  At 11:00 AM EST I opened my web application and ran a debug.  At no point did IE or IIS Express request a client Certificate.  The application runs an authentication process which evaluates the server variables and headers to get the Subject value from the client certificate.  But there was no Client certificate, so there was no Cert_Subject server variable, so the application failed before it could even get to the part I was coding.   I checked

All of the settings in both applicationhost.config files are as directed on the web site.  This was not happening before VS 2012 Update 4 was run.  This started happening immediately after VS 2012 Update 4 was installed.  So there is a one to one correlation between these symptoms and the VS 2012 Update 4.  What did Update 4 do to my IIS Express.

Script advice when using Runspace to invoke Powershell

$
0
0

Hi, I'm in my first attempt in creating an aspx.vb script which accepts inputs from the front end and executes a powershell script.  I have a couple of questions

  1. The Powershell script requires input parameters prior to script execution e.g. “./testscript.ps1 –parameter1 [input] –parameter2 [input]"
  2. How do I close the Runspace session? / use the system.dbnull etc…
  3. What does this error mean "The thread 'Pipeline Execution Thread' (0x2844) has exited with code 0 (0x0).
    A first chance exception of type 'System.Management.Automation.CommandNotFoundException' occurred in System.Management.Automation.dll
    The program '[11076] iisexpress.exe: Managed (v4.0.30319)' has exited with code 0 (0x0)."

Thanks for the help in advance :o)

Imports System
Imports System.Collections.Generic
Imports System.Collections.ObjectModel
Imports System.Linq
Imports System.Web
Imports System.Web.UI.Page
Imports System.Web.UI.WebControls
Imports System.Management.Automation
Imports System.Management.Automation.Runspaces
Imports System.IO
Imports System.Text

Partial Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Button1_Click(ByVal sender As Object, _
        ByVal e As System.EventArgs)

        Dim fileOK As Boolean = False
        Dim SizeOK As Boolean = False

        If FileUploadControl.HasFile Then
                Dim fileExtension As String
                fileExtension = System.IO.Path. _
                    GetExtension(FileUploadControl.FileName).ToLower()
                Dim allowedExtensions As String() = _
                    {".txt"}
                For i As Integer = 0 To allowedExtensions.Length - 1

                'Dim Filesize As Integer = .PostedFileContent
                If fileExtension = allowedExtensions(i) Then
                    fileOK = True
                Else
                    StatusLabel.Text = "Upload status: Only text files are accepted"
                End If
            Next


If fileOK Then
Try
Dim objFSO, objFolder
objFSO = CreateObject("Scripting.FileSystemObject")
objFolder = "D:\Reports\uploads\" & TextBox1.Text & "-" & DateTime.Now.ToString("yyyyMMdd-HHmmss-fff")
	If objFSO.FolderExists(objFolder) = True Then
        StatusLabel.Text = "Upload status: File was not uploaded"
          Else
          objFSO.CreateFolder(objFolder)
          System.IO.Directory.SetCurrentDirectory(objFolder.ToString)
          StatusLabel.Text = "Upload status: Entering New Upload folder please wait"
          StatusLabel.Text = "Upload status: Creating Upload folder " & objFolder & ", Please now wait"
          Dim physicalFolder = System.IO.Directory.GetCurrentDirectory().ToString
          Dim fileName As String = Guid.NewGuid().ToString
          Dim extension As String = System.IO.Path.GetExtension(FileUploadControl.FileName)
          FileUploadControl.PostedFile.SaveAs(System.IO.Path.Combine(physicalFolder, fileName + extension))
          StatusLabel.Text = "Upload status: File uploaded!"
          End If
Dim runSpace As Runspace = RunspaceFactory.CreateRunspace() 
runSpace.Open()
Dim q As String = System.IO.Directory.GetCurrentDirectory().ToString
Dim r As String = TextBox1.Text
Dim pipeLine As Pipeline = runSpace.CreatePipeline()					
Dim PSStarted As New Command("D:\Reports\Check.ps1")
PSStarted.Parameters.Add("SAID", "r")
PSStarted.Parameters.Add("CSVPATH", "q")
pipeLine.Commands.Add(PSStarted)
Pipeline.Invoke()
pipeLine.Dispose()
runSpace.Dispose()
Catch ex As Exception

End try
End If
End IF
End Sub
End Class

iis express vs dev engine server

$
0
0

Hi all...

Disclaimer: Some may argue that this belongs over at iis.net or msdn or technet... or even stack overflow... but I mostly hang out here so... ;)

I did actually pose this question many moons ago, possibly not here tho... it may have been directly to scottgu/scottha but I can't remember now... but the question went something like "IIS Express sounds amazing why would I ever want to use the dev engine again?" and the response went something like "No reason really, its IIS but running locally. In the future this (IIS Express) will probably be the default server for VS version next."

And so here I am today working on a site, creating web based projects and sure enough IIS express is the default for new projects, however I've just discovered something annoying...

I cannot run IIS Express getting "Cannot access the IIS metabase" for seems to imply policy/permission reasons... butonly when I'm not connected to the domain?!
Connected to the domain network, its perfectly happy to let me connect to IIS Express and work using that?!.

Aside from the fact that you can't do SSL stuff on dev environment(OOTB at least) its not a deal breaker, but it is annoying and surprising (also you can't fix this without going into the actual PROJ file and removing "Use IIS" from the top and bottom of the file and then "Reload" the project.

  • Anyone else experience this?
  • Anyone got thoughts as to why this might be happening and/or what I could say to our sysadmins/security types to relax things so that this doesn't happen?
  • I wouldn't ask other than I remember the original speil of the IIS Express was that the permissions required were not high like those of "full" IIS.

how to bind asp repeater using json

$
0
0

i have triend alow to bind data repeater using json but could not get axpacted result

please check the belwo code and tell me if i am doing wrong

the dat is comping broperly but not binding to repeater

aspx:

<%@ Page Title="Contact" Language="C#" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Mimic_Viewer.Contact" %>

<head runat="server">
<title></title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
$.ajax({
type: "POST",
url: "Contact.aspx/GetCustomers",
data: '{}',
contentType: "application/json; charset=utf-8",
dataType: "json",
success: OnSuccess,
failure: function (response) {
alert(response.d);
},
error: function (response) {
alert(response.d);
}
});
});

function OnSuccess(response) {
$("[id*=dlCustomers]").attr("border", "1");
var xmlDoc = $.parseXML(response.d);
var xml = $(xmlDoc);
var customers = xml.find("Table");
var row = $("[id*=dlCustomers] tr:last-child").clone(true);
$("[id*=dlCustomers] tr:last-child").remove();
$.each(customers, function () {
var customer = $(this);

$(".CustomerID", row).html($(this).find("CustomerID").text());
$(".ContactName", row).html($(this).find("ContactName").text());
$(".City", row).html($(this).find("City").text());

$("[id*=dlCustomers]").append(row);
row = $("[id*=dlCustomers] tr:last-child").clone(true);
});
}
</script>
</head>
<body style="font-size: 10pt; font-family: Arial">
<form id="form1" runat="server">

<asp:Repeater runat="server" ID="rptTest">
<ItemTemplate>
<b>Customer Name:</b>
<asp:Label CssClass="ContactName" runat="server" Text='<%# Eval("ContactName") %>'></asp:Label><br />
<b>Customer ID:</b>
<asp:Label CssClass="CustomerID" runat="server" Text='<%# Eval("CustomerID") %>'></asp:Label>&nbsp;
<b>City:</b>
<asp:Label runat="server" CssClass="City" Text='<%# Eval("City") %>'></asp:Label>
</ItemTemplate>

</asp:Repeater>

 

</form>
</body>

///////////////////////////////////////////////////////////////////////////////////

Aspd.cs

using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Mimic_Viewer
{
public partial class Contact : Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.BindDummyRow();
}
}

private void BindDummyRow()
{
//DataTable dummy = new DataTable();
//dummy.Columns.Add("CustomerID");
//dummy.Columns.Add("ContactName");
//dummy.Columns.Add("City");
//dummy.Rows.Add();
//dlCustomers.DataSource = dummy;
//dlCustomers.DataBind();
}

[WebMethod]
public static string GetCustomers()
{
//string query = "SELECT top 10 CustomerID, ContactName, City FROM Customers";
//SqlCommand cmd = new SqlCommand(query);
return GetData().GetXml();
}


private static DataSet GetData()
{
DataSet ds = new DataSet();
DataTable dummy = new DataTable("Customer");
dummy.Columns.Add("CustomerID");
dummy.Columns.Add("ContactName");
dummy.Columns.Add("City");

dummy.Rows.Add(new Object[] { 1, "Smith2", "Singapore"});
dummy.Rows.Add(new Object[] { 2, "Smith3", "Singapore"});
dummy.Rows.Add(new Object[] { 3, "Smith4", "Singapore"});
dummy.Rows.Add(new Object[] { 4, "Smith5", "Singapore"});
dummy.Rows.Add(new Object[] { 5, "Smith6", "Singapore"});
//dummy.Rows.Add(new Object[] { 6, "Smith6", "Singapore", true });
//dummy.Rows.Add(new Object[] { 7, "Smith7", "Singapore", true });
//dummy.Rows.Add(new Object[] { 8, "Smith", "Singapore", true });
//dummy.Rows.Add(new Object[] { 9, "Smith", "Singapore", false });
//dummy.Rows.Add(new Object[] { 10, "Smith", "Singapore", false });
//dummy.Rows.Add(new Object[] { 11, "Smith", "Singapore", false });
ds.Tables.Add(dummy);


//DataTable dt = new DataTable("Pager");
//dt.Columns.Add("PageIndex");
//dt.Columns.Add("PageSize");
//dt.Columns.Add("RecordCount");
//dt.Rows.Add();
//dt.Rows[0]["PageIndex"] = pageIndex;
//dt.Rows[0]["PageSize"] = PageSize;
//dt.Rows[0]["RecordCount"] = ds.Tables[0].Rows.Count;

//ds.Tables.Add(dt);

return ds;


}



}
}

Double clicking control in designview of aspx page does not add code to Code Behind but added in aspx page under script tag

$
0
0

Hi, I am using visual studio 2010 . I have created one page and in that page i have placed one button control. When i click on button control in designview of aspx, the page does not add code to Code Behind but added in aspx page under script tag. I want to display click event in .cs file. could you please give any quick solution. Thanks in Advance.

Totally confused about all the available versions of Web Frameworks, Web Tools, MVC, Packages installed by VS2012 and VS2013!

$
0
0

Hi,

I have VS2012 Update 4 and VS2013 Update 1 installed.

Under Extensions and Updates for VS2012 it says I have "Microsoft ASP.NET and Web Tools 2013.1.41108", "Microsoft Visual Studio ASP.NET MVC 5 Scaffolding 5.0".

Under Extensions and Updates for VS2013 it says I have "Microsoft Web Developer Tools 2.0.40926.0" and "Microsoft Visual Studio ASP.NET MVC 5 Scaffolding 5.0"

I would try to list all the "Packages" folders I have but your eyes would glaze over.  I'll try to be brief:

* C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Packages has a bunch of JQuery but no Bootstrap or Knockout.

* C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 4\Packages has some different JQuery and Knockout 2.2 but no Boostrap.

* C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v2.0\Packages appears to have the same JQuery and Knockout that MVC 4 does.  In fact the have the same version of Web Pages - Microsoft.AspNet.WebPages.2.0.20710.0.

* C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Stack 5\Packages has Knockout 2.3 and Bootstrap 3.0 and Web Pages 3.0.  <- I know this is the latest greatest that was installed after VS2013 came out, but not sure how it relates to the others.

* C:\Program Files (x86)\Microsoft Web Tools\Packages doesn't have Knockout but does have Bootstrap 3.0.  It doesn't have any Web Pages or MVC.

* https://www.nuget.org/api/v2/ has KnockoutJs 3.1 and BootStrap 3.1.

Whew.  Now, in VS2012, for a ".NET 4 Web Application", I can create MVC 3 or MVC 4 Web Application.  for 4.5 or 4.51 Web Applicaiton I can create MVC3, MVC4, MVC5, or Web API 2.  In VS2013, for a ".NET 4 Web Application", I can create MVC 4 Web Application.  For 4.5 and 4.51 I can just use the new "make anything template" that includes Boostrap and Knockout.

OK, now that I've framed my confusion I will ask my question in the next post.


Visual Studio 2013

$
0
0

I had created a website in VS 2005 (.net framework 2.0) in folder "PCDNA", when I used to run the website it used to start as "http://localhost:12345/PCDNA/default.aspx"

when I opened the sane website in VS 2008 (target framework 2.0) or VS 2010 (target framework 2.0) and run the website it still ran with the same URL "http://localhost:12345/PCDNA/default.aspx"

But when i opened it in VS 2013 (target framework 2.0) the URL changed to "http://localhost:12345/default.aspx", the folder name "PCDNA" was missing from it. due to which my js, css and images are not getting linked.

Please help to get back the folder name "PCDNA" in the URL...

Using FTP to connect to large remote site using Visual Studio 2013 Express)

$
0
0

Hopefully someone can help me with this, because it's driving me nuts.

I'm trying to connect to several different remote sites using FTP (both active and passive modes). These sites have tens of thousands of files. After I connect, the mouse continues to stay a spinning wheel icon (as though its still working) even though the bottom right status bar is showing "Ready". Even though the cursor is a spinning icon, I can slowly navigate the website directories through solution explorer, but it's so slow that it's really unusable. Also, if I hit escape, I get the option "do you want to abort this operation". I can abort hundreds of times and it continues, probably all it does is abort the ftp operation of that particular file and moves on to the next.

My questions:

- Is VS trying to download and cache the whole site? If so, how do I prevent it from doing that? It's making it impossible for me to modify remote large sites. 

- Why is the status bar saying ready while it's actually still doing work?

- Is there a log or window that shows all the background FTP activity that happening?  It's frustrating to see signs that the VS is busy but not have any idea of what it's actually doing. 

Eugene

Visual Studio 2013 Web Forms Error Message

$
0
0

High everyone out there. I have some experience with VB, however I have a problem using VS2013 Professional when I try to create a website with ASP.NET Web Forms. Right at the beginning, as soon as I browse to the folder for the website and press OK, the following error message appears:

The ‘Microsoft.VisualStudio.Web.Project.WebProjectPackage, Microsoft.VisualStudio.Web.Project’ package did not load correctly.

The problem may have been caused by a configuration change or by installation of another extension.

Any help will be very much appreciated. Thanks.

Miho Mihov

Don't see CSS 3.0 in the validation dropdown

$
0
0
I have 2010 Visual Web Developer on a Windows 7 64-bit machine. I downloaded the CSS3 Intellisense Schema 
which the css30.xml file I placed in the directory
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS
and when I load Visual Web Developer I don't see CSS3 in the validation dropdown which only has Internet Explorer 6.0 CSS 1.0 CSS 2.0
I don't know if something has to match with the registry in the directory that links to the csss30.xml file.I am trying to install the
intellisense plugin which I am creating a site with CSS3.

http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210/view/Discussions

Any solutions?

HTML5 controls not in enabled in vs11?

$
0
0

Hi,

I've a standard asp upload control in standard asp webform in visual studio 2012

Now I've stript the

<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

to

<!DOCTYPEhtml>

The problem is that i still don`t have the property AllowMultiple="true" in the upload control...I don`t want to use the input control..

Does someone knows what i need to do to get the html5 controls enabled?

Best regards,

Mark

Viewing all 3509 articles
Browse latest View live




Latest Images