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

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

narend

Member List

Will Merydith
Mike Barry
theregit
Ricky Tan - MSFT
Marius F
Sarath.
Coryc
akin_l
RussP
gmoniey
Worf
Bodylojohn
Jademobile
hieu.nguyen
snowmoon
bluexx
Kamil Janiszewski
Julien Couvreur
sna19
maxascent
Only Title

narend's Q&A profile

  • SQL Server Problem with SQL Server synchronization with a SQL Mobile created on PDA

    Hi all, I'm writing a C# program (I use Visual Studio 2005 Professional) which interfaces with a SQL Server 2005 database. I would like to create a SQL Server 2005 Mobile database in my PDA, and then synchronize it to the main SQL Server database on my PC. To this purpose I have followed the MSDN library procedure "Creation of an application for mobile devices with SQL Server Mobile". This procedure has 2 problems: 1) It explains how to synchronize the main SQL Server database with a SQL Server Mobile database created in C: (not in a PDA or in another PC). 2) Even if I followed step by step the MSDN library procedure, it failed at the moment of the subscription creation, giving the following error: 9045: Initializing SQL ...Show All

  • SQL Server Error opening reports on web browser

    Hi All i am very new to using sql reporting services. After installation of reporting services and configuration i get this error on the browser. Can anyone highlight the problem in the configuration my system is configured as Windows 2003 SP1 server MSSQL 2005 sp1 Server Error in '/Reports' Application. -------------------------------------------------------------------------------- The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it orig ...Show All

  • Windows Forms How can I be notified of message loop start?

    Hello. I have a custom ApplicationContext app, and I need to execute startup code once the application message loop has started (after ApplicationContext constructor). Is there any way to be notified of the message loop start, or any way to post a message from the ApplicationContext constructor, so that is gets executed by the message loop   Thanks. How about your main form's Load event OnHandleCreated() runs even earlier, right after the form receives the WM_CREATE message. Beware that it might run more than once. ...Show All

  • Visual Studio Team System Ordered tests - will the individual tests run?

    In some of my unit tests I have to count on execution order which kind of defeats the whole idea but I have no choice. I am thinking about creating an ordered test for those tests which are rely on particular execution order. Will it exclude those tests from the normal test run Hi, It depends on what tests you select before starting the run. If you're running from the UI, select only the ordered test if you don't want to run the tests twice. If you are going to run from the commandline, specify to run the ordered test; if you just specify the dll, then you are going to run everything, including tests outside the ordered test and the ordered tests as well (which appears to be running the tests twice). ...Show All

  • .NET Development Determine the name of the method being called

    Is there anything in the .net remoting infrastructrue that would allow me to be able detemine what method name was being called for all objects running on a server - basically we have requirement to log when specific methods on the appserver are executed (driven by a database) and I want to see if we can do this without having to modify every one of our business object methods to call some sort of helper method. Hi mark, You can implement a custom IServerChannelSink which will sit right on top of your formatter. Then in its ProcessMessage() method you can cast the IMessage coming in as IMethodMessage and access the MethodName property off it. This will give you the method name that the message is intended to go to. ...Show All

  • Visual Studio Team System Load test response time identical with or w/o gzip compression

    We have two web servers: one is configured with gzip compression while the other one is not. I'd expect that when we run the load test against the web server w/gzip compression, the response time would be faster. But our testing shows both servers have similar response time. Any idea why Was this issue reproduced and/or fixed for VSTS 2008 RTM There is talk about experimenting with HTTP compression, and I've been asked whether VSTS can test it. Thanks, ~Alan ...Show All

  • .NET Development Generic performance... benefit?

    Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All

  • Visual C# How to declare fixed-size arrays?

    I need to declare fixed size array within structure. Like this was in C++ struct SomeStruct { int SensorReaderID; .... float SensorValues[10]; // presume I have 10 sensors }; Is it possible Or I should use 10 variables like this: struct SomeStruct { int SensorReaderID; .... // presume I have 10 sensors float SensorValue0; float SensorValue1; float SensorValue2; .... float SensorValue8; float SensorValue9; }; Not sure if this helps but actually there is a way you can have a fixed size array in a structure. The problem with it is that it works only in an unsafe context: [StructLayout(LayoutKind.Sequential)] unsafe struct Test ...Show All

  • Smart Device Development Unexpected behavior of the designer regarding InputPanel

    Hello, I had posted this question some months ago, but I did not get any replies so I' II post it once more. I have a custom control for a smart device, which has a public property named SIP of type InputPanel. If I drop on my form an InputPanel (say inputPanel1) and my control, the dropdown list for my property should show "(none)" and "inputPanel1". This is what happened on VS 2003. But with VS2005 only "(none)" is shown and the only way to set the property is programmatically. Note that with other types (for example MainMenu) this doesn't happen and all work as expected. Should I do something more or is it a bug Kostas ...Show All

  • Visual Studio Unspecified Error since installing VS 2005 SP1

    Since installing VS 2005 SP1 my Pending Checkins view never shows anything even while Solution Explorer is indicating some files checked out to me. When attempting to use the Check In button in the Pending Checkins window and when right clicking the Solution file in Solution Explorer and selecting "Checkin . . ." I get the following error popup in a dialog: ------------------------ Microsoft Visual Studio Unexpected error encountered. It is recommended that you restart the application as soon as possible. Error: Unspecified error File: vsee\pkgs\vssprovider\getfilesselectedforcommand.cpp Line number:1200 ------------------------ Would be really convenient to get Pending Checkins working again any and al ...Show All

  • SQL Server Large Text

    I need to run a usp (user defined stored procedure) with a very large input text variable probably 10,000-20,000 characters. what variable can I use thanks in advance Hi, If you are using sql server 2000 then use 'text' datatype, if you are using sql server 2005 then you can use 'varchar(max)' as Arnie Rowland suggested. Ravi ...Show All

  • Visual Studio Team System Make ALLOWEDVALUES more dynamic?

    Hi, Is there any way to make the list of ALLOWEDVALUES more dynamic so that users can change it without having to export the work item XML file and then changing the values of the LISTITEM Thanks, Maggie A user does not need to be a Project Administrator to run glimport. Any user known to the system can run it. Thanks, Amit ...Show All

  • Software Development for Windows Vista Self-updating application

    I'm hoping someone here can give me ideas, or at least point me in the right direction. Our application (under XP) is capable of downloading and installing updates to itself. An XML manifest is stored on the server, which outlines all the updated files. However, since the format of this file might need to change over time, the application itself isn't qualified to read this file. Instead, it uses a DLL. The DLL is always up to date (i.e. able to read the file manifest) because the application first downloads the latest version of the DLL from the server. It then invokes code in the DLL, which processes the manifest, creates a list of files that need to actually be downloaded, and returns control to the application. Next, ...Show All

  • Visual C# Help - folder's property dll

    Hi.. In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc.. Is it possible to get the properties dll in c# please help Thanks for the reply.. Before Continuing, Let me wish all Belated Christmas.. I would like to create an application in which it has the folder property items. I would like to have the Type,location,size,contains,created that we see in properties in my own application. How to create such an application please help ...Show All

  • Visual C# How to test for values in a DataRow

    Hi all. One small problem....why does not this work for (int i = 0; i < datasetCustomer.Tables["Customer"].Rows.Count;i++) { DataRow dr = datasetCustomer.Tables["Customer"].Rows ; if (dr["customerNumber"] <= 0) { dr["customerNumber"] == GetNewCustomerNumber(); } } The problem is the if statement. Error says: "Error 1 Operator '<=' cannot be applied to operands of type 'object' and 'int'" Anyone Thanks Lars E Values in DataRows are of type "object"; if you want to treat them as another value type, you have to cast them: if((int)dr["CustomerNumber"] <= 0) You should probably also be checking that it's not null in that test, otherwise the (int) cast will throw an exception: ...Show All

©2008 Software Development Network