R.Tutus's Q&A profile
SQL Server Missing ASP.NET DLL
When I log in to Windows (XP Pro SP2), I get the following message displayed in the Application Event Viewer. " The ASP.NET DLL (Path: C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607\aspnet_isapi.dll) (Version:2.0.40607.0) is missing" The message is quite correct in its assertion that the file is not where it says it is. There is a copy of the noted DLL however, in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 and in C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 Why is the Report Server looking for that particular version Why can't it point at the later version Andrew, The directory does not appear in the Path environment variable (either User or System). The Reporting Services ...Show All
Windows Forms Incremental autocomplete from database
Hi All, I'm trying to find a way to set up an autocomplete in an incremental fashion - I can't pre-populate the data due to the size of the data (~50,000 rows and growing). The process would be user types, timer is set to fire after 0.5 second of inactivity to query database and populate autocomplete, user refines entry via autocomplete, query again and so on until a complete match is made. Is there anything out there that can handle this Or what path should I go down to start rolling my own Any help is most appreciated. Thanks in advance, Scott thats not good. 0.5 seconds in between to query the database...querying the database is expensive - at this rate the app would hang (or appears ...Show All
Visual C# How do I programmatically shutdown the computer?
How do I programmatically shutdown the computer after waiting for 3 seconds and use a timer to countdown ahmedilyas wrote: why would it not help on Windows Server Editions of course it will work, if you have permission to shut down the machine, even if its the local machine. Sorry Ilyas, Actually I have only Windows XP to test it right now. I tried to do the same usig shutdown exe on Windows Server 2000 at my work about 1 year back but there was some issue. May be I'm wrong so if I'm so I beg your pardon! You may be right if you have tested it on Windows Server... Best Regards, Rizwan Ahmed ...Show All
.NET Development Working with GSM/GPRS-modem
Hi all ! I have GSM/GPRS-modem (Siemens MC35i) which driver is installed on Windows XP. When I`m trying to request for signal strength of this modem (.Net 2.0) it doesn`t response to my program anything. If modem driver not installed in Windows then It`s all ok. I can do anything with this modem. SerialPort modem = new SerialPort("COM1"); modem.Open(); modem.Write("AT\r"); // Status request Thread.Sleep(200); string answer = modem.ReadExisting(); .... Driver cannot be uninstalled. But I need to check is modem OK and signal strength of my GSM-network. How I can do it You probably need to set the baudrate and turn on the DTR and RTS handshake signals. Before you tr ...Show All
SQL Server Problem with asp page and ODBC on Windows 2003 SR 64 Bits
I have an Application developed on ASP, I got a few new servers 64bits, I installed microsoft WIN 2003 SR. When I get in into the web site I receive this errors: Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified /ConnectToDatabase.asp , line 17 I made some obvios checks, I checked that the ODBC really exists and we move the IIS 6.0 to run in 32bits mode as I found in some page. Thanks you. Ahmed Hi, could you please post your connection string right in here We can’t see if you use a DSN or a DSNless connection. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
SQL Server Diplaying information from database in a header
Hi, Is there any way to out put the database field values in a header other than storing in body and reference the body fields as report items I am using reporting services 2000. Thanks, Siri ...Show All
Visual Studio Express Editions Questions about TreeView Component.
Hello, In my programs, there are many situations where a TreeView component is needed or at least wanted. But the inconvenience that I get a stop using the TreeView component is not "live preview"... What I mean by "live preview" is the following: For instance, when you use a tab container, then the tab get's each "page" that I can just drag and drop controls and text and so forth. But a tree container is just a white box with just nodes. And it doens't have each "page" for the node for me to make the "page" with controls and text and so forth. Is it possible for me to use the TreeView like a tab container then I would love to use treeview container. If not, Is it possible to ma ...Show All
SQL Server backup with usb tape
When i ll try to setup a new database maintenance plan, in the window database backup plan i put my usb tape device but sql can no t find this usb tape as backup location . W hat can i do for this Can Sql recognise usb device to make from agent a backup ...Show All
Visual C++ error C2664: 'gethostbyname' : cannot convert parameter 1 from 'class CString' to 'const char *'
when I use the following code in the unicode project of vc, it has the following error: error C2664: 'gethostbyname' : cannot convert parameter 1 from 'class CString' to 'const char *' Can you tell me how to do this data conversion and make this statement workable Thanks you very much. lpHost = gethostbyname(pstrHost); Update: as Viorel has indicated below, the following is probably not relevant. You will definitely get that error whether the string is Unicode or not. So try the following and please refer to the documentation of "CString::GetBuffer". LPTSTR p = pstrHost.GetBuffer( 10 ); lpHost = gethostbyname(p); pstrHost.ReleaseBuffer( ); If that works, then the following should also work, but please refer to ...Show All
Visual C++ How to pack enum to 1 byte
I am converting an older program from Visual Age C++ to Visual C++ 6.0 and the code uses several different structures to pass data via TCP/IP to different instruments we develop. The IBM compiler uses pragma pack(1) to align everything on 1 byte boundaries (including the enums that are defined). One in particular has values from (-2) to 13 and so should fit in a single signed byte field. I've tried aligning the structure by bit fields but that only seemed to work for the first field. The code looks something like: #pragma pack (1) enum MY_TYPE { FIRST = -2, SECOND = -1, THIRD = 0, . . . THIRTEENTH } typedef struct MY_STRUCT { MY_TYPE m_type; short position; char id[MAX_ID_SIZE+1 ...Show All
Visual Studio Express Editions Multiple fonts in a richtext box
How do I change the font of only specific words in a richtextbox, for example: Suposed that there are two text boxes called: Box1 and Box2, and a Richtext box called RBox RBox.text = (box1.text + Box2.text) And I want to display the box1.text in bold, and the box2.text in Italics. How do I do this Eslucafe, According to your problem description, I guess you may be not familiar with the RechTextBox bery well. I suggest you to read the intruduction on this class in MSDN followed as : http://msdn2.microsoft.com/en-us/library/system.windows.forms.richtextbox.aspx Then read the sample code and hope that can help you: Public Sub CreateMyRichTextBox() Dim richTextBox1 As New RichTextBo ...Show All
Windows Forms Status pop-up when cpu is being used.
Hello, I am programming a windows form application. It needs to make long time calls to sql server. I dont want the user to be bored or think that the program is not responding. Before the call to sql server I display a form called "working" in which there is a marquee progress bar and a simple label. I call the method working.Show() to display it. The problem i have is that the components, progress bar and label, cannot be seen in the pop up, i mean, it is like if the program doesn't load the components in the form popup, making it really ugly( there are non-colored rectangles in the place of both components). It starts to make the call to sql server and when it finishes i call the close method to close the form. Does anyone know whats wr ...Show All
Visual Basic VB6 to VB.NET - Fixed length strings in structure
I have an older vb app that creates a configuration structure with fixed length string arrays. This structure is saved directly to disk and each file has exactly the same size and format. VB.NET doesn't support fixed length strings or arrays. How can I dimension my structure to emulate this and thus load the structure from pre-existing stored versions as the VB6 version does. FileOpen(1, File, OpenMode.Random, , , Len(c)) How can I recreate this in the structure to be a fixed length structure so I can load and save exisitng structure data How do I recreate the functionallity of this statement Dim Param(7) As String * 8 ' Can't use <VBFixedString(64),System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServic ...Show All
Visual C# How can I get the length of a remote file??
How can I get the length of a remote file For example, the url is www.abc.com/abc.rar , I want to know the length(bytes) of the file abc.rar, how to do that You would say just download it, clearly I don't like that way. Any help will be appreciated! WebClient wc = new WebClient(); Stream stm = wc.OpenRead( www.abc.com/abc.rar ); Console.WriteLine("stm.length"); This code segment didn't work and throwed an exception. ...Show All
.NET Development Embed author with code files
I created a tool that creates the Business and Data layer based on the database design. And a few co-workers want to use it. I don't mind it, but I want my name in the code files so that if anyone else sees the code they will see my name as the creator. Kinda like a self-gratification thing and advertisement for job offers. I'm using CodeDOM to create these files. Is there a way I can set my name to appear somehow, that they cannot delete it Or maybe some pattern I should employ on the creation. Maybe requiring a DLL instantiation by the IDE or something Anyone have any ideas, suggestions, thoughts, etc... Thanks, Nick Well I kinda wanted my name embedded in the code ...Show All
