RST packet / TCP session.

TheMSsForum.com: The Microsoft Software Forum

  • The MSS Forum ‹ Framework
    • Archive
      • Biz
      • MCSE
      • CRM
      • Drivers
      • Framework
      • ADO
      • ASP
      • Compact
      • Forms
      • Dotnet
      • C#
      • VB
      • FontpageGen
      • Excel
      • WorkSheet
      • Exchange
      • Setup
      • Fox
      • Fontpage
      • ASP
      • IIS
      • Entourage
      • Money
      • Messanger
      • PocketPC
      • Powerpoint
      • Project
      • Publisher
      • Excel
      • VB
      • Security
      • Portal
      • Services
      • SQLServerDev
      • SVCS
      • SQLServer
      • VB
      • VC
      • MFC
      • ExcelGen
    • Previous
      • 1
        • intrinsic objects of .net What are intrinsic objects of .net is used in the application? thx Tag: RST packet / TCP session. Tag: 96204
      • 2
        • dataview schema How do you read the schema of a dataview? I have a could of SQL stored procedures that are getting read into a dataview and I need to know what the strucutres are so they can be displayed to the screen properly. Thanks. -Rob T. Tag: RST packet / TCP session. Tag: 96202
      • 3
        • Reflection: accessing member of given object Hi, I have trouble finding info on the following: I have an object myDataAccessObject that contains heaps of SQLDataAdapters and derivatives thereof. These are auto-generated for me by VS. I want to be able to call the update-method on all of these (in effect doing a database-dump) with myDataSet as input (since that's where my data is). now I *could* put all the adapters into a list and loop through them, calling the update method, but that's not pretty and I will have to manage that list as the DB expands so I don't want to do that. basicly I want to: -get all sqladapters from myObject -call "Update" with parameter myDataSet on all of them that shouldn't be so hard, yet I am stuck and am finding no docs on it. yours Andreas Knudsen Tag: RST packet / TCP session. Tag: 96195
      • 4
        • Please help me to create DLL in Visual Basic .net 2003 This is a multi-part message in MIME format. ------=_NextPart_000_0047_01C554A7.538146E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am new in Visual Basic .net. I did not find any option to create DLL = or ActiveX module. Please help me to create. Thanks in Advance, Ajith ------=_NextPart_000_0047_01C554A7.538146E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3DArial color=3D#0000ff size=3D2></FONT><FONT = face=3DArial color=3D#0000ff=20 size=3D2> <DIV>Hi,</DIV> <DIV>&nbsp;</DIV> <DIV>&nbsp;I am new in Visual Basic .net. I did not find any option to = create=20 DLL or ActiveX module. Please help me to create.</DIV> <DIV>&nbsp;</DIV> <DIV>Thanks in Advance,</DIV> <DIV>&nbsp;</DIV> <DIV>Ajith</DIV></FONT></DIV></BODY></HTML> ------=_NextPart_000_0047_01C554A7.538146E0-- Tag: RST packet / TCP session. Tag: 96192
      • 5
        • C#, Getting list of logged on Terminal Service Users Hello, I am searching for a way to retrieve the list of currently logged on terminal server users. Not only do I have to know who is currently using a remote desktop session, but also need to prevent other users from logging in. I found a way of getting a list of running processes and link them to the owning users, but there must be a better way... for example, Terminal Server brings a tool called query.exe which shows the users currently logged in. How did they do this? Is there a simple WMI call available for achieving this? I am looking forward to your suggestions. Tag: RST packet / TCP session. Tag: 96191
      • 6
        • Go Live I am looking to distribute my .Net 2.0 app to a couple of computers. I have signed the Go Live liscense and can do the same for each computer that needs the app. But I haven't found anywhere to dowload .Net 2.0. Even after I signed the liscnense. I don't want to install VS 2005 Beta 2 on each computer, but I can't find any other way to install it. Please help... Nick Tag: RST packet / TCP session. Tag: 96187
      • 7
        • Translate accented characters Is there anything in the framework which will help translate accented characters in strings to their standard counterparts? eg. "Gráda" to "Grada" Tag: RST packet / TCP session. Tag: 96184
      • 8
        • C# and VB.Net keyword Hi! VB.Net has the "static" keyword who allow me to declare a local variable static like in C. Is there any equivalence with C# ? Thanks for your help. Joël Tag: RST packet / TCP session. Tag: 96183
      • 9
        • Implications of using typeFilterLevel=Full after strong naming assemblies Hi, Env: Windows 2003, VS 2003, .Net 1.1 We just started strong naming our assemblies and ran into a .Net Security Exception when remoting between ASP.Net and our Windows service. The remoting call that failed with this exception returns an array of DataRows (from a strongly typed DataSet) from the service to ASP.Net. All our assemblies (apart from Microsft.Security.SSPI sink) are private. The exception is: Security Exception Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Request failed. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [SecurityException: Request failed.] Anyway, we solved this by setting the 'typeFilterLevel' to 'Full' in our server config file: <formatter ref="binary" typeFilterLevel="Full" /> After some research I found that people have mentioned security and possible performance issues with setting this level to 'Full', so I've a few questions on the implications of opening this up: 1) Why does strong naming a private assembly cause this problem, when an unnamed private assembly works fine? 2) I doubt it, but are there any performance issues? 3) The security issues appear to be from spoofing and code injection: http://blogs.msdn.com/manishg/archive/2004/10/27/248841.aspx Can you please confirm that these security issues existed before we strong named our assemblies and had to set the typeFilterLevel to full? This doesn't mean we'll ignore the vulnerabilities (we already authenticate callers), but we're just trying to understand the impact of this change. Thanks very much, Stuart PS. This is reposted from 'microsoft.public.dotnet.security' as I didn't realise that one wasn't a managed group. Tag: RST packet / TCP session. Tag: 96178
      • 10
        • unable to get message from exception I am having a peculiar problem. i have a servicedcomponent class1.method1 with a method (more than 18 parameters). i am calling this from another serviced component called class2.method. When an exception is thrown from class1.method1, the Exception.Message is not visible. when class1.method1 has <= 18 parameter the Exception.Message is visible. what could be the problem. any idea. thanks niranjan Tag: RST packet / TCP session. Tag: 96176
      • 11
        • different between debug and release? Does anyone know what is different between debug and release? thx Tag: RST packet / TCP session. Tag: 96173
      • 12
        • C# Timer control Hi, I have a timer control which writes to a file every 5 seconds but the application closes down before it gets to the second firing of the timer. How can i get the application to stay alive until the next timer interval comes around? Thanks *** Sent via Developersdex http://www.developersdex.com *** Tag: RST packet / TCP session. Tag: 96168
      • 13
        • InvokeRequired and CreateGraphics Hi, Here is what the documentation of InvokeRequired says : "In addition to the InvokeRequired property, there are four methods on a control that are safe to call from any thread: Invoke, BeginInvoke, EndInvoke and CreateGraphics. For all other method calls, you should use one of these invoke methods when calling from a different thread. " Could someone explain me why a call to CreateGraphics is "safe" ? One of my backgroud threads calls CreateGraphics on a control but when this control is destroyed (ie the application is closed), this thread is blocked on the call to CreateGraphics and isn't aborted. I don't understand why a call to Invoke isn't required in this case. Thanks Fabien Tag: RST packet / TCP session. Tag: 96167
      • 14
        • Saving the state of UI Hi, User can adjust the size of columns of a table or the position of splitter in UI. We want these adjustments to be remembered when we restart the application. Currently, we are saving these adjustments by the user in an XML and saving that XML. We read the XML upon restart and make calls to set the adjustments. This approach becomes difficult as we add more controls and more settings can be made by the user. What other techniques can be use to save (perhaps automatically) the STATE OF UI? As in Java, can we use Serialization of UI to save its state [Java's Swings control are serializable while in .Net, Form and all the controls are not serializable]? Any pointers to articles on various approaches to SAVING THE STATE OF THE ADJUSTMENTS made by the user will be greatly appreciated. Thanks in Advance, Regards, Mahesh Tag: RST packet / TCP session. Tag: 96162
      • 15
        • Socket and multi-threading Hi, Socket class documentation says that it is not thread safe. We understand that if do simultaneous sends on ONE socket then it will be a problem (or simultaneous receive). Can we create TWO threads on OUR OWN such that one will do SEND and one will do RECEIVE using the SAME socket reference? This means that two threads WILL BE in the same SOCKET object - one doing receive and one doing send. We know we can use asynchronous calls on the socket to achieve this but whether we can do this using our own threads. Any pointers to official documentation that shows that this is permissible? Thanks in advance, Regards, Mahesh Tag: RST packet / TCP session. Tag: 96161
      • 16
        • Datagrid Load data Problem Can i user dataset partially load the data to datagrid depends on the scoll bar moving? seems like power builder have this function of the data browser/windwows (i forgot), but it can partially load data to grid. So can someone know the method in VB.Net? Tag: RST packet / TCP session. Tag: 96158
      • 17
        • DataGrid Load Data Problem Can i user dataset partially load the data to datagrid depends on the scoll bar moving? seems like power builder have this function of the data browser/windwows (i forgot), but it can partially load data to grid. So can someone know the method in VB.Net? Tag: RST packet / TCP session. Tag: 96157
      • 18
        • Forms, multi-threading, Chats We are building Chat like application using Forms and as a result our programming is becoming complicated to display messages received on different threads in the chat window (due to STA requirements of Forms). Is there a way to build Chat like application WITHOUT using FORM, so that one can use free threading model (The link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcondevelopingmultithreadedwindowsformscontrol.asp has statement "Outside Windows Forms, classes in the .NET Framework use the free threading model. For information about threading in the .NET Framework, see Threading."). IS THERE ANY WAY TO BUILD CHAT-like application without having to do complicated programming to satisfy STA requirements)? Thanks in Advance, Regards, Mahesh Tag: RST packet / TCP session. Tag: 96155
      • 19
        • Newbie - Help with VB.Net Install! I am a single user with XP Home Ed and have installed VB.Net onto PC. The installation appears to have been OK but I have a query. One of the new menu items is: Microsoft .Net Framework SDK v1.1 - which has the sub menu items: Documentation Overview Samples and QuickStart Tutorials Tools Now going into Samples and QuickStart Tutorials reults in a web page that has an article about downloading & installing MSDE but on reading through this it appears that MSDE needs IIS & ASP which does not come with XP Home Ed., so my question is can .Net Framework SDK be used on XP Home Ed Tag: RST packet / TCP session. Tag: 96151
      • 20
        • Format numbers e.g. 1 -> 1st, 12 -> 12th, 23 ->23rd Hi Is there anything in the framework that will format a number's 'order' suffix - to make it the Nth Regards Lee Tag: RST packet / TCP session. Tag: 96149
      • 21
        • Simple string encryption (solution) This message includes a solution for encrypting and encoding a string into a "safe" character string that you can read or pass in ASP.NET querystrings, and then decode and decrypt it back to its original form. If you find it useful, please let me know. I had an issue with a web site that I was working on where I needed to pass around a moniker in my querystring. While the database itself performed relevant security checks, I didn't want to expose this to my users. The problem I had is that I just wanted to encrypt/decrypt a string without having to know or understand anything about the cryptography namespace. I also wanted to be able to pass this value around in my QueryString. This code takes the unmodified symmetric encryption example code that Lion Shi posted a while back on Usenet, converts the resultant bytes to hex and then performs a simple substitution for aesthetics. If you plan to use this for your own purposes, and since I've posted this publicly, I recommend you change the values of the two variables having the value of "password" (they don't have to match, but if I remember what I've read on DES, I believe they need to be a multiple of 8 characters in length). The code that Lion Shi originally posted is located here: http://groups-beta.google.com/group/microsoft.public.dotnet.languages.csharp/msg/eb7712e9e5cc1045?hl=en This is the modified version that encodes the resultant byte arrays into strings. It seems to work on the three strings that I've tested it with, but I make no guarantees on its security or reliability. Usage Example: string s = "Raw Text String"; Response.Write(s); s = Encryption.Encode(s); Response.Write(s); s = Encryption.Decode(s); Response.Write(s); Source: using System; using System.Collections; using System.IO; using System.Security; using System.Security.Cryptography; using System.Text; public class Encryption { private Encryption(){} static byte[] m_bDESKey = ASCIIEncoding.ASCII.GetBytes("password"); static byte[] m_bDESIV = ASCIIEncoding.ASCII.GetBytes("password"); static char[] hex = "0123456789ABCDEF".ToCharArray(); static char[] munge = "ZXCVASDFQWERPOIU".ToCharArray(); public static string Encode(string text) { byte[] data = DesEncrypt(ASCIIEncoding.ASCII.GetBytes(text)); char[] chars = BitConverter.ToString(data).ToCharArray(); ArrayList al = new ArrayList(); for (int i = 0; i < chars.Length; i++) { if ((i + 1) % 3 == 0) continue; //BitConverter.ToString(...) returns data in the format XX-XX-XX -- this skips the dashes. al.Add(munge[Array.IndexOf(hex, chars[i])]); } return new string((char[])al.ToArray(typeof(char))); } public static string Decode(string text) { char[] chars = text.ToCharArray(); ArrayList al = new ArrayList(); for (int i = 0; i < chars.Length; i += 2) { al.Add((byte)(Array.IndexOf(munge, chars[i]) * 16 + Array.IndexOf(munge, chars[i + 1]))); } byte[] decrypted = DesDecrypt((byte[])al.ToArray(typeof(byte))); return ASCIIEncoding.ASCII.GetString(decrypted,0,decrypted.Length); } static byte[] DesEncrypt(byte[] data) { MemoryStream ms = new MemoryStream(4096); DES des = new DESCryptoServiceProvider() ; CryptoStream encStream = new CryptoStream(ms, des.CreateEncryptor(m_bDESKey, m_bDESIV), CryptoStreamMode.Write); encStream.Write(data,0,data.Length); encStream.FlushFinalBlock(); //calculate the length of the encrypted data byte[] bResult = new byte[ms.Position]; ms.Position = 0; ms.Read(bResult, 0, bResult.Length) ; encStream.Close(); return bResult; } static byte[] DesDecrypt ( byte[] data ) { MemoryStream ms = new MemoryStream(data.Length); DES des = new DESCryptoServiceProvider() ; CryptoStream encStream = new CryptoStream(ms, des.CreateDecryptor(m_bDESKey, m_bDESIV), CryptoStreamMode.Read); ms.Write(data,0,data.Length); ms.Position = 0; string strResult = new StreamReader(encStream).ReadToEnd(); encStream.Close(); return ASCIIEncoding.ASCII.GetBytes(strResult); } } // -- // Alan Samet // http://www.alansamet.com/ // http://www.htmlwindows.net/ // http://www.usfbs.com/ // http://www.marshwoodwinds.com/ Tag: RST packet / TCP session. Tag: 96146
      • 22
        • Automate screen scraping: How to programmically "push" a Login button on another web page? I'm hoping to write a utility program that will navigate to another web site, logon with my username/password, and download data automatically on a schedule. When I use HttpWebRequest to get the initial logon screen, there are multiple embedded forms (Login, Forgot your Password, etc). I want to be able to pass my username/password information to the web page's login form and "push" the button (on their webpage, this is done through some javascript code). When I view the source code of this page, it appears that several hidden variables are set, so I imagine the I would need to get/accept/return cookies. I'm not sure how to "direct" the infomration to a page's particular "form" - in my case, "pushing" the Login button. Is there an example to automating this type of login that someone could share with me? Thanks! Tag: RST packet / TCP session. Tag: 96141
      • 23
        • VS .Net cde behind files missing When i create a new aspx file in VS.NET 2002 no code behind file is created. Instead, the aspx file is created with this at the top: <%@ Page Language="vb" AutoEventWireup="false" Codebehind="$FILENAME$.vb" Inherits="$INHERITS$"%> Additionally, the HTML Editor is not available to edit files and no intellisense is working for asp (vbscript) files. In short the installation is completely corrupted. I have tried repairing the installation, uninstalling and reinstalling the software to no avail. I have also reapplied SP1 with no effect. I have tried running: "%windir%\microsoft.net\framework\v1.0.3705\aspnet_regiis.exe" -i from the command prompt as this was a recommended fix but this has had no effect. Any ideas? Thanks in advance Dan Tag: RST packet / TCP session. Tag: 96135
      • 24
        • Implement Copy/Paste/Undo into UI menu How can I implement the Copy/Paste/Undo commands when clicking on a menu item? Tag: RST packet / TCP session. Tag: 96134
      • 25
        • Any idea for create a combobox-like control I am combining a combobox-like control (named mycombo) with a textbox and a form (named comboform) in which there is a listbox with same size of form. The control mycombo has a method named dropdown in which mycombo show comboform and set its location beside the bottom of the textbox. I dont know what I do is a good idea or not. I mean the mycombo look like a real combobox. However, the MyCombo.form doesn't really belong to MyCombo.textbox or MyCombo, which is an indepedant control. When user click on another application to make the mainform which mycombo belong to deactive, the mycombo.textbox disappear with the mainform, but the mycombo.form just hang up there. Another example is, if the user drag the mainform to move from location A to location B, mycombo.textbox move together, but mycombo.form doesn't. I don't know how to make mycombo.form has a same behave with mycombo.textbox. Form control is the topest level control which cann't assign parent property. Any idea or suggestion? ---Frank Tag: RST packet / TCP session. Tag: 96129
    • Next
      • 1
        • What do sw developers need to know about dual-core? I'm a freelancer writing an FAQ on dual-core for Intel's software developer site. I'm trolling about looking for a handful of burning questions from sw developers about coding for dual-core systems (or threading generally)? Specifically, I'm going to have to narrow the questions to no more than five each for desktop (here today) and laptop and server (coming relatively soon). If you want to suggest a sw question for an Intel expert to field, let me know. Eventually, the document will be posted at intel.com/ids. -- Geoff Koch Science/Tech Writer Lansing, Michigan gkoch AT stanfordalumni DOT org Tag: RST packet / TCP session. Tag: 96127
      • 2
        • Remove Event Handlers in C#.NET Hi, I am currently working on C#. I need to temporarity add remove event handlers which i was done in VB.NET using Addhandler and RemoveHandler functions. How to do it in c# Thanks in Advance Prasad Dannani Tag: RST packet / TCP session. Tag: 96123
      • 3
        • App version and build date? Ive set up my application to read the build version from the <assembly> key inside my Web.config file using: string myver = Assembly.GetExecutingAssembly().GetName().Version().ToString() Is there a way to get the DATE of the build as well? -- JP .NET Software Developer Tag: RST packet / TCP session. Tag: 96122
      • 4
        • Admin rights required for framework Installation ? I searched the archives and web and could not find a definitive answer. I am working on an installer (using Wise for Windows Installer) for the client piece of a client/server application. Question is: Will the clients need Admin Rights on their machines to install the .Net framework if it isn't already present on their machine? (My client app requires the .Net Framework 1.1 to run). Thanks in advance. Tag: RST packet / TCP session. Tag: 96121
      • 5
        • Adding literals to an existing Enum at runtime I have seen an example of how to create a new Enum at runtime using EnumBuilder. However, I was wondering if I could add literals to an existing Enum at runtime ? Tag: RST packet / TCP session. Tag: 96117
      • 6
        • displaying country name in current UI culture? I have a two-letter country code and I need to display the name of this country in the current UI culture. Sadly I can't create a CultureInfo and use the DisplayName property because this displays it in the localised version of the .NET framework and not in the current UI culture which I might have changed (it is calculated regardless of the language that the system is set to display). e.g: country code: US current ui culture: Spanish: test string i need: "Estados Unidos" Any suggestions? Tag: RST packet / TCP session. Tag: 96103
      • 7
        • Redistributing DIA dll problems Hi All I'm trying to distribute msdia80.dll (Debug Interface Access SDK) with my application. The problem is that regsvr32 generates the following error when I try and register the dll on the installation machine. "LoadLibrary ( "msdia80.dll" ) failed - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem." I have installed the .NET Framework Version 2 Redistributable Package on the installation machine as msdia80.dll has a dependency on msvcr80.dll. As far as I'm aware this should be all I need to do but obviously not. Can anyone help? Thanks in advance Tag: RST packet / TCP session. Tag: 96102
      • 8
        • Problem faced while creating setup file for Pocket PC application I Created a Pocket PC application for iPAQ 5450. Every thing went fine even installer creation. I could run the setup and install it into the actual device and worked fine. The application enables syncronization with remote database using merge replication. I found contradictory results while installing the application. I will mention here all the steps that I done while creating and installing setups. Result: Case 1: worked fine. Case 2: show problem. Case 1: --------- Developing and installation site Details ------------------------------------------- Operating System 1. Windows 2000 server 2. Windows XP with SP2 Development Environment 1. Microsoft .NET 2003 2. Framework 1.1 with SP1 Backend 1. SQL Server 2000 Standard Edition 2. SQL CE 2.0 Communication Tool with Pocket PC 1. Microsoft Active Sync 3.8 Steps followed to create the Setup file 1. Created cab file for my application. 2. Included the cab file names in the INI file to install the cab file corresponding to the Pocket PC processor. 3. Created another INI file to include the names of the .NET Compact Framework cab(netcf.core.ppc3.x86.cab, netcf.core.ppc3.x86.cab, netcf.core.ppc3.x86.cab, netcf.core.ppc3.x86.cab) files to install .net compact framework corresponding to the Pocket PC processor. 4. Created another INI file to include the names of the SQL CE cab (sqlce.ppc3.mips.cab, sqlce.ppc3.sh3.cab, sqlce.ppc3.x86.cab, sqlce.ppc3.ARM.cab) files to install sql ce corresponding to the Pocket PC processor. 5. Created an Installer project to run CEAPPMGR while installing and uninstalling. 6. Created dll file from the Installer project. 7. Included new setup project to the solution. 8. Added Installer dll to the setup project. 9. Referred that dll in the install and uninstall process of custom action. 10. Added three INI files to our setup application to install .NET Compact Framework, SQL CE and my application. 11. Included all cab files to the setup project, which includes .NET Compact Framework, SQL CE and my application. 12. Build the Setup file. By doing so, setup installed everything (.NET Compact Framework, SQL CE and my application). I have tested this many times in my Pocket PC. Every time it installed successfully. Case 2. --------- Developing and installation site Details ------------------------------------------- Operating System 1. Windows 2003 server 2. Windows XP with SP2 Development Environment 1. Microsoft .NET 2003 2. Framework 1.1 with SP1 Backend 1. SQL Server 2000 Enterprise Edition 2. SQL CE 2.0 Communication Tool with Pocket PC 1. Microsoft Active Sync 3.8 Steps followed to create the Setup file I have followed all the steps in the Case 1 But in this case I failed to install the application to the Pocket PC along with Sql CE Cab and netcf cab. In 2003 server it is showing CEAPPMGR.EXE Application error. In Windows XP it is showing â??Send error reportâ??. Error produced in windows XP is in fact a contradictory one from CASE 1. But I tried with separate installation for each cab file. At that time it is working fine. But while installing along with any one of supporting cab files it shows error message. I tried this in different machines, but same error is throwing. I tried again in Windows 2000 server; it again failed to install the application so this again is contradictory result from Case 1. I have sent the error report to Microsoft using â??Send error reportâ?? option. I have searched a lot in the internet for a solution. Where could I have gone wrong? Tag: RST packet / TCP session. Tag: 96098
      • 9
        • Oracle Reference Cursors using Enterprise Library I have the trouble with the stored procedure returning ref cursor. I used the code provided by Horst. The Package ... ---------------------- CREATE OR REPLACE PACKAGE employee_main AS TYPE ref_cursor_type IS REF CURSOR; PROCEDURE get_employees (emp_cursor OUT ref_cursor_type); END employee_main; / CREATE OR REPLACE PACKAGE BODY employee_main AS PROCEDURE get_employees (emp_cursor OUT ref_cursor_type) IS BEGIN OPEN emp_cursor FOR SELECT * FROM employees; END get_employees; END employee_main; / The C# snippet which accesses the package... --------------------------------- public DataSet GetEmployeeData() { string pkgName = "employee_main.get_employees"; Database db=DatabaseFactory.CreateDatabase(); DBCommandWrapper cmdWrapper = db.GetStoredProcCommandWrapper(pkgName); cmdWrapper.AddOutParameter("emp_cursor", DbType.Object, 2000); return db.ExecuteDataSet(cmdWrapper); } Another procedure that updates the record with only IN and OUT parameters executes without problems. However as soon as I try to include parameter cmdWrapper.AddOutParameter("emp_cursor", DbType.Object, 2000); it gives me error on execution db.ExecuteDataSet(cmdWrapper): "ORA-06550: line 1, column 7:\nPLS-00306: wrong number or types of arguments in call to 'GET_VERSIONS'\nORA-06550: line 1, column 7:\nPL/SQL: Statement ignored\n" Help greatly appreciated. Tag: RST packet / TCP session. Tag: 96097
      • 10
        • overload several config files? Hi I am building a dotnet 1.1 app, in VB.net ... I would like to have several config files corresponding to multiple envirronment (Database, local Machine, Application, User...) and overloads each, in order to have, by the way, one config. So I would like to load a config file (app.config) at startup (as usual), then overload this file with a new file (came from SQL for exemple), then overload with a second file.....etc.... What do you think about that? is it possible? Do i must access to each file manually (with xml methods) ? read them and then construct one config file, and then load it? Thanks!!!!!! bye syl Tag: RST packet / TCP session. Tag: 96094
      • 11
        • WMI: Win32_Processor Loadpercentage does not return data Hello, i made a script, that reads the cpu loadpercentage (wmi / wmic). the script was ok, i got the data from both logical processors. but after i made windows update yesterday (before, it was a clean windows xp sp2 installation) cpu loadpercentage doesnt return data. what happened, and what can i do ? system information: cpu: p4 3,2 GhZ HT (540J) os: Windows XP ServicePack2 (netframework 1.1 sp1) thanks in advance Tag: RST packet / TCP session. Tag: 96093
      • 12
        • Framework create multiple folder into system Root Is there anything know about framework that is creating multiple folder into windows system Root folder? For now on certain server, when I launch a .net application a folder is created into c:\windows folder with a random name like those, KXAJS1QZ8DAFOX6B WPAFSLQNKHINGLQJ AFWL67O1I3ODQ3KX Tag: RST packet / TCP session. Tag: 96090
      • 13
        • How to show a system.windows.forms.form with NoActive under FCL How to show a system.windows.forms.form with NoActive under FCL? ---Frank Tag: RST packet / TCP session. Tag: 96072
      • 14
        • How do I know System.Windows.Forms.TextBox in System.Windows.Forms lose Active? How do I know System.Windows.Forms.TextBox in System.Windows.Forms lose Active? I mean When a textbox get focus, then user click on another form/application to make another form/application activate and make this form/application deactivate, how to I know that in textbox? What event/message was sent to textbox? ---Frank Tag: RST packet / TCP session. Tag: 96066
      • 15
        • C# and DCOM Hi, I need to create an application/service that will run all the time on a server and will need to expose one of its methods through COM/DCOM. It will be accessed by many clients at the same time but they will be accessing shared data so they will simply be queued. I want to create it in C# but i'm not sure whether it should be a windows service or a console application. If you have any advice on this I would be very grateful Thanks Millzy Tag: RST packet / TCP session. Tag: 96065
      • 16
        • Problem with .net framework beta 2.0 installation At some point installation fail (i can see message "unregistering EnterpriseServices.dll", and then "rolling back installation" after that - just message "Installation failed"). I have WinXp SP2, framework 1.1 installed. Any ideas? -- MO I RANA Imagine being on a vacation, and it's raining all the time, you are driving and the kids are making you a nervous wreck. Well you are definitive in Mo i Rana. "The Meaning of Liff " by Douglas Adams LIFF (n.) A book, the contents of which are totally belied by its cover. For instance, any book the dust jacket of which bears the words. 'This book will change your life'. Tag: RST packet / TCP session. Tag: 96063
      • 17
        • Distributed Transactions and System.EnterpriseServices Hi dear, I need to implement Distributed Transactions in my application as it is using 2 SQL servers. I am using windows server 2003, Sql Server 2000 and .Net 1.1. After a first post and some research on google I have seen that there is a package System.EnterpriseServices part of the .Net framework that interface with COM+ components. It seems to interface with the DTC windows service. My problem is that I have no experience with that package neither with COM+ component. What I really need is a tutorial of how to implement Distributed Transaction in a software, for exemple, should it be at the Business Layer level (I think so) or can the Data layer take care of that by itself? And also how to achieve it? What is the best design / best practice? For exemple sometimes some business methods can be the root of a transaction but sometimes they can be part of a greater user case, thus be part of an existing transaction. I have seen some source code with stuff like the following but i simply do not understand it (the attributes in front of the class and methods declaration.). Also note that the class MUST inherit ServicedComponent... :( Also i do not know if it is flexible enough and resolving an important issue which is some methods may have to initiate their transactions themselves as they are the root of the transaction or using an existing transaction, depending of the use case. [Transaction(System.EnterpriseServices.TransactionOption.Required)] [ClassInterface(ClassInterfaceType.AutoDispatch)] [ObjectPooling(MinPoolSize=4, MaxPoolSize=4)] // WHAT IS THIS ?? [Guid("14E3573D-78C8-4220-9649-BA490DB7B78D")] public class OrderInsert : ServicedComponent { ... [AutoComplete] public int Insert(OrderInfo order) { .... } } I am a beginner in Distributed Transaction but I know what is a transaction and i have been using it many times on single DB connection. I have also seen that the SqlConnection class has a method EnlistDistributedTransaction() but in the sample code I have seen using distributed transaction, it is not using that method but seems to rely entirely on the System.EnterpriseServices and on the "magic" attributes defined in front of the class definition. Is there someone who has a good idea of where i can find some help / resource / book to help me gain knowledge about Distributed Transaction in general and how to implement it? All I can see from the web are exemples but I would ideally need more than that I need an explanation of how it is implemented and why it is implemented that way and also what options and attributes I can use. Also why objects seems to be pooled... see attribute [ObjectPooling(MinPoolSize=4, MaxPoolSize=4)] Is there anywhere a reference about those attributes? Best regards and thanks a lot in advance. Francois Malgreve Tag: RST packet / TCP session. Tag: 96058
      • 18
        • Output Window in Visual Studio 2003 I am trying to add another output window and able to write to it. Does anyone know how to do that? Tag: RST packet / TCP session. Tag: 96055
      • 19
        • Microsoft application block dataaccess I heard someone mentioned version 3 available now. where can I find it? regards, Guoqi Zheng http://www.ureader.com Tag: RST packet / TCP session. Tag: 96052
      • 20
        • Format Double Values Hi, I have a Double Value. i am planning to display it in "0.0000" format i.e. the decimals length is fixed i.e. 4. I am using math.round function which is reducing the length to 4. but if the length is just 2 digits then it is giving 2 digits only. where i want 4 digits. Can anyone help me out. I done this functionality in visual basic but now i want it for c#.net Thanks in advance Prasad Dannani Tag: RST packet / TCP session. Tag: 96046
      • 21
        • how to discover GMT (Time Zone) currently? how can i now by writing code, which is the GMT (Time Zone) currently configured in the machine? thanks to all Tag: RST packet / TCP session. Tag: 96045
      • 22
        • System.DateTime.Parse("Thu, 05 May 2005 14:50:52 EDT") Fails How do I use the .Net 1.1 System.DateTime so that it will parse the string "Thu, 05 May 2005 14:50:52 EDT" Currently System.DateTime.Parse("Thu, 05 May 2005 14:50:52 EDT") Fails with a FormatException: The string was not recognized as a valid DateTime. There is a unknown word starting at index 26. Thanks, Michael -- Michael S. Scherotter Business Solutions Architect Mindjet LLC Tag: RST packet / TCP session. Tag: 96043
      • 23
        • Dotfuscator question Hello Everybody !!! When i create programm using C# i must understand that my programm from exe - module can be converted to the source file by Reflector. In Order do not allow do this i must use dotfuscator, but i did not find any free normal dotfuscator. May be someone tell me what can i do cause now as think we have interesting paradox. We 've got free technology but if we want to protect our products we must buy expensive commercial dotfuscators. Alex Dmitriev Tag: RST packet / TCP session. Tag: 96042
      • 24
        • VS.NET 2005 Beta 2 managed stored proc creation In Beta 1, the Microsoft.Data.SqlServer.SqlContext.GetCommand static/shared method allowed for the creation of a SqlCommand with a pre-assigned Connection property denoting a SqlConnection associated with the DB where the assembly was installed. Does anyone know the replacement for this method (or how to get a SqlConnection or SqlCommand object populated with the appropriate info related to the hosting DB in Beta 2?) Thanks in advance Stephen Tag: RST packet / TCP session. Tag: 96038
      • 25
        • How do you enumerate SQL Servers in .NET I would like my application to be able to enumerate all available SQL servers for the user to pick where they want the database created. The Wizard for Sql data access does this. I just want to enumerate a list so I can put them in a drop down box. I'm really at a loss of where to go to get this list. I assume WMI would provide it, but is that the best way. And if so, what class is it in? Tag: RST packet / TCP session. Tag: 96028

Top

  • The MSS Forum
  • The team • All times are CDT