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

Can't switch user in Visual Studio 2013

$
0
0

Hello.

Our company recently got into the BizSpark program and as a result we got access to Visual Studio 2013.

However when I attempt to log into Visual Studio I get an error:

We were unable to establish the connection because it is configured for user [my Personal Account]@gmail.com but you attempted to connect using user [My Work Account]@a3ds.no. To connect as a different user perform a switch user operation. To connect with the configured identity just attempt the last operation again.

I'v attempted to reset the devenv (devenv /resetuserdata) using the developer console and removing my old credentials from the credential manager i Windows.

Anyone know how I can solve this?


run on a Windows 64-bit operating system either as a native application or under WOW64

$
0
0

I am using Visual Studio 2013 Professional, and need to compile my application in a way that it works with existing libraries on my system that are only 32 bit.

I read this someplace ....   "When you compile an application, you can specify that it should run on a Windows 64-bit operating system either as a native application or under WOW64 (Windows 32-bit on Windows 64-bit). WOW64 is a compatibility environment that enables a 32-bit application to run on a 64-bit system. WOW64 is included in all 64-bit versions of the Windows operating system."

Can anyone tell me HOW I "specify that it should run on a Windows 64-bit operating system either as a native application or under WOW64 (Windows 32-bit on Windows 64-bit)."  ?

VS 2013 - Add Service Reference - not working

$
0
0

Hi,

I have Service References correctly installed and running under IIS on a Win 8.1 machine.

It is under Default Web Site

On the tree it is named VCIWCFServicesSite

Basic Settings:

Site Name: Default Web Site

Path: /

Alias: VCIWCFServicesSite

Application Pool: DefaultAppPool

With VS 2013, I try to "add service reference"

http://localhost GO

I get:

There was an error downloading 'http://localhost/_vti_bin/ListData.svc/$metadata'.
The request failed with HTTP status 404: Not Found.
Metadata contains a reference that cannot be resolved: 'http://localhost/'.
The remote server returned an unexpected response: (405) Method Not Allowed.
The remote server returned an error: (405) Method Not Allowed.
If the service is defined in the current solution, try building the solution and adding the service reference again.


No surprise: there is no c:\inetpub\wwwroot\_vti_bin directory.

Ok, Now what?

Boyd


BDM  - it ( the service ) was published by vs2010

VISUAL STUDEO ON THE STORE?

$
0
0
I'M USING MY SURFACE RT AND IT ONLY LETS ME DOWNLOAD FROM THE STORE, WILL VIS UAL STUDEO EVER BE ON THE STORE?

IE 11 upgrade

$
0
0

Hi everyone,

I hope you could help me with some issue. I have an old VS2005 web application that export a data from SQL database and can be downloaded in excel format. it is working fine in IE 8 even the file size is as big as 25mb. but after upgrading to IE 11 when I open the file it prompts me that there is an error during the download and saying that  there are missing files. Mostly the missing files are css files. This happen when i am downloading large file it is working fine when i try other download process having small file size. The thing is why IE8 can handle this case and not IE11. Can anyone provide a solution or a work around.

Thanks

Why does PCL use version 2.0.5.0 of ServiceModel?

$
0
0

I am trying to use a PCL to share code between ASP.NET and Silverlight 5 in Visual Studio 2013. I created a PCL, and included .NET Framework 4.5 and Silverlight 5. The first thing I notice is that even though I check Silverlight 5, it never shows up. That is, I go in again to change the targets and Silverlight 5 is still unchecked, and it doesn't show up in the list of targets in the project properties.

My next problem is that it is using System.ServiceModel version 2.0.5.0. However, if I reference this DLL directly in a Silverlight 5 project it uses version 5.0.5.0, or if I use it in a ASP.NET WebApp it references version 4.0.0.0.

Is this done because version 2.0.5.0 is the lowest common denominator between these frameworks?

Thanks!

Project targeting framework 4.5 not using framework 4.5 so it fails but runs on older framework.

$
0
0

I built a window application targeting framework 4.5 it built and ran locally quite nicely.  I published it out to a server running framework 4.5.  It fails and returns no error at all.  When I put it on a server that has only framework 3.5.1 it runs like a charm.  My server admin was able to come up with the following error message when he ran it under his admin ID:
Problem signature:
  Problem Event Name: CLR20r3
  Problem Signature 01: wwwlescom.exe
  Problem Signature 02: 1.0.5519.25248
  Problem Signature 03: 54da63a1
  Problem Signature 04: wwwlescom
  Problem Signature 05: 1.0.5519.25248
  Problem Signature 06: 54da63a1
  Problem Signature 07: 93
  Problem Signature 08: 8
  Problem Signature 09: System.IO.FileNotFoundException
  OS Version:      6.3.9600.2.0.0.272.7
  Locale ID:           1033
  Additional Information 1:           5861
  Additional Information 2:           5861822e1919d7c014bbb064c64908b2
  Additional Information 3:           a10f
  Additional Information 4:           a10ff7d2bb2516fdc753f9c34fc3b069

Can someone please explain to me how a framework 4.5 application can't find a framework 4.5 file on a server with framework 4.5 but does find a framework 4.5 file on a server without the 4.5 framework?????

Where is Web Deploy Client username list stored

$
0
0

I want to remove some of these names, but cannot find where they're stored.


Install a previous version of an extension

$
0
0

I've recently updated an extension from visual studio but this update contains some bugs. 

Is it possible to install the previous of the extension? If so, where can I find the file (vsix if I recall) ?

The extension is hosted on visualstudiogallery.msdn.microsoft.com

Thanks

how to make permanent changes to my database?

$
0
0

so i have a program that works with a database, but since it's my first time using databases i think i might have some serious misunderstanding about how to make permanent changes to a database. i want to know how edit the original database file instead of just editing the instance made in application

here is an example of a row adding method i use for editing database:

        private void postOpinionButton_Click(object sender, EventArgs e)
        {
            DataRow row = gatway_Console_DatabaseDataSet.Tables[0].NewRow();
            int id = gatway_Console_DatabaseDataSet.Tables[0].Rows.Count - 1;
            row["ID"] = id + 2;
            row["UserID"] = Convert.ToInt32(userIdTextbox.Text);
            row["UserComment"] = userCommentTextbox.Text;
            row["Opinion"] = userOpinion;
            gatway_Console_DatabaseDataSet.Tables[0].Rows.Add(row);
            //this.Close();
        }

this code runs on a custom dialogbox and my problem is that not only thing code doesn't make permanent changes on the database it doesn't even make the changes on the original form of my application where i see the results in a textbox

here is the code for that(if you like to see):

        private void updateUsersCommentsStaticsTextbox()
        {
            userCommentsStaticsTextbox.Text = null;
            DataColumn column = gatway_Console_DatabaseDataSet1.Tables[0].Columns["UserComment"];
            foreach (DataRow row in gatway_Console_DatabaseDataSet1.Tables[0].Rows)
            {
                if (row[column] != null) userCommentsStaticsTextbox.AppendText(row[column].ToString());//userCommentsStaticsTextbox.Text = userCommentsStaticsTextbox.Text +row[column].ToString();
                userCommentsStaticsTextbox.AppendText(Environment.NewLine);
            }
        }
dose anyone can tell me what i am doing wrong here and what should i do to make permanent changes, so that my database entries remain the same as when i close application when i launch it again or for any other applications that open this database.


Visual Studio 2010 crashes on closing of internet explorer

$
0
0

Hello!

I am working with Visual Studio 2010 on Windows 8.1 with Internet Explorer 11 installed. Recently I encounter the problem, that Visual Studio crashes (all open instances!) if I am using Internet Explorer and then closing it.

More precise:

  • VS or more VS instances are running with opened solutions or without open solutions.
  • Start of Internet Explorer 11, do some browsing.
  • Close Internet Explorer
  • All VS instances Crash with a message like 'Micrsosoft Visual Studio stopped working...'
  • The VS instances restart.

Has anybody an idea what went wrong? How can I trace this error, with a logfile perhaps?

Best regards and tanks in advance

Jörg

yardım edinn :)

$
0
0
ben kodu yazarken ....   = ''mesela '' ... bu şekildeki mesela yazısının kırmızı olması gerekirken normal oluyo ve aplikasyonu yapamıyorum bunu nasıl düzelticem

How to go from .exe, .exp, .lib, .pdb to an installed program that runs outside VS2013

$
0
0

Hi,

Complete newbie so forgive me for asking the Obvious. I am using VS2013 C/C++ on Windows 8,1 machine and managed to compile/build some code. I ended up with the followig files in Release folder: .exe, .exp, .lib, .pdb.

I can run in the debugger the program perfectly. I do not recognise the .exp  .pdb and found that the .exe does not run outside the VS IDE. I searched for information but only got links towards "what" these files are but not how it all works together to get to a running application.

What do I need to do next to get to a deployed / "unpacked" application tht runs outside the IDE.

Thank you

Ludwig

Visual Studio 2013 Ultimate Started Serializing Projects on Startup and freezing...

$
0
0

As of yesterday Visual Studio 2013 Ultimate started showing this in the output window when I open my work projects (they are quite large). It freezes on the same project every time and never finishes. Visual Studio 2012 opens them with no problems. It's a project that has very large Entity Framework (.EDMX) files. I really need to get this fixed. I've tried disabling add-ons but the only I've installed is nDepend (and it worked great for a full day of opening and closing projects). I did do a 'Get Latest' from TFS the day all of this started and so I'm sure it's an add-in or something.

Project ‘_DatabaseDeployment.sqlproj’ was successfully serialized to file 'C:\tfs\Development\Arbiter\_DatabaseDeployment\_DatabaseDeployment.dbmdl'.
Deserializing the project state for project 'Arbiter.Database.sqlproj'...
Deserializing the project state for project '_DatabaseDeployment.sqlproj'...
Detecting file changes for project 'Arbiter.Database.sqlproj'...
Deserialization has been completed for project 'Arbiter.Database.sqlproj'.
Detecting file changes for project '_DatabaseDeployment.sqlproj'...
Deserialization has been completed for project '_DatabaseDeployment.sqlproj'.

Which version of Visual Studio for Apps created with VS 10 or before

$
0
0

I will be working on an application that was originally developed with VS 2005 and currently maintained with VS2010.

I have VS 2013 installed but the dev lead on the old application says I should be working on it with VS 2010.

His belief is that if I open the project in VS 2013 it will introduce incompatibilities since the rest of the his team is using VS 10.

I would appreciate any suggestions or feedback on this topic.

I do not really have enough experience with maintaining older apps in Visual Studio to know whether this is really a potential issue.

Thanks

Matt


My group box is causing problems when searching for a text line in a text file.

$
0
0

I am developing a booking system, so for this I need to ensure that no two clients can book the same appointment slot. So, on testing my code which prevents double booking, the system doesn't seem to find the text line being searched for in the text file when it (purposefully) should.

I have tried isolating the problem using breakpoints, and I've found that when the 'SearchLine' (referring to my code below) does not include the 'TimeComboBox.text' piece and instead this value is written into the code, the system is able to find the SearchLine without any problems. But, when assigning the group box's value to a variable and using this in the SearchLine instead, or without even using a loop and just doing a simple line by line search, the program can't find this line of text in the file.

I'm lost for ideas. I have tried everything I can think of. Could anyone make any suggestions as for what is the problem with my group box? (I'll explain the code beneath it).

         

'Setting the value of the SearchLine (which is a String)
SearchLine = String.Concat(DateTimePicker1.Value.Date & " " & TimeComboBox.text)

Dim FoundApp As Boolean
Dim objReader As New System.IO.StreamReader(basicfilepath & "Text Files\Client Booked Appointment DatesTimes.txt")
FoundApp = False
'Reading the file's contents and checking for the SearchLine
 Do While (objReader.Peek() <> -1) or (FoundApp = True)
   If (TextLine = SearchLine) Then
      'Line contains SearchLine. Appointment already exists.
      FoundApp = True
   Else
      'Line doesn't contain SearchLine. Carry on searching.
      Msgbox("Line not found.")
   End if
 Loop

Explanation

  • When the line is searched for, the 'FoundApp' value must be set to 'True' when it is found. If it is not found, it remains false.
  • To isolate the problem, I've displayed the SearchLine in a message box in the past to make sure that the correct line of text is being searched for.

In basic terms, my program is searching for the exact line of text which exists in the text file, but for some reason it is not coming up as 'Found'. The error occurs when the group box's value is used. The text file which is being read isdefinitely correct. Please help, any suggestions would be appreciated.

Thank you


"MissingManifestResourceException" in WinForms app

$
0
0

I have a WinForms app that compiles cleanly.  When it runs in the debugger, it stops at a line with the warning message:

MissingManifestResourceException

“Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Blah.Properties.Resources.resources" was correctly embedded or linked into assembly "Blah" at compile time, or that all the satellite assemblies required are loadable and fully signed.”

The resource is an image file (QueuesIcon.png) that is contained on anImages folder.  It is not contained in a Resources folder.  This is how other images in the app are defined. 

The code is as follows. The last line is that which generates the warning when the debugger runs.

<dataname="QueuesIcon"type="System.Resources.ResXFileRef, System.Windows.Forms">

   <value>..\Images\QueuesIcon.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

  </data>

……………………………………………………………………………………………………

      internalstatic System.Drawing.Bitmap QueuesIcon {

           get {

               object obj = ResourceManager.GetObject("QueuesIcon", resourceCulture);

               return ((System.Drawing.Bitmap)(obj));

           }

       }

………………………………………………………………………………………………….

    this.BlahQueues_NavBarGroup.SmallImage =global::BlahSuite.Properties.Resources.QueuesIcon;

The warning is not listed in the Error List when the app is compiled.

I haven’t determined the cause of this message, but am wondering if there’s at least a means of bypassing the warning so the debugger can continue. (The debugger’s Step Over and Step Through options don’t bypass this warning. )  

Thanks.

Why are Windows 'APP's so much harder to code than a Windows Forms application?

$
0
0

For example I have been smashing my head against a wall trying to save an image file from a share target, the best help I can find is the below code:

https://social.msdn.microsoft.com/Forums/en-US/65a61679-0da8-4109-8a69-b918be351dfa/how-to-save-a-bitmap-image-from-a-share-target?forum=winappswithcsharp&prof=required

But in a 'normal' application I can do what I need to do with:

using System;
using System.Drawing;

namespace Project1
{
    class Class1
    {
        static void Main()
        {
            Image photo = Image.FromFile("C:\\Temp\\oldphoto.png");
            photo.Save("C:\\Temp\\newphoto.png");
        }
    }
}

Why do the APPs take so much more code to do something like save a file to disk?


Mediocre Access 2010 | (Baby) Beginner C Sharp | OK at Active Directory (2012) | Fragmented understanding of DNS/DHCP | Laughable experience with Group Policy | Expert question asker on MSDN Forums

Switch to HTTPS

$
0
0

Hello,

I am trying to submit a paragraph of code which has been working on other computers. On my system, I receive the error:

E_COSMOS_GENERIC: Could not get stream info for http://cosmos08.osdinfra.net:88/cosmos/bingads.business.fastjobs/shares/adCenter.BICore.SubjectArea/SubjectArea/resources/PROD/MonetizationFacts.view
[HttpStatusCode = Forbidden; ErrorCode = 0x80004005(The operation failed); Description = HTTP(http://cosmos08.osdinfra.net:88/cosmos/bingads.business.fastjobs/shares/adCenter.BICore.SubjectArea/SubjectArea/resources/PROD/MonetizationFacts.view?view=xml&property=info) is not allowed. Please switch to HTTPS instead. For more detailed instruction, please check (https://microsoft.sharepoint.com/teams/Cosmos/Documents/SecurityAndCompliance/Security%20Updates%20to%20VcClient.docx).

Essentially it seems that Visual Studio is telling me that this location is not within communication, because I have to switch to HTTPS. However, because I don't explicitly reference this location in my code, I deduce that it is embedded somewhere in my system. Does anybody know how to make the switch from HTTP to HTTPS within the Visual Studio system?

Thanks,

Rohit

VB to C#

$
0
0

Hi, i am converting VB to c # using dev express. I am getting few errors as follows.

VB code 1:

Dim img As HtmlImage = Nothing
 img = grdview.FindRowCellTemplateControl(e.VisibleIndex, grdview.Columns("x"), "y")

c# code 1:

 HtmlImage img = null;
 img = grdview.FindRowCellTemplateControl(e.VisibleIndex,  grdview.Columns["x"], "y");

error 1: the best overloaded method match has some invalid arguements

VB code 2:

Dim values As Object() = grdview.GetRowValuesByKeyValue(e.KeyValue, New String() {"a", "b"})

c# code 2:

object[] values = grdview.GetRowValuesByKeyValue(e.KeyValue, new string[] {"a", "b"});

error 2: cannot implicity convert type object to object[]. An explicit conversion exists(are you missing a cast)?

VB code 3:  

Dim values() As String = e.Parameters.Split(",")

c# code 3:

string[] values = e.Parameters.Split(",");

error 3: the best overload method match for string.split(params char[]) has some invalid arguments

VB CODE 4:

 If Not e.Column.GetType Is GetType(DevExpress.Web.ASPxGridView.GridViewDataTextColumn) Then
  Exit Sub

C # CODE 4:

if (!(e.Column.GetType == typeof(DevExpress.Web.ASPxGridView.GridViewDataTextColumn)))
            {
                return;
            }

ERROR 4: operator ==cannot be applied to operands of type 'method group' ans 'system.type'.

vb code 5:

e.Row.ToolTip = "Ext." & s(0).ToString
            If Not s(1).ToString = String.Empty Then
                e.Row.ToolTip &= "; sample = " & s(1).ToString
            End If

c code 5:

e.Row.ToolTip = ("Ext." + s[0].ToString);
                if (!(s[1].ToString == String.Empty))
                {
                    ("; sample = " + s[1].ToString);
                }

error 5: operator ==cannot be applied to operands of type 'method group' to string

            operator + cannot be applied to operands  of type 'string' and 'method group'

How to convert these lines to C SHARP:

 Private Sub BindGridDropsDowns()
        With CType(grdExtList.Columns("Title"), DevExpress.Web.ASPxGridView.GridViewDataComboBoxColumn)
            Dim ds As DataSet = grdExtList.DataSource 'GetExtensionListDS()
            If Not ds Is Nothing AndAlso ds.Tables.Count > 0 Then
                ds.Tables(0).DefaultView.RowFilter = ""
                Dim dv As DataView = ds.Tables(0).DefaultView
                dv.Sort = "Title"
                Dim dt As DataTable
                dt = dv.ToTable("Titles", True, New String() {"Title"})
                Dim row As DataRow = dt.NewRow()
                row.Item("Title") = ""
                dt.Rows.InsertAt(row, 0)

                .PropertiesComboBox.DataSource = dt
                .PropertiesComboBox.TextField = "Title"
                .PropertiesComboBox.ValueField = "Title"
            End If
        End With

and below line convert to c sharp

 Dim row As DataRow = dt.NewRow()
  row.Item("Title") = ""

c#

 DataRow row = dt.NewRow();

 row.Item["Title"] = "";

error: system.data.datarow does not contain definiton for "item' and no extension method 'item' accepting first arguement of type system.data.datarow



Viewing all 21115 articles
Browse latest View live


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