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

New project web template is not appearing in Visual Studio 2015 preview

0
0

I have installed Visual Studio 2015 preview successfully. Unfortunately, I am not getting New project Templates to create Web Apps (asp.net). I am looking under C# -> Web.

Please note that I tried this locally and on an Azure machine which is having Visual Studio 2015.

Visual Studio 2015 preview New Project


Entity Framework versions and available books

0
0

Hello,

I just purchased "Programming Entity Framework (Julia Lerman, O'Reilly)
Problem is it is written to Entity Framework 4.  I'm using EF6.

Anyone know of a good "beginning/intro to" book on EF6.  I'm thinking EF 6 for Dummies,
I'm just getting started with EF.

Thanks!

How can I view the actual web.config of my site in the localhost mode?

0
0

Hello,

VS2013 update 3, MVC5, VB

I am able to successfully use the Web.Release.config transform file.  I am having trouble with the Web.Debug.config transform.

If I select the 'Preview Transform' from the context menu on the Web.Debug.config file, it looks correct.  When I run the website in Debug mode, the transform is evidently not occurring.  My first thought was to look at the actual file to see what the transform is doing, but I don't know where to look for the file in localhost mode.

It may be that I'm not using the correct steps to transform, but my first stop is to find the file to see what's going on.

Thanks.

Best Regards,

Alan

vs2013 premium installation successfully but not starting...............

0
0

Hello all

I have installed vs2013 premium, it was successfully installed on my machine but while i am starting it, it is showing blank screen. please help me how can i resolve this ???

vs2013 error

Loop an async method

0
0

In my test project, I want to run several async methods in a loop, Test() below.

When I run the following TestLoop() method, the method Test() is only run once with no errors.

How do I get the loop to continue through all 10 iterations??

[TestMethod]
    public async Task TestLoop()
    {
        int intTotalTests = 10;

        for (int i = 0; i <= intTotalTests; i++)
        {
            await myTest();
        }
    }

Visual Studio debug DLL problem

0
0

Hi,

I use Visual Studio 2010 and .NET 4.0 (DefaultApplicationPool under development machine IIS7)

Everything was workunk ok till lately, but now I have following "debug DLL problems"

I can run my DLL ok from Visual Studio without debugger, but getting an error message:

"A process serving application pool 'DefaultAppPool' suffered a fatal communication error with the Windows Process Activation Service." while trying to step into DLL with a debugger and spending over 10 secs or so being in the method.

It looks like some kind of time out problem because if I have one or no break points in a method of my DLL it works fine, but if I linger longer in the method it always closes "main web page" and produces this error message.

I have tried to disable "ping" setting of Application Pool. It didn't help. 

Please Help.

Thank You

Serge

Javascritp Function for the repeater

0
0

Hi

My textbox  and linkbutton (asp.net)is inside the repeater.How can i enable textbox with java script function upon click of a link button .It is working fine in vb.net.I want to avoid the post back  on each click of Edit link button,Below is the textbox and link button

<asp:TextBox ID="TextBox1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem,"LicenseID") %>' Enabled="False" BackColor="Gray" BorderStyle="None"></asp:TextBox>

<asp:LinkButton Visible="true" ID="LinkButton5" runat="server"  CommandName="update" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "LicenseID") %>'  CausesValidation="False" onClientClick="MyFunction();return false" >Update</asp:LinkButton>

<script>

function MyFunction(txtRefId)

{

   var textBox = document.getElementById(txtRefId);

    document.getElementById("textBox").disabled = false;

}

</script>

Above function MyFunction is Not working.I can not make the textbox enable.

Below vb.net code is working fine.I want to accomplish this with the javascript function for the Edit.

If e.CommandName="edit"Then 

      DirectCast(e.Item.FindControl("TextBox2"),   TextBox).Enabled =True    

   DirectCast(e.Item.FindControl("Textbox2"), TextBox).BorderStyle =BorderStyle.NotSet   

    DirectCast(e.Item.FindControl("Textbox2"), TextBox).BackColor = Drawing.Color.White

            endif

 

Appreciate your help..Thanks

 

VS2010 - errors displayed in the browser instead of in the code in the studio.

0
0

The problem: VS2010 - errors displayed in the browser instead of in the code in the studio. Is it possible to display errors of server side application in the studio, and break execution in proper point in the code?

Thank you.


Error adding Microsoft ADO 2.8 reference

0
0

Hi

I'm trying to reference ADOX in my website using VWD express 2010.

I click on add reference, click on the COM tab and select 'Microsoft ADO Ext. 2.8 for DDL and Security', click ok and get a message :-

A reference to 'Microsoft ADO Ext. 2.8 for DDL and Security' could not be added. Converting the type library to a .NET assembly failed. No process is associated with this object.

Can anyone shine some light in this for me? It seems to happen for all COM components.

Cheers Guys..

How to add a control at the bottom of asp page

0
0

I have the following code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientBasket.aspx.cs" Inherits="ClientBasket" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"><link rel="stylesheet" type="text/css" href="~/Styles/BigScreens.css" /> </head><body id="body1" runat="server" style="background-color:#FFEBD6;"><form id="form1" runat="server" >  <asp:Panel ID="Panel2" runat="server"> <div style="padding-top:10px"><asp:Label ID="Label1" runat="server"  Font-Size="Large" ForeColor="Red" Text="Item To ADD"></asp:Label></div>     <asp:Table id="TableItemToAdd" runat="server">
           //table content</asp:Table><br /><br /><asp:Label ID="Label7" runat="server" Font-Size="Large" ForeColor="Red" Text="Your Basket"></asp:Label><asp:Repeater id="Repeater1" runat="server"><HeaderTemplate><table border="1" width="100%"><tr>
                       //content</tr></HeaderTemplate><ItemTemplate><tr align="center">
                      //content                    </tr></ItemTemplate><AlternatingItemTemplate><tr bgcolor="#e8e8e8">
                    //content</tr></AlternatingItemTemplate><FooterTemplate></table></FooterTemplate></asp:Repeater><br /><center><asp:Button ID="Button4" runat="server" Text="Order now!!" /></center><div style="text-align:center; z-index:1; position:relative; margin : 0 auto; "><asp:Image ID="Image5" runat="server" AlternateText="LOGO" 
              ImageUrl="url" 
              style="width:auto; height:auto; position:relative; " /> </div></asp:Panel><div style="z-index:1; position:relative;"><asp:Label ID="Label9" runat="server" style="margin-left:70%; font-size:small">//text</asp:Label> </div></form></body>   </html>



css:

 #Panel2
{
    width:75em; 
    min-height:35em;
    margin-left:5%;
    margin-right:5%;
    margin-top:3%;   
    background-color:White;
    height:auto;   
     border-radius: 15px;
    -webkit-border-radius: 0.625em ; 
    -moz-border-radius: 0.625em;
   
     
}

I need to place the div that is right before the closing tag of the panel at the bottom of the panel and tried lots of methods and none of it worked; Any help plz!!

How to create virtual directory in another pc from VS 2010 IDE?

0
0

suppose i have just created a project from VS 2010 IDE and now i want to publish that project to remote pc where a IIS is there. i want when i will publish then virtual directory will be created in remote pc IIS along with publish web site. i know how to publish a web site from VS IDE but then problem is when i publish my project to remote pc then i have to go to that pc for creating Virtual directory in IIS which map to my publish folder.

so tell me how to create Virtual directory in another pc IIS if not created when i will publish my site to that pc. discuss this with all steps in details. if it is not possible in VS2010 then tell me how to make it possible in upper version. thanks

How many updates has been released for Visual studio 2013 from beginning to till now?

0
0

hi,

i have download long time back  Visual studio 2013 ultimate in my pc but never install any update. so i like to know how many updates has been released for Visual studio 2013 from beginning to till now?

also tell me do i need to install all updates one after one in my pc or if i install only last update does it solve all issue?

give me the url from where i can install all VS2013 related updates. thanks

asp.net web.config transforms for debugging

0
0

I've seen a bunch of web pages which say the transformations work only for publishing, and this is "by design" of Visual Studio. If I right click on web.debug.config and hit 'View Transform' Visual Studio seem to show the expected configurations.

My question is is there a clean, state-of-the-art way w/o "manually" messing up with project file or something ..... and still being able to use the build profile drop down to switch the debugging configurations ?

In other words, I select UAT from drop down and it automatically uses web.uat.config while I am debugging from my Visual Studio instance ... running on development machine ?

Extra info :
I own Visual Studio 2013 Ultimate but at work I've to use 2012 Ultimate. ... Just in the case if that makes any difference. My application has class libraries, WCF, Database project, MVC 4 Web Application. .NET f/w 4.5.2

vs2013 region

0
0

Hi,

I am trying to wrap code with #region/#endregion but the editor shows Invalid character on the region code line,

Seems like the editor does not recognize the command,

Is there anything I need to do in order to make it work ?

Problem in solution file using visual stdio 2013

0
0

My web application dose not opened, Error message is "Not a Vaild Solution" how to solve this problem,

Plz help me,

Thanks


Multi Project Template folder structure incorrect

0
0
<div class="post-text" itemprop="description">

So i am trying to build a Multi Project template and when i set it up the folder structure is coming out incorrectly (Not how microsoft does it when creating projects) and it's messing things up like the Packages folder and References folder.

This is current Structure:

Solution Folder
-Solution File 
-Folder (Solution Name)
--Packages
--References 
--Project1 Folder
--Project2 Folder

I am wanting it to have the same structure that .NET does automatically:

SolutionFolder
-
SolutionFile
-ReferencesFolder
-
PackagesFolder
-Project1Folder
-Project2Folder

Here is my vstemplate:

<VSTemplateVersion="3.0.0"xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"Type="ProjectGroup">
<TemplateData>
<Name>
ASP Solution Template</Name>
<Description>
This is the Solution Template for ASP Applications</Description>
<Icon>
__TemplateIcon.ico</Icon>
<ProjectType>
CSharp</ProjectType>
</TemplateData>
<TemplateContentBuildOnLoad="true">
<ProjectCollection>

<SolutionFolderName="References"></SolutionFolder>
<SolutionFolder
Name="packages"></SolutionFolder>
<ProjectTemplateLink
ProjectName="$safeprojectname$"> ASPTemplate\MyTemplate.vstemplate </ProjectTemplateLink>
<ProjectTemplateLink
ProjectName="$safeprojectname$.ClassLibrary"> ClassLibrary\MyTemplate.vstemplate </ProjectTemplateLink>
</ProjectCollection>
</TemplateContent>
</VSTemplate>
</div>

moved from visual studio express 2013 to visual studio 2012 ultimate

0
0

Previously I'm using visual studio express 2013, and now i moved to visual studio 2012 ultimate,

so when i open the websites that i build by visual studio express 2013 i got this:

The Data Source value in the connection sting specifies an instance of SQL Server that is not installed. To resolve this issue, you can either choose to install the matching instance of SQL Server or modify the Data Source value in the connection string.

this is my connection string for visual studio express 2013:

<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>

this connection string for visual studio 2012 ultimate:

<add name="ConnectionString" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True"

so what i shall do to make the websites that i created by visual studio express 2013 run by visual studio 2012 ultimate

with out install SQL sever express 2013.

VS Community 2013

0
0

Have downloaded and installed VS Community 2013 Update 4. 

Tried to create new Web Site. Get message:- The Web Developer Tools must be installed prior to opening or creating Web projects.

Ran Web Platform Installer. Web Developer Tools shows as installed.

Anyone help.

Thanks

VS2013 Renames web project and links to IIS port 80 web site

0
0

We have a solution with a web site project in it. When we open the solution in VS2013 the project initially displays with the correct name (from the .sln file). After VS finishes with it's initialization process for the project the web site project displays in Solution Explorer with the name of the web site configured in IIS to respond tohttp://localhost:80. Additionally, this website gets reconfigured to point to the folder for the web site project. Our developers have various web sites from different solutions configured in their local IIS instance, how can we seperate the web project from IIS configuration or at least have the association be stored in a file that isn't source controlled and therefore has to be the same for all developers on a project?

issue with loading 2 sites when i change IIS

0
0

I have 2 sites in my iis and switch between them when running a site localhost. I switch it in IIS.

then when I load vs 2010 and pick the correct website It is running I get a mix match and wrong paths in it.

so if I have IIS set to website1 and load that in vs as load website > website1

in the property box at bottom right it has the wrong pathing (path to website2)
I looked at C:\Users\WORK-DOUG\Documents\Visual Studio 2010\Projects\localhost\localhost.sln and corrected the path there and closed vs - reopened and it still has wrong path

I noticed in C:\Users\WORK-DOUG\Documents\Visual Studio 2010\Settings\CurrentSettings.vssettings
it has a few places I see a wrong paths in there but I am unsure how to modify that.

is there a proper way for me to switch between websites and have both run as localhost whenever I need to work on one?

Viewing all 3509 articles
Browse latest View live




Latest Images