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

SQL2005 Server standard in windows 7 32bit

$
0
0

I installed my sql2005 server in windows 7 32bit and found out that it is used as sql express Server.

did I installed it the case or I did wrong installation.

is there a way to upgrade  sql2005 server standard to 2008 version?

thanks

Dov


Reportviewer Errors in VS 2012 Premium

$
0
0

Hi,

I have a reportviewer on a asp.net 4.5 web forms in Visual Studio 2012. It uses a local report .rdlc file and binds to a data source that connects to Oracle 10g. The code of the report viewer is as followings:

<rsweb:ReportViewerID="ReportViewer1"runat="server"Font-Names="Verdana"Font-Size="8pt"><LocalReport ReportEmbeddedResource="FMCustomer.ReportSecJob.rdlc" ReportPath="ReportSecJob.rdlc">

 <DataSources>
 <rsweb:ReportDataSource DataSourceId="DataSetSecJob" Name="DataSetSecJob" />
 </DataSources>

</LocalReport>
 </rsweb:ReportViewer>

There are three errors I have been encountered.

1. if the reportPath=  above is not assigned the name of the report then the error shows up:

An error occurred during local report processing. The report definition for report 'ReportHomeRpt1' has not been specified. Object reference not set to an instance of an object. 

This error is fixed by adding the name of the report to reportPath=. This solution is provided on the internet by searching the error message.

2. Now the error message is "The DataSourceID of the ReportDataSource 'DataSetSecJob' of the ReportViewer 'ReportViewer1' must be the ID of a control of type IDataSource. A control with ID 'DataSetSecJob' could not be found." I cannot find a solution to it.

3. if you go to the reportviewer1 smart tag and select  "Choose Data Sources", and then click to expend several levels of "Data Source Instance" in the right column of the "Choose Data Sources" windows, the visual Studio 2012 closes by itself without any warnings and message! This could be a bug.

Unknown error

$
0
0

Public Class Form1

    Private Sub btnSort_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnsort.click
        Dim intDataArray(-1) As Integer

        Dim intNumDataItems As Integer = Val(Me.txtNumElements.Text)
        If intNumDataItems > 0 Then
            Call GenerateArray(intDataArray, intNumDataItems)

            Me.lstbox1.Items.Clear()
            Call DisplayData(intDataArray, Me.lstbox1, "Original Array.")

            Call SelectionSort(intDataArray)
            Call DisplayData(intDataArray, Me.lstbox1, "Sorted Array")
        Else
            MessageBox.Show("Number of elements must be greater than 0.")
            Me.txtNumElements.Text = Nothing
        End If
    End Sub
    Sub GenerateArray(ByRef intArray() As Integer, ByVal intNumElements As Integer)
        Const intMAXNUMBER As Integer = 100
        ReDim intArray(intNumElements - 1)

        Randomize()
        Dim intIndex As Integer
        For intIndex = 0 To intArray.Length - 1
            intArray(intIndex) = Int(intMAXNUMBER * Rnd()) + 1
        Next intIndex
    End Sub
    Private Sub GenerateAndSearch(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSort.Click, btnGenerate.Click
        Static intDataArray(-1) As Integer
        Dim btnButtonClicked As Button = sender

        Select Case btnButtonClicked.Tag
            Case "Generate Array"
                Call GenerateSortedArray(intDataArray)

                Me.lstbox1.Items.Clear()
                Call DisplayData(intDataArray, Me.lstbox1, "Sorted array:")

            Case "Search Array"
                Dim intNumToFind As Integer = Val(Me.txtNumElements.Text)
                Dim intNumFoundIndex As Integer

                intNumFoundIndex = BinarySearch(intDataArray, intNumToFind)
                If intNumFoundIndex = -1 Then
                    Me.Label1.Text = "Number not found."
                Else
                    Me.Label1.Text = "Number found at index" & intNumFoundIndex
                End If
        End Select
    End Sub

    Sub GenerateSortedArray(ByRef intArray() As Integer)

        Const intNUMELEMENTS As Integer = 50
        Const intMAXNUMBER As Integer = 100
        ReDim intArray(intNUMELEMENTS - 1)

        Randomize()
        Dim intIndex As Integer
        For intIndex = 0 To intArray.Length - 1
            intArray(intIndex) = Int(intMAXNUMBER * Rnd()) + 1
        Next intIndex
        Call InsertionSort(intArray)
    End Sub

    Sub InsertionSort(ByRef intArray() As Integer)

        Dim intIndex, intPreviousIndex, intTempItem As Integer

        For intIndex = 1 To intArray.Length - 1
            intTempItem = intArray(intIndex)
            intPreviousIndex = intIndex - 1

            Do While intPreviousIndex > 0 And
                intArray(intPreviousIndex) > intTempItem
                intArray(intPreviousIndex + 1) = intArray(intPreviousIndex)
                intPreviousIndex = intPreviousIndex - 1
            Loop

            If intArray(intPreviousIndex) > intTempItem Then
                intArray(intPreviousIndex + 1) = intArray(intPreviousIndex)
                intArray(intPreviousIndex) = intTempItem
            Else
                intArray(intPreviousIndex + 1) = intTempItem
            End If
        Next intIndex
    End Sub
    Sub DisplayData(ByRef intArray() As Integer, ByRef lstbox1 As ListBox, ByVal strTitle As String)

        lstbox1.Items.Add(strTitle)
        Dim intIndex As Integer
        For intIndex = 0 To intArray.Length - 1
            lstbox1.Items.Add(intIndex & vbTab & intArray(intIndex))
        Next intIndex
    End Sub
    Sub SelectionSort(ByRef intArray() As Integer)
        Dim intLowItemIndex, intTemp, intIndex As Integer
        For intIndex = 0 To intArray.Length - 1
            intLowItemIndex = FindLowest(intArray, intIndex, intArray.Length - 1)
            intTemp = intArray(intIndex)
            intArray(intIndex) = intArray(intLowItemIndex)
            intArray(intLowItemIndex) = intTemp
        Next intIndex
    End Sub
    Function FindLowest(ByRef intArray() As Integer, ByVal intLow As Integer, ByVal intHigh As Integer) As Integer

        Dim intLowSoFar As Integer = intLow

        Dim intIndex As Integer
        For intIndex = intLow To intHigh
            If intArray(intIndex) < intArray(intLowSoFar) Then
                intLowSoFar = intIndex
            End If
        Next intIndex

        Return intLowSoFar

    End Function

    Function BinarySearch(ByRef intArray() As Integer, ByVal intNumToFind As Integer) As Integer
        Dim intHighIndex As Integer = intArray.Length - 1
        Dim intMidIndex As Integer
        Dim intLowIndex As Integer = 0
        Dim blnFound As Boolean = False

        Do While (Not blnFound) And (intLowIndex <= intHighIndex)
            'This should add high and low then divide by 2 not mid and low
            'use the integer division sign to return an integer result
            intMidIndex = (intHighIndex + intLowIndex) \ 2
            If intArray(intMidIndex) = intNumToFind Then
                blnFound = True
                'mid should become the new limit without any inc/decrement
            ElseIf intArray(intMidIndex) > intNumToFind Then
                intHighIndex = intMidIndex - 1
            Else
                intLowIndex = intMidIndex + 1
            End If
        Loop
        If blnFound Then
            Return intMidIndex
        Else
            Return -1
        End If
    End Function
    Private Sub NewData_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtNumToFind.TextChanged, btnGenerate.Click

        Me.lblFoundMessage.Text = Nothing

    End Sub
End Class

My problem: is when i run my application and click "btnGenerate" my items do not display and I cannot search for the number i want What the program is supposed to do: I enter any number and hit sort( that works) it then show a list of numbers corresponding with the amount I entered. Afterwards I want the program to be able to find one specific number (not working any ideas) 

Visual Studio 2013 Preview gets really laggy and slow

$
0
0

This weird problem came out of nowhere. I started VS2013, and it started to get really slow. Whenever I do something (write code, build, run etc.), VS gets really slow, hogging all CPU resources. If I let it be still, it'll get normal in about a minute. If I write some new code, however, the slowness returns.

I'm running Windows 8.1 Preview x64 with Visual Studio Ultimate 2013 Preview. I have no extensions installed besides the ones that come with VS. I tried resetting all settings and uninstalling and reinstalling VS, but it didn't help.

[Discussion] Interested in SaaS program creation in Visual Studio

$
0
0

I am interested to know what some of my options in creating a SaaS program?  I currently program in VB6 and VB.net.  I have created some Web Applications but I feel that migrating my Windows Desktop Application to a 100% pure Website application  will not be a good fit. 

Could someone possible explain to me what exactly the difference is between a ASP.net Web Application and a SaaS application? 

My current understanding tells me they are the same. They both are hosted on a web server and both run via the browser.

Thank you for any help or clarifications you all can provide.

SSIS file create file is corrupted on server but good from pc

$
0
0
Still in development so running from VS 2008 not from Integration Services.  The package extracts from SQL to create a file in FTP site.  When I run the package from my pc all is well. But, when I run on the server I get "_x003C_none_x003E_4989_x003C_none_x003E_" for the value in every column and row. The row count seems to match, so I would assume the extract sp is good, but not the file creation.  I'm wandering about an encoding difference between the server and the pc.

ReadProcessMemory to Text File

$
0
0
Hello. I'm new as you can tell.

I have two weeks to make a program for a stream. I am a commentator and the lead production manager over at iCCup.com. We run StarCraft 1 tournaments and alike.

We recently adopted a new custom game which is won by whichever team has the most points by 30 minutes. Very traditional to what sports are like. 

In order to make this custom game more observer friendly, I wanted to make a scoreboard and on top of that getting each players kills, deaths, flag captures and bonuses. 

Sadly, I'm only an organizer, am I not a programmer but that doesn't stop me from trying!

I am asking if people can look at my methodology to this and see if I am going in the right direction, thanks!

about two years ago. All this program did was it read data given off by StarCraft and displayed it into a GUI. I am trying to replicate that to a degree.

I want to use ReadProcessMemory to gather all of this information and have them constantly write to a specific text file

I haven't actually programmed anything yet, but at this point I can gain access to the data string so now I need to write that information to a textfile. You use the command FSstream to do this right?

The only things I have no idea what to do is the total scores for each team. There are four players, Red, Orange, Blue and Purple. There is HOT team and COLD team. Red and Orange are on HOT and the other two are on the COLD team. There must be a way to add the total scores of the players together to make an output right? Would you guys know how to do that?

Then I just need the files being updated like every .5 or 1 second. 

My goal is to have like 10 or so text file that are all being written to when this program is active.

xSplit, the program I stream with, has a functionality to read text files and display their content while constantly refreshing. 

If anyone could help me it would be much appreciated, hell, I'll even pay someone 50$ in amazon gift cards if they can write the program for me. I'll check this forum throughout the next couple of days thanks so much for helping when and where you can! 

If your interested in writing the program for the amazon gift card, feel free to add my Skype @mastercosgrove. Thanks!

visual studio 2012 and dynamic web template: How?

$
0
0

I've been using Expression Web for many years for some simple non-profit websites. I found out that Microsoft is now dropping EW as a product and pushing everyone to Visual Studio. Ok, I use VS, but have never used it for simple HTML based websites.

I see that VS has some great power for developing web applications for ASP.NET, but I am unable to find how to do a task as simple as "Create from Dynamic Template" for a website. I used DWT's for all of my sites as they are not ASP.NET and do not run on Microsoft servers.

DWT was a very simple, easy to use approach. How do I use DWT's in VS 2012 to create new pages? When I update a DWT in VS will it update the associated pages? Has MS dropped support for DWT's in VS?


visual studio 2010 : “ConfigurationGeneral” rule is missing from the project?

$
0
0

I want to compile a 64-bit application using Visual C++ 2010 professional, but I keep getting this error, and I have no idea what to do :

1>------Build started:Project:Test,Configuration:Debug x64 ------1>Error:The"ConfigurationGeneral" rule is missing from the project.

I've searched this problem on google, but all ideas didn't solve my problem.

Thank you!

I have windows 8.1 Pro 64bits if this information is needed, and I use visual studio 2010 c++ professional.

None of my previous applications works, so tried repairing visual studio professional, but it still doesn't work :\

Debuging Breakpoints ignored

$
0
0

My environment is as follows

 Windows 8.1

 Net Framework 4.5.1  IIS 8.5

 SQL Server 2012 and  VS2013  Everything is running 100% ok Except when I start debugging then start up (using LocalHost) the web site I am  working on in Chrome or in IE11 . As I move through the funvtionality VS2013 does not stop at any breakpoint. it carries on as if I had not started the debugging function. The breakpoints are NOT hollow, and they all listed in the IDE.

  When using VS2005 I did not have this problem.

  Please advise if there is anything that needs to be specially configured. debug is set to TRUE in IIS net compilation settings for the site in question.

From Visual Studio 2010 win7, to Visual studio 2013 win 8.1 - System.AccessViolationException

$
0
0

We are using the current project to help with our scanning needs:

http://www.codeproject.com/Articles/171666/Twain-for-WPF-Applications-Look-Ma-No-Handles

This works correctly in 2010 with Win7

We are wanting to move onto win 8.1 with Visual Studio 2013. Pleas help us resolve why the following error is happening:

The native api call is:

        [DllImport("twain_32.dll", EntryPoint = "#1")]
        public static extern TwainResult DsmIdentity([In, Out] Identity origin, IntPtr zeroPtr, DataGroup dg, DataArgumentType dat, Message msg, [In, Out] Identity idds);
Error is:

An unhandled exception of type 'System.AccessViolationException' occurred in TwainDotNet.dll


Watson

VS2013 running slow

$
0
0

Hi,

When I debug my Windows store Project in visual studio 2013 it gets really slow and visual studio is always not responding. I run it in a Windows8.1 machine.

The problem appeared this week, without making any changes in the Project or in the system.

When I run the Project without debugging it Works fine.

Any tip to solve the issue?

Thanks.

Visual Studio 2013 and SSIS Package Project integration

$
0
0

Hi,

I have installed Visual Studio 2013 Ultimate Edition and SQL Server 2012 Developer edition on a Windows 7 pro x64 machine. I have also installed Microsoft SQL Server Data Tools. Yet, I do not seem to have any Project templates for SSIS and not able to edit my SSIS Projects. Many websites states that BIDS is no longer included with SQL Server and that for ex. Visual Studio 2012 had an SSDT-BI addition package that does not exist for Visual Studio 2013. Some sources says this is included in Visual Studio 2013.

Have I missed something? I first installed Visual Studio 2013 and then SQL Server 2012. Should SQL Server 2012 be installed first and then Visual Studio 2013? Or is something else wrong with my installation?


SWEDEV


Error after updating NuGet package installer

$
0
0

I am getting an error on my OdatService app after downloading the new nugget package in visual studio 2012

Nu Get Packages are missing form this solution   Click Restore to restore form your online package sources.

When I click Restore

I get the error "An error occurred while trying to restore packages, Unable to find version 5.0.0 of package Microsoft.Data.Edm

How do correct this in VS 2012?

If I remove the Microsoft.Data.Edm from the references list in the project and add back the the Microsoft.Data.Edm 5.0 from reference manage list the reference is added but even after I add the ref it still shows the error in Vs2012. The Microsoft.Data.Edm  5.0.0 and the 5.2.0 are both available in the reference manage list.

Thanks for any help

Jon


Thank You Jon Stroh

Debugging Error in VS2008 SP1 running on Windows 7 64 bit

$
0
0

I am running windows 7 64 bit and I am trying to debugg one of my programs.  When I start the debugging in this program I get the error:

A fatal error has occurred and debugging needs to be terminated.  Form more details please see microsoft Help and Support Web Site.  HRESULT=0x80070005.  Error Code=0x0

I have looked around and it is claimed this is a memory issue, but I have plenty of memory.  I have another program of similar size that will debug without a problem.  A quick check on this program, it will debug on XP without a problem.  I have removed and installed VS2008, added SP1, did a repain install.  Nothing works. 

Is there a log I can look at for more details on what is failing?  How do I get to it?  Anyone know of a fix?

Thanks.


converting VB6 application to VS 2013

$
0
0

I have a VB 6 program that a business has used for years running on XP.  While it needs some minor enhancements, the major need is to upgrade it to Windows 7 (Windows 8 will come later).   The problem is that I cannot find any tools in VS 2013 to load and convert a VB 6 (VBP) projects into VS 2013.  I did see one posting that said the only tools to do this were in VS 2008, but I cannot find that download (just to use for conversion) anywhere.

Has anyone had this issue, and how was it resolved.   Is VS 2008 out there as a download, are there other tools?

Thanks in advance for everyone's help.

Jay 2573

Can't activate Visual Studio 2013 Professional

$
0
0

I have an MSDN Action Pack Development and Design subscription.

I have downloaded and installed Visual Studio Professional 2013, and it says the license is a "Trial extension (for evaluation purposes only)" and that the license will expire in 90 days.

From within Visual Studio I have signed in to my Microsoft account, but this doesn't result in the Visual Studio product being activated.

Is there some 'trick' to this to get Visual Studio registered / activated with an MSDN subscription?

I'm not sure this is the right forum, I don't post here usually.

Thankful for any help / advice.

Matthew Jones.

visual studio 2010 : Creating new project does nothing

$
0
0

I have visual studio 2010 professional c++ and I use window 8.1 pro.

Every time I try to create a project (any type of project), that I choose a name and a valid location for the solution, and that I click OK, closing the "new project" window, the "new project" window appear again, as if nothing happened. nothing happen apart from just project creation wizard shown again without any message.

In addition to not being able to create new projects, I can't even debug my old projects, as I have this error : "ConfigurationGeneral" rule is missing from the project.

I really have no idea what to do and am quite upset as I'm completely stuck. I tried reinstalling visual studio c++ professional 2010 but it didn't solve my problem.

Thank you for helping me find an answer to my problem :)

VS2008 ClickOnce Publishing now failing

$
0
0

All of the sudden ClickOnce publishing has stopped working in Visual Studio 2008.

I am getting this error....

   
    ERROR DETAILS
 Following errors were detected during this operation.
 * [1/15/2014 12:14:43 PM] System.ArgumentException
  - Value does not fall within the expected range.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
   at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
   at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
   at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
   at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
   at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
   at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

I have tried to upgrade the application to VS2012 and deploy there but am getting the same error.

Note system changes since this last worked.

    - Installed VS2012 Pro
    - Installed VS2013 RC
    - Upgraded IE 9 to IE10 and IE11, had no choice.

IE 11 says that it can not access the setup.exe file of the web site to execute the OneClick install.

    - Installed VS2013Express without removing VS2013RC
    - Misc. other MS updates.

    - Removed VS2010Express

Checked IIS (ver6) still set to serve executable files.


htm


How to create empty xml int solution explorer folder and how add xml element into that xml file

$
0
0

Hi , 

in my solution contain one user define folder , now i want create one empty xml file and i want add xml elements into that file....please help me 


Enugu Srinivasulu .NET Developer

Viewing all 21115 articles
Browse latest View live




Latest Images