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

Missing "virtual path" web application property

$
0
0

Hi, 

I have a project (Web Application) in Visual Studio 2010 where I can set virtual path. Now, I have moved to VS2013 and found that virtual path property missing. Could you tell me how I can fix that if I want to work in debugging and following step by step each operator.

Thanks


display Live streaming video in asp.net web page from mobile/tab app

$
0
0

Hello everyone,

Greetings for the day..!!!

I need to do display live streaming in my asp.net web page. My mobile/tab device app's is start the the camera video and its live streaming need to display in my web page. How can I achieve this?

Kindly give your input for this.

Thanks in advance.

Abhi.

 

Visual Studio 2012 diagrams export to visio

$
0
0

Hi,

I have visual studio 2010 professional and visual studio 2012 ultimate. If I use Visual Studio to create diagrams, will I be able to export them in a format I can open with Visio (even if it's a newer version)? I'm planning to create class and sequence diagrams.

Thanks

Visual Studio 2012 Web Express and Oracle provider

$
0
0

Hi,

We're trying to setup a visual studio 2012 express for web to develop an application targeting an Oracle database. Visual Studio is installed and we have installed "ODAC 12c and Oracle Developer Tools for Visual Studio " successfully.

We wanted to add an entity framework data model with a connection against the oracle database, following these steps: new "ado.net entity data model" , "EF designer from database", "new connection", but the "oracle database" data source with "odp.net managed driver" is not in the data source options. 

Does the express version limit the provider allowing to work only with sql server in the entity wizards?

Thanks

Microsoft Cryptography Next Generation CNG

$
0
0

Hi Guys,

I developed a sample encryption application using Microsoft Cryptography Next Generation (CNG) in C++ using bcrypt.h header file. I tried using AES 128bit CFB mode. The cipher text generated by my application is different from cipher text generated by OpenSSL CFB API. The plain text, key and IV are all same between CNG and OpenSSL.

Is there any extra property to be set in CNG to produce exact output as per OpenSSL? 

I followed the example given below https://msdn.microsoft.com/en-us/library/aa376234(v=vs.85).aspx and just changed CBC to CFB.

how can I build a windows phone app on visual studio express 2013?

$
0
0
There is no option on "new project" for a Windows phone app in the file menu.

Coded UI test script works in VS2010 but not in VS2012.

$
0
0

I have a test script for an application that adds 3 part numbers (i.e., rows) to a table displayed on the AUT web page.  Each row in the table also contains anHTMLInputButton called View Audit Trail.  The purpose of the test script is to select the correct button, which then calls up theAudit Details page for the selected part number.  The code used in the test script driver is as follows (the same code is used for clicking on either an action button or a hyperlink contained within a table):

case "ClickTableItem":
{

// Note: An input example would be 03-0024-0-0001:Button>View Audit Trail

string[] keys = action[key].Split(':');
string cellvalue = keys[0].CheckGlobalValue(global);  // The key data identifying which table row.
string[] objtypeANDobj = keys[1].Split('>');  // Data consists of the Object Type, and the Object to be clicked.

// Identify the table...  (The name of the table from outside theSwitch statement.)
HtmlTable actionTable = (HtmlTable)map.GetType().GetProperty(key.FieldName).GetValue(map, null);

// Identify the individual table cell containing the key identifier...
HtmlCell cell = new HtmlCell(actionTable);
cell.SearchProperties.Add("ClassName", "HtmlTableCell");
cell.SearchProperties.Add("InnerText", cellvalue, PropertyExpressionOperator.Contains);
UITestControlCollection tablecells = cell.FindMatchingControls();

// Set the row index...
HtmlCell myhtmlcell = (HtmlCell)tablecells[0];
int myrow = myhtmlcell.RowIndex;
string smyrow = myrow.ToString();

HtmlCell myCell = new HtmlCell(actionTable);
myCell.SearchProperties.Add("RowIndex", smyrow);

#region Click on Hyperlink
if (objtypeANDobj[0] == "Hyperlink")
{
myCell.SearchProperties.Add("FriendlyName", objtypeANDobj[1], PropertyExpressionOperator.Contains);
UITestControlCollection testclickobjects = myCell.FindMatchingControls();
UITestControl tableclickobject = testclickobjects[0];

HtmlHyperlink myClicklink = new HtmlHyperlink(tableclickobject);
Mouse.Click(myClicklink);

                        logger.Write("    Action", "Table Select - Row: '" + cellvalue + "': Hyperlink '" + objtypeANDobj[1] + "' selected");
}
#endregion

#region Click on Button
else if (objtypeANDobj[0] == "Button")
{
// Search child level...
UITestControlCollection testclickobjects = myCell.FindMatchingControls();
UITestControl tableclickobject = testclickobjects.Where(btnCell => btnCell.GetChildren().Any(btnChild => btnChild is HtmlInputButton && btnChild.FriendlyName == objtypeANDobj[1])).First();

HtmlInputButton myClickbtn = tableclickobject.GetChildren().Where(btnChild => btnChild is HtmlInputButton).First() as HtmlInputButton;
Mouse.Click(myClickbtn);

                        logger.Write("    Action", "Table Select - Row: '" + cellvalue + "': Action Button '" + objtypeANDobj[1] + "' selected");
}
#endregion
break;
}

In VS2010, the correct button is always selected, and the correct audit page always appears.  In VS2012, though, the correct button is always selected, but the green progress bar speeds across the screen and the test crashes, even though the message log records the correct action.  (It crashes because it can't find the verification information that the correct page was displayed, seeing as the correct page doesn't appear.)  If I manually re-open the application, the table containing the added part numbers is still displayed, and I can click on the appropriate View Audit Trail button and go to the correct audit page.  

What really has me stymied, though, is that the script actually passed twice.  Both times, though, either VS, the test script, or the app itself hiccupped, and only added 2 of the 3 part numbers to the table.  As always, the correct button was selected, but in these two cases the audit screen actually appeared, so the rest of the test passed successfully.

I've tried removing one of the part numbers, but the script still failed despite once again selecting the correct button.  The first thing I thought of was re-mapping the web page objects using VS2012, but it turned out that they have the same properties as with VS2010.  Unfortunately, it didn't help.  I've also tried changing the following parameters:

HtmlInputButton to HtmlButton

<PropertyCondition Name="ControlType">Button</PropertyCondition> tobtn

<PropertyCondition Name="Type">button</PropertyCondition> tosubmit

<PropertyCondition Name="Class">PageButton</PropertyCondition> toButton or btn

The only other thing unique is that the AUT for the VS2010 test script uses a different login screen than the AUT for VS2012 (different URLs for the login screens).  Other than that, though, once the login screens are passed, the web pages accessed are identical (i.e., the same URL).

Has anyone else run into a similar situation?  

Using C++ to create a structure chart designer

$
0
0

I am trying to use C++ to design a structure chart program that will let you enter in names of functions into a sidebar and as you enter a name into the first slot two things will happen: another blank slot will appear below the one you are typing in and a text box (shaped to the size of the text inside) will appear in the main area allowing the structure chart to expand. Another part will be to put some kind of tab on the text entry slots so that you can add different lines to any other function boxes including main() and allows you to put the variable names that are being passed in and out of functions on or near the lines that go between them all. It will basically be just what you would expect out of a structure chart, just automated and neat.

Let me know if there is any advice or help you can give me as I start this program. 

Thanks in advance!


Visual Studio Express 2013

$
0
0

I have downloaded Visual Studio Express 2013 for Windows Desktop and signed in to extend my trial. After that, do I have to buy a product key or does it remain free?

Search and Replace based on types

$
0
0

Hi everyone,

I am hoping someone here knows how to use visual studio 2013 to find texts by type and replace them. For example, I have a struct that uses operator overloading to multiply. So throughout my program I have statements/expressions such as struct * struct.

I would like to change all of that to use a method; For example, I would like to change the following:

Vectro3 a;
Vector3 b;

Vector3 c = a * b;

to:

Vector3 a;
Vector3 b;

Vector3 c = Vector3.Mul(a, b);

Is there a way I can search for where type Vector3  multiples Vector3 only and not where for example type float multiples float and then replace it with something else?

The reason I need to change it to a method is because I am going to be then using a program to inline the calculations instead of using operators or methods. I have about over 8000 cases so doing it manually is going to be painful.

I am really hoping someone here knows a technique or a program that could do it. I tried search patterns in Refactor by Resharper, but that add-in messes my whole code. I might be using it wrong, if any one knows how to do the above with search pattern in Refactor please let me know as well.

Thanks in advance!


Visual Studio’s Emulator for Android is not working or either showing in Hyper-V

$
0
0

I installed the VS 2015 CTP with Cordova tools and Have already installed the Xamarin .... But the Android emulator is not showing in the Hyper-v or dosn't start up. But i just check the Programmes i have installed its there in the list. I have enabled the Hyper-v and other specs are also available ... VS als dosnt shows the Emulator is there .... Please help me to up the Android Emulator for Visual Studio ...

-------------------------------------------------- Hyper - V -----------------------------------------------

------------------------------------------------------------------- Control Panel -------------------------------------------------------------


Dileepa S. Rajapaksa
---------------------------------
Trainee Developer
Microsoft, Sri Lanka

----------------
Twitter : @dsrajapaksa
Blog : http://www.dileepatech.net

Windows 10 + VS 2015 CTP6, missing target 8.2

$
0
0

I installed packet from

https://dev.windows.com/en-us/featured/hardware/windows-10-hardware-preview-tools

Win 10 SDK and Visual Studio.

When I try to build samples for windows 10 (Windows-universal-samples-master, from https://codeload.github.com/Microsoft/Windows-universal-samples/zip/master) I got error (when open project)

 error  : The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.2\Microsoft.Windows.UI.Xaml.CSharp.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.  C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\Microsoft.Windows.UI.Xaml.CSharp.targets

In v14.0 folder I have 8.0,8.1 and 10

thank you

Bartosz

VS2013 CE - how to disable from different Menus / Options temporarely unneeded things (VB,C++ etc)

$
0
0
Hello,

I mainly want to use VS2013 for programming things in C# ... In different Menus I get the full Options/Customization for every Language VS2013 supports, that is a bit timeconsuming to sort things out etc. Is there a way to hide these options that I don`t want at the moment ..

Example:

In TOOLS->Options->Fonts and Colors->Display items Box ... in the listbox exists things like:
C++ Classtemplate
C++ Enumerators
C++....
VB excluded Code
VB XML Attributes
VB .....

Is there a way to disable the things from C++, VB ... thanks in advance ...

threading general question

$
0
0

statement : i have some tasks that does not require any user interface so i would like to implement them   with threads instead of thru windows

But they need to habe a message pump

 i have read all of the relevant reference sections and found only declaration that it is possible

q1)  what must be made at construction/creaton /beginning time ??

q2) the thread is  considered to have exited when it ends message handler ??

q3) is there any complete online training /tutorial or so on topic threading ???


claudio cannella

A reference was created to embedded interop assembly

$
0
0

Hi

I have several warnings as below;

A reference was created to embedded interop assembly 'Accessibility' because of an indirect reference to that assembly from assembly 'System.Windows.Forms'. Consider changing the 'Embed Interop Types' property on either assembly.

What do I need to do to resolve these?

Thanks

Regards


(.sqlproj) is not supported VS 2013

$
0
0

Hi,

I have VS 2013 and SSDT installed . I could see create new database project template .

But when i create one, i have an errror like below

'C:\Users\___\AppData\Local\Temp\Database1.sqlproj'
cannot be opened because its project type (.sqlproj) is not supported

Please let me know what to do about this.( do i need to install sql server on the machine to get this working??). I see that sql dlls are missing in C:\\windows\assembly.


Su

Visual Studio Community 2013 Office Development

$
0
0

Hello,

I used to custom-code InfoPath forms for SharePoint libraries using Visual Studio Premium 2012 in C#. After formatting my PC, I decided to install Visual Studio Community 2013 with Update 4. When I click the Code Editor in InfoPath Designer, I'm prompted to install VS 2012 and C# support. Why can't I use 2013?

connect a db2 database

$
0
0

how can i connect my Project with  a db2 database

VS 2015 CTP 6: can't even open a blank universal app

$
0
0

Hello,

Is this a known but of Visual Studio 2015 CTP 6 or only on my installation? Is there a known workaroung/fix?

Creating a C# / Windows 10 / Blank Universal Application (UAP) then opening MainPage.xml, I get the error:

NullReferenceException: Object reference not set to an instance of an object. for the Grid

 at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.WindowsStoreXamlPlatform.get_ThemeResources()
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.FindInstantiatedResource(IInstanceBuilderContext context, ViewNode viewNode, DocumentNode documentNode, DocumentNode keyNode)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.UpdatePropertyOrChildValue(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, Int32 childIndex, DocumentNodeChangeAction action, DocumentNode valueNode, ViewNode& childViewNode, IInstanceBuilder& valueBuilder, Boolean& isNewInstance)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.DependencyObjectInstanceBuilderBase`1.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
   at Microsoft.VisualStudio.DesignTools.WindowsXamlDesigner.InstanceBuilders.FrameworkElementInstanceBuilder.UpdateProperty(IInstanceBuilderContext context, ViewNode viewNode, IProperty propertyKey, DocumentNode valueNode)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateProperties(IInstanceBuilderContext context, ViewNode viewNode, DocumentCompositeNode compositeNode)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ClrObjectInstanceBuilder.Initialize(IInstanceBuilderContext context, ViewNode viewNode, Boolean isNewInstance)
   at Microsoft.VisualStudio.DesignTools.Platform.InstanceBuilders.ViewNodeManager.InitializeInstance(IInstanceBuilder builder, ViewNode viewNode, Boolean isNewInstance)

I installed VS 2015 CTP 6 on the Windows 10 Pro Technical preview Build 10061.

VERTICAL ALIGNMENT ON WORD TABLE IS MISS.

$
0
0

Hello everybody,

Can somebody clear my mind? I did the code below, and this generates a beautiful and clean table on word 2010. The problem is that the instruction “.Rows.Height = 8” and “.Cells.VerticalAlignment = Word.WdCellVerticalAlignment.wdCellAlignVerticalCenter” seems  not work, besides, when I try to adjust the rows height and vertical alignment by myself, after routine generates the table of course, Word don´t allow me to do these adjustment by hand.

The property “.Rows.Height = 8” seems to be working, because when I change to “.Rows.Height = 25” the rows height really goes to it, also, there is no problem with horizontal alignment, this is work very fine.

Working with VS 2012 and Word 2010.

Tried everything, no result….

Thank you.

 Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
        Dim WA As New Word.Application
        Dim WD As Word.Document
        Dim WS As Word.Selection
        Dim model_address, mes_extenso, texto, texto_ref, pic_address As String
        model_address = Application.StartupPath & "\GTMS_MDL.docx"
        pic_address = Application.StartupPath & "\PIC\TABELA01.png"
        WD = WA.Documents.Open(model_address, [ReadOnly]:=True)
        WS = WA.Selection
        Dim WT1 As Word.Table
        Dim WR1 As Word.Range
        Dim lin_wt1, lin_wt2, lin_wt3 As Integer
        lin_wt1 = 3
        WT1 = WD.Tables.Add(WA.Selection.Range, lin_wt1 + 2, 5)
        With WT1.Range
            .ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
            .Cells.VerticalAlignment = Word.WdCellVerticalAlignment.wdCellAlignVerticalBottom
            .Rows.Shading.BackgroundPatternColor = Word.WdColor.wdColorAqua
            .Rows(1).Shading.BackgroundPatternColor = Word.WdColor.wdColorBlueGray
            .Rows.Borders.OutsideLineStyle = Word.WdLineStyle.wdLineStyleSingle
            .Columns.Borders.InsideLineStyle = Word.WdLineStyle.wdLineStyleSingle
            .Font.Bold = True
            .Font.ColorIndex = Word.WdColorIndex.wdWhite
            .Rows.Height = 8
            .Columns(1).Width = 30
            .Columns(2).Width = 350
            .Columns(3).Width = 40
            .Columns(4).Width = 50
            .Columns(5).Width = 50
            .Font.Size = 7
        End With
        WT1.Range.Text = ""
        WT1.Cell(1, 1).Range.Text = "ITEM"
        WT1.Cell(1, 2).Range.Text = "DESCRIÇÃO"
        WT1.Cell(1, 3).Range.Text = "QTD."
        WT1.Cell(1, 4).Range.Text = "UNIT."
        WT1.Cell(1, 5).Range.Text = "SUBTOTAL"
        For i = 0 To lin_wt1
            WT1.Cell(i + 1, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
        Next
        For i = 0 To lin_wt1 - 1
            WT1.Cell(i + 2, 1).Range.Text = i + 1
            WT1.Cell(i + 2, 2).Range.Text = DGV1.Rows(i).Cells(2).Value
            WT1.Cell(i + 2, 3).Range.Text = DGV1.Rows(i).Cells(3).Value
            WT1.Cell(i + 2, 4).Range.Text = DGV1.Rows(i).Cells(4).Value
            WT1.Rows(i + 2).Range.Font.ColorIndex = Word.WdColorIndex.wdBlack
            WT1.Rows(i + 2).Range.Font.Bold = False
        Next
        WT1.Cell(lin_wt1 + 2, 1).Merge(WT1.Cell(lin_wt1 + 2, 2))
        WT1.Cell(lin_wt1 + 2, 2).Merge(WT1.Cell(lin_wt1 + 2, 4))
        WT1.Cell(lin_wt1 + 2, 1).Range.Text = "TOTAL GERAL"
        WT1.Rows(lin_wt1 + 2).Range.Font.ColorIndex = Word.WdColorIndex.wdDarkRed
        WT1.Rows(lin_wt1 + 2).Range.Font.Size = 10
        WT1.Cell(lin_wt1 + 2, 1).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphLeft
        WT1.Cell(lin_wt1 + 2, 2).Range.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
        WT1.Cell(lin_wt1 + 2, 2).Range.Text = FormatCurrency(12560, 2)
        WA.Visible = True
        WA = Nothing
        WD = Nothing
        WS = Nothing
    End Sub

Viewing all 21115 articles
Browse latest View live


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