Ajit Sheth's Q&A profile
.NET Development occasional "Cannot generate SSPI context"
Can any of you experts help me out on this error “System.Data.SqlClient.SqlException: Cannot generate SSPI context” The weird thing is that this only happens occasionally, about 20 times per day [1] Client side: 1. What is the connection string in you app or DSN (please specify) "server=mydbserver; database=mydatabase; uid=; pwd=; trusted_connection=yes; Max Pool Size=10; Connection Timeout=60; Packet Size=4096; ;" 2. If client fails to connect, what is the client error messages (please specify) Category: 300 Computer Name: KATTEFOT Event Code: 0 Record Number: 54 Source Name: AltInn.eGA Event T ...Show All
Visual Basic VB.net 2003 and api
i have a software and his api in the form of dll file this api contains all the neccessary function to make the same software with customarization. i am using vb.net 2003 how can i use these in functions [in dll file ] in my program. Thanks it is an unmanaged dll i want to use the functions inside that dll i have text file in which all the function description is given here i write one. int MtCreate(void); Socket object creation for the connection with the server. Returns handle of opened socket (internal socket number) in case of success. Or -1 in case of a mistake. There is a restriction on quantity of simultaneously existing socket ...Show All
Visual C++ Comparing files
I wondered how antivirus programs use the virus definitions, and what is a "virus definition" because as you know a simple antivirus program is about 15MB but it supports thousands of viruses. How is that accomplished ___Michael___ wrote: I wondered how antivirus programs use the virus definitions, and what is a "virus definition" because as you know a simple antivirus program is about 15MB but it supports thousands of viruses. How is that accomplished They isolate out the smallest signature that would uniquely identify a specific virus or viral strain. The signature is usually a series of bytes (machi ...Show All
Smart Device Development Porting WORKING MFC Application and depricated classes
I am trying rather unsuccessfully to port a WORKING eVC4 MFC application to VS2005 under the Mobile 5.0 SDK. It would appear that microsoft has dropped some classes from support in the latest version of MFC. The two that are hitting me the hardest right now are CSplitterWnd and CEditView though I assume the CDumpContext is going to come around to be pretty troublesome as well. Are there replacement classes that we are supposed to use, or are we supposed to rewrite MFC ourselves to make this work Has anyone successfully overcome these issues that would care to share some strategies Hi, It is true that some of the classes h ...Show All
Visual C# How do I listen for an event from a CustomizedTextBoxCell at the DataGridView level
Ok, After a lot of pain trying to override the default handling of EndEdit and BeginEdit in the DataGridView, I gave up and ended up creating my own custom text box cell class with its own ExtendedEndEdit, ExtendedBeginEdit, and ExtendedCancelEdit methods. Even went so far to implement an animated cursor and handling the keyboard events, arrow keys, etc. to move the cursor around and I am sure one of you will tell me a WAYYYY easier approach now that it's almost working. I have got this custom edit mode working, and cursor moves around, draws the text etc.. and I have also defined some custom events to fire to let others know of Editin ...Show All
Visual C++ Framework 2.0 pin_ptr problem after migration from 1.1
Hello, We have just done our migration to framework 2.0 and found that some of legacy C++ code does not work. After debug into the code, we found that the problem seems to be in the pin-ptr. Could someone tell us if the following migration changes on the pin pointer are correct and how to fix the problem Thanks a lot in advance! Li ==== Here is the legacy C++ code before the migration: Managed_function_one() { ArrayList __pin *pList = new ArrayList(); void **ppListMarshall = (void**)&pList; unmanaged_function(ppListMarshall); ...Show All
Visual Studio Express Editions I want obfuscation!
I have looked everywhere to see if I could find out if VS 2005 will have a better obuscator. Does anyone else know if the VS 2005 will even obfuscate at all (I'm adding the word obfuscating here for other searchers). I must disagree for it. If I'm right, at the moment, you can sell the software made also with Express, with GoLive license. The limitation of GoLive license is simple. You CANNOT redistribute .NET Framework 2.0 with your apps (or ClickOnce setup). The people will use your software, must download fro Microsoft website previus a registration. That's what I understand reading the VS2005 page . ...Show All
.NET Development Common Language RunTime Debugging Service
Hi, We have built application in C#. This exe works fine with small Reports. But failed and give following error message whenever we try to run a big reports/processes: ReportGenerator.exe Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x14 (1300) ...Show All
Windows Forms Stange Checkbox Behavior: Text disappears when AutoEllipsis should appear
I am experiencing strange Checkbox behavior in .NET v2.0 RTM. I have a standard Checkbox with Autosize = false, AutoEllipsis set to true. The Checkbox has an Anchor value set to Top, Left, and Right, so that when I stretch the Checkbox's parent form horizontally, the Checkbox's width increases. When I shrink the form, it decreases. I get to the point when shrinking the form where the Checkbox is resized so that it cannot display the entire contents of its Text value. This is when I expect to see the AutoEllipsis appear, as it does for Labels. Instead, the whole Text portion of the Checkbox disappears! I don't think this is the normal beha ...Show All
.NET Development Dynamically creating result columns & data
I have created a database that has a JOBS table, each row of the table has corresponding records in a JOB_TASKS table. Each job may have a different number of records in the JOB_TASKS table. I am trying to create a query that returns a few fields of the JOBS table, then searches the JOBS_TASKS table for all related records and uses those records to create additional column names back in the query and fill in the data in the correct columns. So if the JOBS table fields & data look like this: JOB_ID, NAME, DATE 5000 Bob 2006-01-21 And the JOBS_TASKS table fields & data look like this: JOB_TASK_ID, JOB_ID, TYPE, COMPLETED ...Show All
Visual Studio Express Editions Can't create new project
All right, no one answered the last post but I absolutely cannot find an answer ANYWHERE! I get that stupid syntax error when I try to create a new project, I've moved the temp folder to a path where there are no symbols and it still doesn't work. What a rip... I wanna learn! Anyone Have you done everything listed in this thread http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=132012&SiteID=1 ...Show All
Visual Studio copy the .dll of a solution
gday, I've got 2 solutions - solution1 - solution2 how can I copy the dll's of each solution with the relating projects into a single directory each - solutionDllDir1 - solutionDllDir2 thanks for any help Would it be possible to provide a concrete example of this Are you trying to do -Solution 1 Project 1 Project 2 -Solution 2 Project 3 Project 4 and get --Solution1Dir Project 1 and 2 dll's (and related dll's) --Solution2Dir Project 3 and 4 dll's (and related dll's) ...Show All
Visual Studio Tools for Office Access 2003 Developer Extensions with VSTO
Hi: I just got Visual Studio 2005 Tools for MS Office System, but couldn't find Access 2003 Developer Extensions on the CD. I am not sure if I am missing some components or making some mistake in installation. I would greatly appreciate any help in this regard. Thanks reez Hey Reez, VSTO 2005 does not have support for programming against Access. Please let me know if I misunderstand your questions. Thanks, Mei Liang ----------------------------------------------------------------------------------------------------- This posting is provided "AS IS" with no warranties, and confers ...Show All
Visual C# Interface code completion using C# vs.2003. . .
sometimes when I inherit an interface I get the tool tip asking me to hit tab to implement. But other times I dont. Sometimes when I dont get the tool tip I erase the inherited interface and replace and I get the tool tip. the behavior is erratic and makes no sense. Any Ideas is there a technique (key stroke combo) where if I didnt hit the tab I can click on the inherited interface, hit a key stroke and the implementation will be generated Blair - There isn't a way to do invoke this explicitly in 2003 but we've tried to tackle some of these issues with the new smart tag implementation in VS2005. Anson's explained this well her ...Show All
.NET Development Exception: "The underlying connection was closed: The connection was closed unexpectedly." (sometimes)
I have a windows app connecting to a webservice. In some situation(s) (haven't narrowed it down enough), I get the following exception: The underlying connection was closed: The connection was closed unexpectedly. When this exception is thrown, it is calling a method of a web reference. Now the situation that we experience this is on a laptop in the field that is using a WWAN connection in at least one location. It works fine in the lab at the office. Anyone have any ideas what could be causing this If you are transfering large messages or the operation on the service side is taking very long you m ...Show All
