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

Software Development Network >> .NET Development

.NET Development

New Question

Web Service without IIS?
Call to Web Service using HTTP GET does NOT work
Assmebly Resolve
Can't step into web service in debugger
Tricky P/Invoke calls
Using a SQL Database to authenticate users
SMTP email not sending
How to tell if the remote object is available on the server (without invoking its method)
.NET framwork 3.0 (x64) installation error
test if string is number

Top Answerers

Dave Morley
Jarda Jirava
Alex Prado Romero
cipcip
JohnBurton
Milzit
Speedbird186
Mazzie
cjserio
IceAngel89
VistaDB
Only Title

Answer Questions

  • LeeC22 Deserialize Xml to "myObject". Exception: " System.Xml.XmlException: Root Element is missing "

    Here is the situation: I use an objetCompose: using System.Xml; using System.IO; using System.Xml.Serialization; namespace CYTOMICS.CytoGest.Import .Objects.Compose { [ XmlRoot (ElementName= "ObjetCompose" )] public class ObjetCompose { [ XmlElement (ElementName= "tabColonnes" )] public string [] tabColonnes; public void SetValeur( EnumNomColonnes enumNomColonnes, string valeur ) { tabColonnes[( int ) enumNomColonnes] = valeur; } I serialize it like this: public string SerializeCompose() { string strXml = null ; XmlSerializer s = new XmlSerializer ( typeof ( ObjetCompose )); MemoryStream memStream = new Memor ...Show All

  • DavidAWinter AccessViolationException with C# Ping class

    I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All

  • elemr Visual Studio 2005

    Hi All, I am using VS 2005 (ASP .NET 2.0 using C#) with SQL Server 2005 to develop a web app. There is only one dataentry screen in my app and rest are all queryable screens. The database is small. I created an MSI and released in on the server.( I am maintaining different servers for the application and the db). For some reasons, the application is slow when accessed remotely. Help will be appreciated. Besides, are there any patches available for the VS 2005 since grid view is new to the version Thx, A Thanks for the response, it does help to have these answers in as much detail as possible. Well, it also depends how many records you are retrieving - having retrieving all records (1200) in 5 seconds is not ...Show All

  • Khabibulla Share the first authenticated Token

    Hi,all I have got an authenticated UserNameToken using UserNamePasswordValidator.Also I've already established the security conversation. My answer is that how can all of my web servises can share this Token, in other words every single service needn't be validated at the first time. Thank you in advance! It seems to me as if you are looking for a single-sign-on mechanism, not necessarily for a mechanism to share the token. To answer your question very concretely: You can't simply share a token in the way you describe it. To create a central authentication mechanism that allows federated authoziation, consider building a secure-token service: http://weblogs.asp.net/cibrax/archive/2006/03/14 ...Show All

  • Learning VB Custom settings types

    I was wondering if it was possible to add custom objects the Type list on the Settings tab in the project properties dialog In other words, besides the built-in String, Int, Color, StringCollection, etc. classes, can I also add say an Employee object so I can access it via My.MySettings I have looked around but cannot find any examples or references that would point me in the right direction. Thanks. - Jason Johan, I apologize if I keep harping on this. Your help has been great. It seems that you response to point 1 and point 3 contradict each other. Point 1 says that the custom object will not show up in the designer. But then in point 3 you recommend putting the custom class in its own l ...Show All

  • djshades2004 How to tell if query comes up with nothing

    Hey all, If I do a query to a SQL DB and it does not find a match, say for ID, then how do I know that so I can give the user a No File found message. Sorry, I know this is fundamental stuff but I used to program ASP and now learning .NET. I think it has something to do with EOD and BOF. Thanks Here simple code for your problem using System.Data; using System.Data.SqlClient; .............................................. string ConnectionString = ""; //Your DB Connection string string SearchID = ""; //ID to Search SqlConnection Conn = new SqlConnection(ConnectionString); Conn.Open(); SqlDataAdapter DA = new SqlDataAdapter(string.Format("SELECT * FROM MyTable WHERE ID='{0 ...Show All

  • DanAllenVt SqlClient NET Data Provider 1.1 and MSSQL 2005

    Hi, Is The SqlClient .NET Data Provider from in the Microsoft .NET Framework, Version 1.1. support SQLNCLI or I should use OleDbConnection if i want to use MSSQL 2005 features like MARS Thanks! ADO.NET 1.1 (Including SqlClient, OleDb, Odbc providers) uses MDAC to communicate with Sql Server. You must install 2.0 to use the new SQL 2005 features like MARS. You can also get those new features with SQL Native Client if you are using OLE DB or ODBC (applications using native-code APIs). You indicate you want MARS support by using the connection string "MARS Connection=True". In ADO, you can also use "Provider=SQLNCLI;MARS Connection=True" in the connection string. OleDb ...Show All

  • brettlee01 how to solve this connection problem

    hello... when i open my connection(sql connection ) am geting this problem... can any one tell how to solve this An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) am using sql server 2000 for my database am getting this error how to solve this.. plz help me here goes my web.config < xml version="1.0" > <!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website-> ...Show All

  • Shekhar M How many ways can process.MainModule.FileName fail?

    I am trying to acquire a definitive list of ways in which Process.MainModule.FileName can fail, and which are recoverable. Other than the two documented exceptions NotSupportedException and PlatformNotSupportedException, I have discovered, through web searches and experience, that several other failures can occur - generally due to either a) the process object not yet having been fully set up after the process start (in which case a Thread.Sleep(0) and a retry will eventually succeed), or b) because the process has terminated since the Process object was acquired. According to one website it can fail with an InvalidOperationException, possibly because the process has exited. It can certainly fail with a Win32Exception if MainModule is n ...Show All

  • mfmh USB COM port error

    Dear experts, I am building an application to operate a USB modem, I am currently using VB.NET Studio 2005 and .NET runtime version 2.0. The working: Use a WMI query "SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA ""Win32_PnPEntity""" to monitor the device insertion event on USB port. Use another WMI query "SELECT * FROM __InstanceDeletionEvent WITHIN 1 WHERE TargetInstance ISA ""Win32_PnPEntity""" to monitor the device removal event on USB port. When the insertion event fired, create a new SYSTEM.IO.PORTS.SERIALPORT class as an communication interface to allow users to operate the modem. When the removal event fired, close and dispos ...Show All

  • EWOOD Connecting Forms app to remote windows service via tcp/remoting fails

    I am using .NET 2.0, Visual Studio 2005, and C#. I have created a distributed application that is based on several windows managed services (to be clear, they are installed as services and are started/stopped by using the service manager) and a forms application that allows interaction with the services and displays data that is collected by the services and sent to the forms app through events. Communication between services and the forms application is via .NET remoting using the binary formatter over a TcpChannel with the intent of allowing the forms app to be run from any computer on a local LAN. Each individual executing set of code uses both client and server channels instantiated by using the TcpChannel class. One of the services pr ...Show All

  • Mario M. What is the best way to insert 4000 records to database every 5 secs. in C#?

    Hi, just like the subject, what is the best way Currently, I have a stored proc. to do the inserting of records that is invoked by my C# app. So, every 5 secs, a code is called to insert the 4000 records. I also have a some sort of a header record for the group of 4000 records. When I look at the record created date of the header record, they roughly 14 secs. apart. Thanks, Rick.. Hi, this application, actually a test application is for engineering use. 4000 (or possibly more) every 5s is not a common thing but this could happen. It could occur for an entire day but again, not all the time. Thanks, Rick.. I still don't have the picture of the whole process. What is t ...Show All

  • IreneSmith Switching from access to sql server express in vb2005

    Right now im using an access database wich i connect to with oledb in VB2005. Now if in my whole program i want to change the database to sql server, is enough to just use sql instead og oledb (for example sqlcommand instead of oledbcommand, and slqconnetion instead of oledbconnection) Or is there something else you need to be carefull with To my understand, the sql language is almost the same so that shouldnt be a problem.. Hi, Some of the concepts of access and sql server do not have a one to one mapping. If you don't have migrated the database schema already to access to can use the upscaling wizard in the tool menu of Access or the newer Sql Server Migration Assistant for Access: http://www. ...Show All

  • Angelo_f Security Exceptions - LocalIntranet

    Hi, We have a number of .Net winforms applications that run on our LAN. Some of our applications run from Network shares (LocalIntranet Security Zone) and require trust for the particular application. This is fine, we have been including a package that applies the correct permissions as part of the install. However, some users are launching the application before applying the installation and get the ugly 'Application has generated an Exception that could not be handled' dialog box, because they do not have permission to run the executable from the share at that point. OK, it's just users being over eager!! However, I'd like to trap the exception and show a much more graceful dialog informing them what they need to do. At what ...Show All

  • mshvw Adding IP address to the deny list in IIS

    I have written a simple app in c# that adds an ipaddress to the deny list of IIS after 3 failed login attempts. This program works great on my development box but once ported to the web server I get the Error: System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at System.DirectoryServices.Interop.UnsafeNativeMethods.IAds.SetInfo() at System.DirectoryServices.DirectoryEntry.CommitChanges() at secure2.chad() the method is called chad and its on secure2.aspx. I know what the problem is yet i dont know how to fix it. From event viewer i found. The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID {61 ...Show All

232425262728293031323334353637383940

©2008 Software Development Network

powered by phorum