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

Unable to Add Apache Cordova to Project from VS 2013 Community Edition

$
0
0

After installing VS 2013 Community with CTP 5 I attempted to add Apache Cordova Geolocation Plugin version 0.3.10 (as well as other plugins). After clicking on the Add button message "Couldn't download plugin" was displayed.

How can this be resolved?


ES6 Javascript Errors

$
0
0

Is Any one started writing ES6 code with out any issues using Visual Studio 2013/2015, getting lot of errors. We tried disable default options from visual studio but No luck.

Please share if you come across any plugins or disable options.


Community edition - Expired licence

$
0
0

Hi, following the previous Microsoft's announcement of VS Community edition I decided to give it a shot, problem is after installation, when I run it it shows welcome screen with the following message:

"Licence: Prerelease software

This licence has expired"

When I press close button whole Visual Studio closes.

This is a fresh Win8 installation, there are no updates, and nothing else, just Visual Studio + some extensions.

(I'd post image but my account isn't verified yet.)

Thanks,

Jozef.

Edit: I 'solved' it, it was needed to change date, which was actually right (14.11) so I set it to 29.11.14 (which isn't), and it works now.

Visual Studio 2013 Won't load Sign-In screen

$
0
0

Hi there, 

 I apologize for such a mundane question but I cannot sign into my Visual Studio IDE. When I click the sign-in button I get a message saying "This page can't be displayed. This has been the case since I originally downloaded the program so I just never signed in, but now my license has expired and I have to sign in to keep using it. So I'm effectively locked out of my project.

 If anyone has had this issue I would greatly appreciate any advice. I tried, uninstalling / reinstalling; I tried installing express instead of community. I tried googling for this problem or similar problems, all to no avail. 

 If you can offer a solution to this I would be grateful as I feel like I've tried everything and it is extremely frustrating to be locked out simply because the software isn't working properly.

 Thanks in advance!

Compile Error

$
0
0

Errors that occur after compiling the project

Fact table with datetime measure showing #value error while browsing the cube

$
0
0

Hi All,

I have a cube with a fact table having datetime measure.

when I browse the cube, I am able to see the data for all measures except  for the measure with the datetime as datatype.

Thanks in advance.


Custom blocks

$
0
0

Hi to all.

  I am a PLC programmer and I am using visual studio IDE as you can see in the link ( http://s24.postimg.org/fjlzq9479/ide.png).  This IDE has been used by an automation company to allow programming using function blocks. My question is that the AND function block has an option menu which allows the user to add an extra input just by clicking that menu option. The extra input appears at the lowest side of the block where the programmer can add more functionality. 

I want to know how can I make my own function blocks have the same "add input" functionality. What sort of programming do i need to learn and what would be the starting point. I basically need to know how to customize the visual studio UI to allow this "add input" feature. 

I need to add a new report to the application that is done using visual studio and SSRS and SQL Server 2008

$
0
0
I have an application that is done using SSRS on visual studio and it connects to the report server on SQL server 2008 environment. I've been changing the existing reports using visual studio 2008 and modifying the reports on the report server. How do I add a new report to the application ? I created a new report and deployed it on the report server but it didn't show up in the application. I can access the application source code on visual studio 2010 and TFS (Team Foundation). Thanks. 

What is the "Imported Namespaces" window in Visual Studio Project Properties (VB)

$
0
0




What is the "Imporeted namespaces" window (see below) in Project properties (VB)








An error occurred while exporting code metrics

$
0
0

In the function of Calculate Code Metrics for Solution,

a error occurred when I click "Open List in Microsoft Excel" then show a dialog that "An error occurred while exporting code metrics" 

But the code metrics result is calculated correctly

It can open correctly a few day ago

VS 2013 can no longer sign in

$
0
0

I had VS 2013 (upgrade to update 4) installed for some time and logged into my MSDN account. A week or so ago, when I went to publish a site to Azure, it started prompting me to login again. It had an error, but unfortunately I didn't note down what it was. When I closed out of that screen I was logged off. When I tried logging in again the login window just says "Sorry, we ran into a problem" and "Exception has been thrown by the target of an invocation."

Log of the issue:

User:IdeUser, Exception has been thrown by the target of an invocation.: TargetInvocationException [inner: Method not found: 'Void Newtonsoft.Json.Serialization.DefaultContractResolver.set_IgnoreSerializableAttribute(Boolean)'] during ExplicitSignIn
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
   at System.Activator.CreateInstance(Type type, Object[] args)
   at Microsoft.VisualStudio.Services.Client.VssConnection.GetClientInstance(Type managedType)
   at Microsoft.VisualStudio.Services.Client.VssConnection.GetClientServiceImpl(Type requestedType, Func`2 getInstance)
   at Microsoft.VisualStudio.Services.Client.VssConnection.GetClientServiceImpl[T](Func`2 getInstance)
   at Microsoft.VisualStudio.Services.Client.VssConnection.GetClient[T]()
   at Microsoft.VisualStudio.Services.Client.VssServerDataProvider..ctor(VssConnection server, String fullyQualifiedUrl)
   at Microsoft.VisualStudio.Services.Client.VssConnection.EnsureProviderConnected()
   at Microsoft.VisualStudio.Services.Client.VssConnection.ConnectAsync(VssConnectMode connectMode, IDictionary`2 parameters, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.VssConnectionWrapper.ConnectAsync(VssConnectMode connectMode, String user, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.IdeConnector.<ConnectAsync>d__1.MoveNext() (ActivityId: 00000000-0000-0000-0000-000000000000)

I tried repair installing, uninstalling and then installing VS 2013 w/ Update 4 already integrated, but continue to get this error. Any ideas?


Filestream not releasing file

$
0
0

Greetings,

New to vb.net (2012) so bear with me.

I have a routine that I'm calling to get the Exif date and time from a JPG then renaming the file. However, the routine that gets the date and time is tying up the file so that the rename can't occur. I've tried closing, disposing and setting everything to nothing but have had no luck. I know it's the read of the metadata tying up the files because if I change that routine to just pass back "now" the files rename perfectly.

What am I missing?!?!

Code is below. Thanks!
Ken

    Function MetaDataGet(ByRef TheData As PicMData, ByRef Reslt$) As Boolean
        Dim Ext$
        Dim JpgOpt As New BitmapCreateOptions
        Dim JpgInput As System.IO.FileStream
        Dim JpgDecoder As JpegBitmapDecoder
        Dim MyMetaData As BitmapMetadata
        Ext$ = Mid$(TheData.FileName, InStrRev(TheData.FileName, ".") + 1)
        On Error GoTo MDERROR
        Reslt$ = ""
        Select Case UCase$(Ext$)
            Case Is = "JPG"
                JpgOpt = BitmapCreateOptions.PreservePixelFormat And BitmapCreateOptions.IgnoreColorProfile
                JpgInput = New System.IO.FileStream(TheData.FileNameFull, IO.FileMode.Open, IO.FileAccess.Read)
                JpgDecoder = New JpegBitmapDecoder(JpgInput, JpgOpt, BitmapCacheOption.None)
                MyMetaData = JpgDecoder.Frames(0).Metadata
                If MyMetaData.ContainsQuery(MDQryImageDescript$) Then TheData.ImageDescription = MyMetaData.GetQuery(MDQryImageDescript$)
                If Not MyMetaData.Keywords Is Nothing Then
                    For Each Info In MyMetaData.Keywords
                        TheData.WinTags = TheData.WinTags & Info & "; "
                    Next Info
                    TheData.WinTags = Mid$(TheData.WinTags, 1, Len(TheData.WinTags) - 2)
                End If
                If Not MyMetaData.Title Is Nothing Then TheData.WinTitle = MyMetaData.Title
                If Not MyMetaData.Subject Is Nothing Then TheData.WinSubject = MyMetaData.Subject
                If Not MyMetaData.Comment Is Nothing Then TheData.WinComments = MyMetaData.Comment
                'size and resolution
                Dim BMapForSize As New BitmapImage
                BMapForSize.BeginInit()
                BMapForSize.UriSource = New Uri(TheData.FileNameFull)
                BMapForSize.EndInit()
                TheData.SizeX = BMapForSize.Width / 96
                TheData.SizeY = BMapForSize.Height / 96
                TheData.PixelsX = BMapForSize.PixelWidth
                TheData.PixelsY = BMapForSize.PixelHeight
                TheData.Resolution = (BMapForSize.PixelWidth) / (BMapForSize.Width / 96)
                BMapForSize = Nothing
                'end size and resolution
                If Not MyMetaData.CameraModel Is Nothing Then TheData.EquipModel = MyMetaData.CameraModel
                If Not MyMetaData.CameraManufacturer Is Nothing Then TheData.EquipMake = MyMetaData.CameraManufacturer
                If Not MyMetaData.Author Is Nothing Then
                    For Each Info In MyMetaData.Author
                        TheData.Authors = TheData.Authors & Info & "; "
                    Next Info
                    TheData.Authors = Mid$(TheData.Authors, 1, Len(TheData.Authors) - 2)
                End If
                If Not MyMetaData.Copyright Is Nothing Then TheData.Copyright = MyMetaData.Copyright
                If Not MyMetaData.DateTaken Is Nothing Then TheData.DateTimeOriginal = MyMetaData.DateTaken
                If MyMetaData.ContainsQuery(MDQryDateTime$) Then TheData.DateTime = MyMetaData.GetQuery(MDQryDateTime$)
                If MyMetaData.ContainsQuery(MDQryDateTimeDigi$) Then TheData.DateTimeDigitized = MyMetaData.GetQuery(MDQryDateTimeDigi$)
                MyMetaData = Nothing
                JpgOpt = Nothing
                JpgDecoder = Nothing
                JpgInput.Close()
                JpgInput.Dispose()
                JpgInput = Nothing
            Case Is = "MPG", "AVI", "MP4"
                'Nothing to be done yet. Maybe exif into there?
            Case Else
                Throw New System.Exception("Invalid file type.")
        End Select
        If Reslt$ = "" Then
            Return True         'no errors occurred
        Else
            Return False        'errors occurred
        End If
MDERROR:
        Reslt$ = Reslt$ & TheData.FileName & ": " & Err.Description & vbCrLf
        Err.Clear()
        Resume Next
    End Function

I cannot find where to launch Visual Studio 12 :(

$
0
0
Usually when I install a program, it has some sort of convenient way to get it up and running. But for some reason I cannot find such a thing with VS 12. There's nothing in the start menu, nothing on the desktop, and I have looked all over the VS 12 directory for the file that I'm supposed to run. I feel like I'm searching for a needle in a haystack, when all I want to do is just to get the thing up and running. What is the EXACT file that I am looking for??

VS 2013 with Surface Pen

$
0
0

Recently I purchased a Microsoft Surface Pro 3 and have been using the Surface Pen instead of a mouse.

However I have been coding C++ in VS 2013 and have come across an annoying bug/feature.

The WM_MOUSEDOWN event is not fired when you click with the surface pen, it takes a few hard clicks or holding the pen on the screen for this event to be fired, as apposed to a mouse the event is fired instantly as you click. Any fix/work around for this? :/

Edit in debug mode (not at breakpoint)

$
0
0

Hi All,

I'm hoping someone can help me with a very frustrating Visual Studio issue. For some reason for my asp.net web forms applications, I can't edit when in debug mode, unless it's currently at a breakpoint.

Surely if I can edit and continue at a breakpoint, it should also allow me to edit while the application is idle.

Stopping and starting the debugger is a huge hassle, as the re-build is quite slow.

Anyway help would be greatly appreciated.

Just some possibly relevant facts. I'm using Visual Studio Pro 2013, IIS Express, and .Net 4.5.1

Thanks,

Eugene


Inconsistent behaviour of linked files in VS 2013 Web-Application

$
0
0

Hi All,

I've recently converted a large web-site to a web-application. While it's mostly worked ok, I'm having problems getting linked files to behave in a consistent and logical way.

I've converted a number of css files to scss (using web-essentials to compile), and for some reason the associated files are sometimes displayed linked (collapsible) and sometimes not, and I don't know how to correctly associate the files. Even for new scss files I create sometimes the link seems to be forgotten by VS.

When I say the link is forgotten, I mean the linked files are all just displayed in the folder, not collapsed under the primary file.

Web Essentials creates 3 files for each scss - .css, .min.css, and .css.map. I prefer to keep these neatly tucked away to avoid cluttering up the folder display, but I also want to be able to expand them out to see them if needed.

Is there some way to get VS to re-link the files properly?

As a web-site I don't recall this happening. Visual Studio always seemed to know the files were linked.

Any suggestions would be appreciated.

Eugene


p.s. I should just mention, that the files still work correctly. Web Essentials is still detecting changes to scss and auto-compiling the associated files. It's just the display in solution explorer that's looking cluttered.

Can't switch user in Visual Studio 2013

$
0
0
 

I followed the instructions described in setenv  /resetuserdata. It waited a minute. When I tried again it failed. Same problem.Any ideas what can go wrong. Same Virtual Studio 2013?

C# Form: ProgressBarStyleMarquee worked with async/await but not with BackgroundWorker?

$
0
0

My ProgressBarStyle.Marquee worked with async/await but not with BackgroundWorker?

I had a .Net issue and had to change from .Net 4.5 back to .Net 4.0, which required my async to conver to a backgroundworker. This was a simple change, but now the ProgeressBarStyle.Marquee doesn't scroll back and forth.  Any reason why?  All I did was change my "wrapper" per se.  All the other commands to form seem to work (e.g. setting the controlbox items to false). See how the backgroundworker and form are called below. The downloading (form2) is initilazed before the form1 contructor is executed. I created the StartMarquee() to test if I could launch it prior:

        public DirectorScriptUsageLog()
        {
            InitializeComponent();
            InitializeBackgroundWorkers();
            btnExport.Visible = false;
            lblProgress.Visible = false;
            downloading.LoadMsg("Downloading Data. Please wait...");
            downloading.StartMarquee();  // starts the marquee
            downloading.Show();     // Form call w/ progressBar
            downloading.Refresh();  // refresh to make sure it is visible
            DownloadingAsync();     // calls the backgroundworker
        }
//
//
//
// Form load...
        private void frmDownload_Load(object sender, EventArgs e)
        {
            this.MinimizeBox = false;
            this.MaximizeBox = false;
            this.ControlBox = false;

            progressBar1.Style = ProgressBarStyle.Marquee;
            progressBar1.MarqueeAnimationSpeed = 100;
        }


SV



VS 2015 CTP5 Installed license is insufficient

$
0
0

Hi there,

I'm recently installed Visual Studio 2015 CTP5. On home machine it's working fine, but on work PC I've got a message that my license is expired and newly downloaded license is insufficient

Any ideas, how to get a proper license?

Br, Sergey


MCSE, MCITP, CCNA Security Subscribe to my blog at http://sypalo.com

Disable Visual Studio 2013 editor allow the cursor to extend the line ends

$
0
0

I've just downloaded the Visual Studio Community 2013, and I've noticed, that the cursor can go beyond the end of the line. I don't like that behavior, but I cannot find which setting can disable this setting. I've installed Productivity Power Tools and CodeMaid and cannot find an option in them regarding this.

Is it possible to disable this behavior, and if so, how?

Viewing all 21115 articles
Browse latest View live


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