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

Software Development Network >> .NET Development

.NET Development

New Question

Instance of DataSet
Trouble Writing to EventLog
ProcessMessage: used to prevent a method call?
make an auto internet dialer C#
KeyedCollection Support Two-Way DataBinding?
displaying thumbnailview of files inside a folder
".NET Runtime Optimization Service has encountered a problem and needs to close" V. 2.0
error 25015 .net framework 2.0
Question about COM-Interop.
Newbie question about MDBG sample

Top Answerers

gafferuk
Aleks K
Bo Tanaka
ngio_dude
profesacutz
Bill_C
Anyhoo
Chinwa KneeHo
Cobaia
Peter D.252325
sitemap
Only Title

Answer Questions

  • Veo Web Method returns array of custom type : casting error

    Hi group, I am having a web service which returns an array of type custom object. The custom class is defined in a Class Library that is included in the web-service project. The same class lib is included in the ASP.NET Web Application that calls the web-method. it gives type cast error when i try to call the web method of my webservice. Cannot implicitly convert type 'wsMyProjectName.Employee[] to 'MyProjectName.Domain.Employee[]' i think the problem is What the web method is returning is a proxy-type, and not the type that web service originally returned. i am using vs.net 2005 and this happens while i am doing this through adding web reference. I tried creating proxy class using wsdl.exe manually and used that also but it gives diffe ...Show All

  • Boy from Turkey Help with TripleDES and RC2 cryptography.

    I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All

  • Laxmi. Handleing with unlike path of HTTP request

    Hi I need to handle with request that came from third party, so I can't change the path of the request. The request Path like: http://<server>/root/UPM par1=a&par2=b I tried configure the IIS to use a default document, but without any success, because the first respone from IIS is HTTP error 300 Also I tried configure the web.config with urlMappings like <urlMappings enabled="true"> <add url="~/UPM" mappedUrl="~/Default.aspx"/> </urlMappings> but without any success, because "url" attribute must to point of asp.net file. any suggestions how to response to requset like: http://<server>/root/UPM par1=a&par2=b Thanks Erez Mizrahi ...Show All

  • QWERTYtech VbCode Why doesn't it work.2

    Ok Im not sure if you got your answer yet, it is possible I may have misunderstood what you are needig however... Perhaps this will help Imports System.Xml Public Class Form1 Dim xmlFile As String = "..\Cars.xml" Private Sub btnMake_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMake.Click Dim xmlDoc As New XmlDocument xmlDoc.Load(xmlFile) For Each myNode As XmlNode In xmlDoc.DocumentElement.ChildNodes If myNode.Name = "car" Then txtMake.Text = myNode.FirstChild.InnerText End If Next End Sub End Class This will loop the nodes in your xml file and deliver the inner text contained within the element <make> Hope this helps ...Show All

  • Montana Jones Creating new types using reflection?

    Hi, i want to create a new variable using an outsider input. here's more explination: if i have this variable: string x = "int"; now i want to create a new object that will have the same methods as an integer, it will create the the int variable with something like what i know that's available in com MyObject = createobject(x); this will create a int variable based on a string variable. later on i will want to use some of the methods like MyObject++. should i use reflection to do this i am using .NET and will create .NET objects, and i'm writing using C#. thanks all, Z i want to create a console application that will recieve certin commands. this applcation should know how to handle general o ...Show All

  • paradoxium Changes made to gridview

    I'm exporting an excel file to a gridview. After the changes are made, I need to update the changes to database. Will the changes made in gridview get reflected in the dataset automatically or is any work required well how are you actually adding the items in the gridview via a dataset what is the code you are using you basically need to use say a dataset and a dataAdapter, implement the correct insert commands for the dataAdapter so it can then update the database correctly. Can you show the code you are using I'm adding the data to the grid thru a dataset. Here's the code for importing from an excel file and adding the data to datagrid. Any changes made on the grid, will they get automatic ...Show All

  • a n d r e w Column version updates or ‘Last write wins but only changed columns updated’

    In my solution I need to allow “last write wins but only changed columns updated” like MS CRM where two users can open the same contact at the same time, one can change the fax number and save, and the other can change the email address and save. And BOTH column changes are persisted. What’s the best way to do this My first attempt with Load/LoadDataRow or Merge, the changed record entirely wipes out the master record, not just the changed columns. changedTable.Load(masterTable.CreateDataReader(), LoadOption .PreserveChanges); I wrote a solution below for that (only tested for 1 row) however both of these require grabbing the master record first, and that means it needs to be in a transaction blo ...Show All

  • Sergio Ordine Exception Class not deserializable

    I have a very simple Exception class that when thrown from a COM+ object generates the following stack. The Exception is marked as serializable and has an "empty" constructor. How can I throw an Exception from a COM+ object. trace: System.Runtime.Serialization.SerializationException: The constructor to deserialize an object of type UnitedMobile.Provisioning.eServGlobal.PI.PIException was not found. at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context) at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.DoFixups() at System.Runtime.Serialization.Formatters.Binar ...Show All

  • Unmesh Gundecha In the GAC?

    If I create an interop wrapper for a COM DLL and place it in the GAC, and then I reference the interop in a client app, the path shown in the Properties window shows that it comes from the GAC. However, if I reference a .NET DLL that is also registered in the GAC, the path is the same as the one I referenced (i.e., a local copy of the DLL). I realize that at runtime, the component from the GAC will be used. My question is, is there anyway to know that DLLs that I have references to are coming from the GAC This could be confusing for the dev/tester/cm teams. todd You can look in the Microsoft .NET Configuration MMC (Administrative tools). Otherwise .. no. Even the System assemblies show their full p ...Show All

  • LelandDurrette "|DataDirectory|" problem

    Hello, I am relatively new to ASP so please forgive my ignorance. I am trying to figure out where to place the code to change the location of the |DataDirectory| setting. The problem is that when I run the web app from the development server the |dataDirectory| setting resolves properly to D:\Web\Survey\App_Data. However when the app is opened from IE the |DataDirectory| setting is resolved to D:\Web\App_Data. The app runs fine as long as I place the App_Data directory one level up within the \Web directory. I found the code to change the setting but I just don't know where to place it. Thanks for your help. Mark ...Show All

  • R Korman Update using SQL Exp not working

    Hi I'm trying to update a database (sql express) with values, using a stored procedure and parameters (a fairly simple and straight forward request, or you'd think so!). Code to create parameters, etc set connection sproc //get provider name static string providerName = ConfigurationManager .ConnectionStrings[ "Dolphin.Properties.Settings.ConnectionString" ].ProviderName; //create instance of fatcory static DbProviderFactory factory = DbProviderFactories .GetFactory(providerName); //get connection string static string connectionString = ConfigurationManager .ConnectionStrings[ "Dolphin.Properties.Settings.ConnectionString" ].ConnectionString; public static bool Upda ...Show All

  • Wasif235288 using xslt to create excel file - having problem conditional bolding text in cell

    With the following xslt, I need to bold the first two lines of text in a cell, with the third line not bolded. I have not been able to find the right combination of code to make it work. Any suggestions <xsl:for-each select="Event"> <Row ss:AutoFitHeight="1"> <Cell ss:StyleID="s29"> <xsl:choose> <xsl:when test="@EventID=9997"> <Data ss:Type="String"> <xsl:value-of select="@EventValue"/> </Data> </xsl:when> <xsl:when test="@EventID=35"> <Data ss:Type="String"> <xsl:attribute name="font-weight">bold</xsl:attribute> ...Show All

  • sreejith s Unboxing nullable types in CIL

    Does anyone know how works the unboxing for nullable types in CIL So, for example, what happens if the instruction "unbox" is applied with a type token argument Nullable<int32> I guess that a new Nullable<int32> instance is allocated, and a (managed) pointer to the instance is pushed onto the evaluation stack. Is that right If "unbox" does not find a boxed int32 on the stack, then an exception is thrown. Please someone correct me if I'm wrong! Thanks! Cata Nullable is a basic runtime intrinsic type. It is treated specially by the CLR. Nullable types are instances of Nullable structure. This Nullable structure is a generic struct type in base class library. It behaves li ...Show All

  • progames25 Reflection Awkward for Creating Object Instance

    I want to create an instance of a class, using just a System.String name of the class. This is no problem if the code knows the assembly that contains the class (via GetExecutingAssembly, GetEntryAssembly, etc). But what if the code has no idea what the assembly is (and can't get it with GetExecutingAssembly, GetEntryAssembly, etc) I've done a lot of hunting, and one solution I've come up with requires the coder to additionally supply the assembly name as a string, like this: string TypeName = "MyClass" ; string AssemblyQualifiedName = "MyAssembly" ; object NewInstance; //An "assembly-qualified name of the type" means the type and assembly name are //seperated with a comma. string QualifiedN ...Show All

  • CzechMate Integrated Security with httpwebrequest

    Hi, I am working on an vb.net compact framework application that runs on Windows Mobile 5. I'm using httpWebRequest to authenticate to a web server as follows: mywerequest.Credentials = New NetworkCredential(myusername, mypassword) The virtual directory that the app communicates with is set thru the IIS to only allow Windows Integrated Security. The reason I use NetworkCredentials instead of the DefaultCredentialCache is because the user doesn't login to the device. The functionality works great the way I have it. My question is, can I still be confidient that my application is only sending a hash over the network for authentication and not a plain text password, even though I'm not using it the way it is normally used ...Show All

737475767778798081828384858687888990

©2008 Software Development Network

powered by phorum