Software Development Network Logo
  • SQL Server
  • Windows Forms
  • Audio and Video
  • Visual Studio
  • Visual Basic
  • Visual C++
  • VS Team System
  • IE Development
  • SharePoint Products
  • Visual FoxPro
  • Windows Vista
  • Smart Devicet
  • Game Technologies
  • Microsoft ISV
  • Visual C#

Software Development Network >> Scythen's Q&A profile

Scythen

Member List

ferlinco
Abdul Jackson
Jessica Alba
z. m. khan
Darathar
Drksrvnt
Buddhist
uncle hammy
Zokkan
Brandon Bloom
Trevor E Hilder
jumpKnot0
Michael Bird
Luis Simões
Joel Harris
nattylife
Handschuh
zenzai
jamesknudson
Sarwanan
Only Title

Scythen's Q&A profile

  • Visual Studio Team System Problem Unit Testing ASP.NET Application

    I'm trying to unit test my ASP.NET application. I have two problems: I need my application's HttpModules and HttpHandlers to have total control over the requests as my ASP.NET application is actually an Atom server. Effectively I have IIS forward all requests to ASP.NET; when I try to run my generated unit tests that have [HostType("ASP.NET")] attributes I get an error when accessing the VSEnterpriseHelper.axd file (information invalid ). I have code that does internal functions in the ASP.NET app that I need to test without actually invoking URLs at all. So I just removed the [HostType("ASP.NET")] and [UrlToTest("...")] attributes and ran the tests. Now the problem is I need a way to access my web.config from within the unit tes ...Show All

  • Software Development for Windows Vista How to call & pass the parameter to a workflow inside a workflow

    Hi I have a workflow inside which i m calling two another workflow simultaneously. The problem I am facing is that I am unable to pass the parameter to the child workflow and also unable to returning the parameter from the child process back to the parent process. Also if anybody have any link from where i can get the sample which can solve my problem. Plz tell me. Thanks Kanhaiya Kanhaiya, Your scenario requires a Request-Response Message Exchange Pattern, where the request sends an information about the sender (in your case, it is the Parent's  WorkflowInstanceID) to the Reply (child) Workflow. This pattern (known such as half-duplex communication) is based on the two One-Way connectivitie ...Show All

  • Visual C++ Editing Array of string values from CSV file

    I'm new at this so please bear with me. I have a CSV file that contains about 500 rows and 50 columns. I need to keep all the rows but only keep columns 1,2,3,4,6,7. I've opened the CSV and stored each row as a single element in a one-dimensional array. What I need to do now is search through those array elements and remove everything except column 1,2,3,4,6,7. Am I approaching this problem correctly If so, how do I proceed I'm stuck. I adapted your sample code somewhat. This should get you further. using namespace System; using namespace System::IO; using namespace System::Collections; using namespace System::Collections::Generic; int main() {     StreamReader^ reader = gcnew Strea ...Show All

  • Visual Studio Express Editions A retired newbe

    Ive followed MS try it to create a database. No problems Added a table also no problems and filled in some data. Ive opened a second project to connect to the first database and followed the Try it procedure. However when I update data and save it, it saves in my second project but does not update my database. My question is should it update my database and if not why do I need it. Balsoft see if this thread helps solve your problem... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=427451&SiteID=1 ...Show All

  • Visual Basic System.Data.SqlClient.ConnectionPool.CreateConnection

    Hi, I had make one Desktop application in VB.net, having 6 threads simultaneously running. And each thread connect to sql server and stored the value in DB at every one second. Now my problem is that when I start the application its working fine but after 20 to 30 minutes exception is occuring. Login failed for user 'sa'. Exception StackTrace: at System.Data.SqlClient.ConnectionPool.CreateConnection() at System.Data.SqlClient.ConnectionPool.PoolCreateRequest(Object state) can anybody help me - Hiren Do you actually need 6 threads running. If you are trying to store values in a database every second then I would think you could do this with a less complex solution than spinning out multiple threads. Also you want to c ...Show All

  • Visual Studio Express Editions combobox selectedindexchanged fires when filled with dataset

    I fill my unbound combobox using a dataset on form load. When the form loads it automatically fires the code in the combobox selectedindexchanged event without the user changing the selection. Obviously it is recognising the fill as part of the event. How can I get this code to fire only when combobox is changed manually Thanks Thanks Mahi. That sounds about right. I found the answer here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=778082&SiteID=1 ...Show All

  • .NET Development Hangs with OLEDB command-ExecuteScaler

    hi there I have an application which is using sybase as database.I connect to sybase through ASE oledb provider and connection is successful. But as i try to run a query on it(executescaler) the application hangs. Any solutions Please My code is : Dim con As OleDbConnection = New OleDbConnection("Data Source=SybaseRahul;User Id =Rahul;Password=Rahul;Provider=Sybase.ASEOLEDBProvider.2;") con.Open() Dim cmd As OleDbCommand = New OleDbCommand cmd.CommandType = CommandType.Text cmd.CommandText = "select Nm from EMP where JoinYr='2003'" cmd.Connection = con Dim result as string result=cmd.ExecuteScalar() (here it hangs) Thanks and Regards Rahul Kumar ...Show All

  • .NET Development Cryptic exception...A call to SSPI failed...

    Hi All, Been working this issue for a few days now, here's the deal. I have a bit of VB.NET code that uses an SslStream object to communicate with a Java application over SSL. The Java application uses JSSE to facilitate SSL. The VB.NET SslStream code works fine on any machine thus far except for one. On this particular machine, when the VB.NET code calls the AuthenticateAsClient method, the following exception is raised: System.Security.Authentication.AuthenticationException: {"A call to SSPI failed, see inner exception."} Data: {System.Collections.ListDictionaryInternal} HelpLink: Nothing InnerException: {"Invalid flags specified"} Message: "A call to SSPI failed, see inner exception." Source: "Sy ...Show All

  • Visual Studio How does assembly ref debugging work?

    I copied a dll I had created to another folder and then attached a reference to it (from a WinApp). If the dll build is Debug I am able to step into it and it even finds the original path of the source code. A Release config, obviously, cannot be stepped into. I opened up the dll in ildasm and I didn't see anything that helps VS2005 track this. How exactly does this happen Thanks for that pointer. I looked at the modules window, and yes, the symbols file was loaded. But it is from obj/Debug folder of the original project that contains the source for this assembly. I copied the dll alone to another folder. How does the debugger manage to figure where the original symbols file was created ...Show All

  • Visual Studio Express Editions Still Problems Muting

    i was givven this code a day or so ago to mute the computer .... i have tride and tride and tride but cannot get it to work Public Class Form2 Private Sub PictureBox1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click My .Computer.Keyboard.SendKeys(Keys.Volumemute) End Sub this is the link to the Orig post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=531900&SiteID=1&mode=1 See my answer on this thread ... ...Show All

  • Visual C# does managed code take precedence over native code?

    i wrote a small demo C app that sends a message and a struct to a managed C++ dll. this C++ dll marshalls over the message and struct to a managed struct and sends it to a C# assembly that just prints out the values of the struct (to see that everything came over ok) and sends back a string reply, it also prints some debug text to console. before the call to the C++ dll, i make a few calls to printf to print to console. when it runs, it does the C# assembly debug statements before the native C printf statements. other than that everything looks ok. does managed code take any sort of precedence over native code the whole thing is a proof of concept. so the quick and dirty: ok so i have a C# assembly, it ...Show All

  • .NET Development DISPLAYING TABLES OF AN ACCESS DATABASE THROUGH C#

    Hi everyone I am trying to display all the tables in a MS access database through a application im developing in c#. However im receiving errors. Here is part of my code. This method executes a SQL query and returns a OdbcDataReader object. private OdbcDataReader GetQueryReader( string query) { OdbcDataReader reader = null ; OdbcCommand command = new OdbcCommand(query, serverConnection); Open(); try { reader = command.ExecuteReader(); } catch (NullReferenceException e) { Utility.CheckTool.ShowMsg("Error in getting the reader, null exception error" ); reader.Close(); } catch (OdbcException e) { Utility.CheckTool.ShowMsg("Error in getting the ...Show All

  • Gadgets location.reload(true) kills the System object?

    I stuck a reload button in my gadget so I could easily refresh it to see the effects of changing something in the code. The onclick handler for the button is onclick="window.location.reload(true)". This does in fact reload the HTML and JS. But it seems to also kill the System object hierarchy. The code "Display.innerText = System.Gadget.name;" works the first time the gadget is added to the sidebar. Then I click my reload button and I get an error trying to access the System object. If I wrap the call in a try/catch and look at the error, it says "'System' is undefined". If I then close the gadget and re-add it to the sidebar, the System object comes back. I'm running the final version of Vista Ultimate ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. winnt.h errors?

     I have just linked Direct X 9 to the new of Microsoft Visual Studio 2005 Beta 2. Trying to compile a program i know that works under Microsoft Visual C++ 6.0 gives me the following errors: c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C2146: syntax error : missing ';' before identifier 'PVOID64' c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(222) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(5932) : error C2146: syntax error : missing ';' before identifier 'Buffer' c:\program files\microsoft visual studio 8\vc\platformsdk\include ...Show All

  • .NET Development Should I reinstall?

    I am building a simple prototype using a complete install of Visual Studio Team Edition, connecting to an Oracle database using the Ole DB provider for Oracle. When I add a typed dataset via the add data source command, the added dataset (although it is correct in terms of class definitions etc) does not display at all in the designer. Instead an empty hole appears and when you click on it (or try to add datatables, relations, etc) it says 'exception thrown by the target of an invocation'. Tried copying the project and testing it on a different machine: same result. Any way of determining if the designer is malfunctioning, or does it not work with the Ole DB provider, any general help Install was done via Novell, btw. ...Show All

©2008 Software Development Network