Answer Questions
Rajy Rawther Login Function
I'm looking at creating a login function for my application that decides what level of access you get to the application. The input will be the staff no and password, which are saved in the database under the same table. I also need to get the access level from the same table. How do i go about doing this Thanks for any help in advance Moving this thread from C# Language forum to Data Access and Storage was a good idea. This question has wrong name and also the question has nothing to do with the problem you have, not to mention the code language. If you problem is how to create a command and read data reader then this should probably be part of your question. Also when solving problems with database, ...Show All
ram888 Getting xsi:nil´s on array items which are null instances
Hello, i have two DTO-classes (Data Transfer Objects) A and B. Class A contains a member which is an array of Class B instances. I have to pass class A to an Java-WebService. The Encoding of the Java-WebService is RpcEncoded. So my WebService-Client has SoapRpcMethodAttribute’s on each method. This works so far. The problem is, when i have null references in the array (~of Class B instances), i always get for them xsi:nil’s in my SOAP-message like you can see below - never mind what Attributes i set on the property in Class A (the name of the property is "infos"). These are the relevant lines of the SOAP-message: .. <infos href="#id2" /> .. <soapenc:Array id="id2" soapenc:arrayType="tns:B[5]"> <Item xsi:nil="true" /> ...Show All
webrod 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
Joe Zott how i can rebuild my UserControl whitout rebuild MyMainApplication? (reference problem)
i have writed a lot of Personal Usercontrol, and i have build it on common working folder "Common Control". i have aslo writed a lot of User Application that reference to this folder "Common Control", but when i solve some bug in my UserControl and i rebuild that Usercontrol, the main application go in error!!! example: MyUsercontrol1.dll version 1.0.0.0 MyUsercontrol2.dll versione 1.0.0.0 --------------------------------------------------- MyApplication contain (Usercontrol1, Usercontrol2) And it work! If i solve a fix on Usercontrol1.dll and rebuild it, the version become 1.0.0.1 (for example). when i start MyApplication i have an error. How i can solve this problem, making MyApplicat ...Show All
Hanel O Adding an item to the dropdown list inside a datagrid populated by DataSet
I have a DropDownList inside a Datagrad which I am populating with DataSet. Here is the sample code: <asp:DataGrid id="dgOutputNoMajor" runat="server" AllowSorting="True" AutoGenerateColumns="False" OnSortCommand="SortColumn" CellSpacing="5" CellPadding="3" BorderWidth="1px" cssClass="tablefont"> <Columns> <asp:TemplateColumn SortExpression="login" HeaderText="LoginID"> <ItemTemplate> <asp:Label ID="lblStudentID" Text='<%# DataBinder.Eval(Container.DataItem,"login") %>' runat="server" /> </ItemTemplate> </asp:Temp ...Show All
COHNV xml if statement
Hi, I am trying to use the IF statement logic inside xml. So came up with the line below: The logic that I am trying to achieve is: if there is a value for the field COMX_Field1 (i.e. if COMX_Field1 = TRUE) then show COMX_Field2, else do not show anything. Is this correct Thanks <LINE ID="02"> <VALUE X="1.00" FORMULA="true"><![CDATA[=("{COMX_Field1}"="1") "COMX_field2":""]]></VALUE> </LINE> this is how we do it in xslt < xsl:if test ="CustomerName !=''"> < xsl:value-of select ="CustomerName"/> </ xsl:if > A CDATA section simply contains ...Show All
Fabriciom .NET Framework 3.0 and Kerio Firewall - Setup hangs.
The only way to install the previous versions without setup.exe hanging (and being unkillable) was to install from a Full version of the setup rather than the web version. Is there a full version to download as previously Has there been any correspondence with Sunbelt to try and fix the problem Regarding the webdownload issue, could you please send your dd_*.log files to aaronru@nospammicrosoft.com <-remove nospam These logs are typically found in your temp directory. That will help us determine the cause of what is happening. Will the log files produce a solution soon, I don't mind waiting but if its going to take some time I will just use the full download. ...Show All
ZopoStyle Using Sockets
How can i use socket to establish connection between two compuers which IP addresses are not real IPs This question has been answered before. Please search the forum before posting. See: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=241548&SiteID=1 how exactly are these IPs not real in order to connect to a host, you need the IP of the host to connect to http://msdn2.microsoft.com/en-us/library/115ytk56.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.tcpclient.aspx ...Show All
AntoineF BackgroundWorker reprot progress
Im trying to get my BgWorker to report his progress.. i do private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e) { progressBar1.Value = e.ProgressPercentage; } and it dont work :s ---- My BgWorker downloads a file with WebClient thx being Callled ... it should happend wen the bgworker progress is changed..and i enabled supportprogress too...still whats wrong Double check this Event handler is actually attached to the event and this code is being Callled Best Regards, ...Show All
Paul Fedory Registy entries
I have a VB.Net application ('05) that is useful on the OpenWith list. While I know it's possible to write code that will 'officially' associate my application with particular extensions, I have avoided that because I always found it annoying to have a new application presume to take over my file associations. All I really want to do is have my application show up on the list, so the user can select it as desired. The problem I am having currently is that my application shows up on the list and correctly opens the file when selected; however, the OpenWith list does not display either my icon, or, more importantly, the name of my program. I can manually correct the latter by going into the Registry and adding Data to the appropriate prog ...Show All
EWANAME How can I call a .net COM dll from VBA across network
Hi all. We currently have a product which happily runs across a network by having various COM dlls installed on a shared network folder and various client pcs use these dlls via an VB6 exe and also Excel (2000/XP/2003) VBA. We don't have to install anything on the client pcs apart from having to register the COM dlls (via regsvr32 "/serverpath/MyDll.dll") so that Excel (which runs locally on each client pc) knows where to find them (i.e. on the shared network folder). We now want to start using .net dlls (exposed for COM via the "Make assembly COM visible" checkbox) for any new code. My question is, after installing the .net dlls on the server in the shared network folder, how can we most easily make ...Show All
Sobreira Microsoft.RuleEngine Licensing
Hi, I'm developing an application that I need to use a Rule Engine. I'm wondering, Do I need any kind of licensing If I use Microsoft.RuleEngine (that comes with BizTalk) Class in my Project Thanks I'd suggest taking a look at Windows Workflow in .NET 3.0. You won't have to worry about acquiring a BizTalk license. I have an introductory article to WF here: http://odetocode.com/Articles/447.aspx . You can find a good many articles and posts on the rules capability (the Policy activity) on the web. ...Show All
DDarren relations, primary, missingschemaaction..... questions
- - does missingschemaaction add missing stuff to DB or only inside the dataset - - when we fill dataset, don t tables in my dataset get filled automatically with primary keys, relations, foreign keys..and so on or do we have to recreate all those in the dataset again although they exist in the physical DB. Is missingschemaaction…supposed to fix the pb. - if we wanna define datarelation, primary key, foreign key…in the dataset, should we always have them first in the physical database or can we just add and define them in the dataset even if they re not in the physical tables in SQL server. How about primary key, can we define prmary key in dataset even if we don t have it in the real table in SQ ...Show All
liuming Ftp Upload File
This is my code snippet for file upload. The problem is after all the bytes are written on the server, while doing requestStream.Close() I get error as underlying connection was closed. FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri); request.UsePassive = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.Credentials = new NetworkCredential("xyz", "xyz"); Stream requestStream = request.GetRequestStream(); const int bufferLength = 2048; byte[] buffer = new byte[bufferLength]; int count = 0; int readBytes = 0; FileStream stream = File.OpenRead(fileName); do { readBytes = ...Show All
druidly How to monitor an I/O event from a separate process?
I have a third party application that reads a file. I am trying to create an new application that writes updates to the file after that 3rd party app reads it. Is it possible to monitor file access from .NET on the O/S level to trigger my application to syncronize read and writes over time How would you do it If this is not possible, how would you solve this problem other than recreating the third party application (which is not realistically possible) I/O monitoring seems to be possible, as there are programs like http://www.sysinternals.com/Utilities/Filemon.html that does it. I just need to know how they hook into Windows and trigger an event ...Show All
