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

Software Development Network >> .NET Development

.NET Development

New Question

VS 2003 debugger haults
.NET encourages poor coding?
Kerberos delegation problem
System.ArgumentException: Invalid value for key 'attachdbfilename'.
ODBC Error - Not a Valid Month
Skip JIT?
Adding files to ClickOnce VB.Net application
VB.Net Data Storage
FileStream running slow in Window's forms but not in a windows service
errors adding a web service with sockets to a C++ project

Top Answerers

kzu
Davy007
Paul B - Miami
nmharleyrider
Gerhard Brueckl
VTS
pdurbha
kastanienreis
LeonRadley
Free Hall
Topix: Earth, Wind, and Fire
Only Title

Answer Questions

  • NickGetz Can't get members of constructed type in Reflection.Emit

    Hi there, I hope someone can help me -- I'm having problems using Reflection.Emit to write some methods that use generics. I've got a handle on most of it, but there are a couple of cases I just can't figure out. One of these is below. When trying to emit the IL for this method, I cannot get a reference to the List<K>.Add(K) MethodInfo. I get List<K> by calling typeof(List<>).MakeGenericType(k), where k is the GenericTypeParameterBuilder I created when I defined GenericClass. Unfortunately, if I do that, List<K> is a TypeBuilderInstantiation, which doesn't expose its members (GetMethod throws a NotSupportedException). If I could bake GenericClass, I could use the real reference to K (as opposed to the GenericType ...Show All

  • Xengor <clear /> tag

    What happens if we failed to give <clear /> tag in <pages> tag of web.config file regards, kailai ...Show All

  • sdaemon Delete XML Elements by value.

    Hello, Ok, here's the deal. I have an object that I am serializing. This object contains several properties that, should they not get set during the course of the workflow, should not appear in the final XML. However, properties such as integers are serialized as a '0', where as a string simply isn't put into the file. So, to get around this, I am adding a post process to my serialization (there will also be other tasks to perform in the post process, so it isn't just for the XML). I'm setting all of my properties to a default value (-9999). I want to be able to go through my serialized XML and remove the entire element from the XML. Currently, I'm having no problem removing the value, however I want the entire element gone. Example: Be ...Show All

  • Michael Gates Help trying to Insert to Access DB with error No value given for one or more required parameters.

    I am trying to delete all the quotes from a csv file and then grabbing each line as a row in Access' database. Right now I am stuck after hours of research about the error: No value given for one or more required parameters. I have tried using @companyName and also the question mark. Here is the code that give me the error: Public Sub InsertLine(ByRef line As String()) Dim dbname = "dbase1.mdb" Dim dbpath = Server.MapPath("access_db") Dim commandStr As String, dbcomm As OleDbCommand Dim conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ dbpath & "\" & dbname) conn.Open() commandStr = "INSERT INTO [Contactsdb] ([company ...Show All

  • waheyluggage XML Serialization Over TCP Sockets

    I have an appliction that serializes an object over a NetworkStream, and I want the receiving application to deserialize the object as effeciently as possible. Is it possible to directly deserialize an object using XML Serialization and NetworkStream's In VB, the receiving application has the following line of code: MessageObj = CType(Serializer.Deserialize(NetStream), Message) The application appears to hang on this line. However, when I close the application that originally serialized the object to the stream, the receiving application continues and successfully displays a value contained within the deserialized object. Is it possible for the object to be deserialized successfully in this manner Based ...Show All

  • JennyAtl Some how the update command is not working.

    Hi, im using Web Forms Im trying to update the database but the query is executed correctly and th database is not updated but the returned message is 1, I really dont know whats causing this here is my code. private void UpdatetheDatabase( string connection) { SqlConnection connect = new SqlConnection (connection); SqlCommand update_customer_details = new SqlCommand ( "UPDATE [app_CustomerDetails] " + " SET [Name]=@Name,[City]=@City, " + " WHERE [ID]=@ID" , connect); update_customer_details.Parameters.Add( "@Name" , SqlDbType .NVarChar, 50).Value = txtCustomerName.Text; update_customer_details.Parameters.Add( "@City" , SqlDbType .NVarChar, 50).Value = txtCi ...Show All

  • kennm CLR and thread deadlocks

    Hello, I'm hosting the CLR (.NET 2.0) in an unmanaged C++ app. The CLR is used for calling C# plugin functions through IDispatch. The C# plugins are COM visible classes and are created from the app main UI thread. They are mostly used for accessing the app through a COM primary interop assembly generated with TLBIMP.EXE. The interop between C# and the app is achieved through the default Microsoft COM wrappers. This is all working fine but I'm having a problem when the C# functions are called by the app from a worker thread. At this point the CLR attempts to interop with the app via the UI main thread which is causing a deadlock because that thread is locked while the worker thread is executing. From what I see in the call stack (b ...Show All

  • Cordell Swannack Problem running .NET application

    I am having problems running ndoc (I have two versions, both generate the same error; the one I would like to use is from http://jonas.lagerblad.com/blog/ ). When I try to run NDocConsole.exe, I get the following error: Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'NDoc.Core, Version=1.3.1851.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. File name: 'NDoc.Core, Version=1.3.1851.0, Culture=neutral, PublicKeyToken=null' ---> System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at NDoc.ConsoleApplication.EntryPoint.Main(String[] args) I have a previous version of ndoc (that does not support .NET 2.0) insta ...Show All

  • trogdor2323 Whats the difference beetween an struct an a class?

    Whats the difference beetween an struct an a class http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vcrefvaluetypes.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcn7/html/vbconvaluereftypes.asp http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconvaluetypeusageguidelines.asp Best regards, Johan Stenberg I think the difference is an struct saves its values on the stack and the class only saves the pointer to the values. I have never used structs only clases, Can somebody give me an exaple of where its applicable ...Show All

  • Chopaka ?? in regex

    Hi, while looking for a pattern to find repetitive patterns, e.g.: string = " 999 888 777 " should match "999 888 777" (note should not match the spaces following the last pattern) I tried the following ((\d)\2\2 * )+ expecting the * to minimize the match at the end but it does not work. Instead, I get 3 individual matches. Can anyone explain it Thanks AFAIK spaces ARE meaningfull in REs. \s is used to represent a group of 'whitespaces' which includes Tab (X08) and Space (X20). At least it is in .Net, Pearl and some others. It can be disabled for clariy in some 3rd party utilities like Expresso and RegexBuddy I think Using (ppp\s*)+ WILL match the entire group of patterns bu ...Show All

  • MasterModeler How to intercept the .NET loader?

    Hi, I'm looking for a global possiblity to intercept the .NET assembly loader after the app domain is created but before first the assembly is called in it. By global I mean for each .NET application started on the machine. You can do that with a custom CLR host. Have you seen RAIL I'm trying to learn whether it's possible to do this dynamically at runtime, rather than requiring the profiling API. http://rail.dei.uc.pt/index.htm This looks possible through the CLR profiler interface ICorProfilerCallback . Good luck, the documentation is as terse as I've ever seen... ...Show All

  • robinjam Why do I have to XmlInclude derived classes in order to serialize?

    I have a shallow, but wide class heirarchy. I have one base class with several derived classes. During serialization, I pass a reference to the XmlSerializer. The reference never points to the base class; it points to one of the derived classes. So when I attempt to serialize public class Base public class Derived1 : Base public class Derived2 : Base public class DerivedN : Base XmlSerializer ser = new XmlSerializer(typeof(Base)); StreamWriter writer = new StreamWriter(sFilename); ser.Serialize(writer, DerivedClassFactory.CreateRandom() ); //DerivedClassFactory can create any of the derived classes.. On this last line, the execution fails with a run time error: "The type LibraryName.Classname was not expected. Use the XmlInclude o ...Show All

  • Danny Tuppeny How do I insert new related rows with a Dataset?

    I can use a trigger to automatically insert new rows into related tables when the Master table creates a new row. That works fine at the table level. Something along the line of MasterId (Identity)= ChildId. What is the best way to do this with a Dataset Example: Working with a bound DataGridView; adding, editing, and deleting multiple rows within a Dataset and then automatically inserting the correct number of rows for the related tables when the Adapter update processes. 2.0 Framework Rick, If you use a dataset, you can subscribe to the event handlers of your parent datatable. DataTable raise events when new rows are added, when rows are deleted and edited. How you can subscr ...Show All

  • Onlinemercenary System.Nullable<DateTime> serializes without the date in .NET2

    In C#, I have a Web Service that I am consuming that has an optional and nillable xs::dateTime field. Everything works fine in .Net 1.1, but when converting the project to .Net 2.0 the xs::dateTime fields are excluding the date in the serialization. If I change the WSDL file so that the xs::dateTime field is NOT nillable, then the wsdl.exe doesn't make the field a System.Nullable<DateTime>, it makes it just a DateTime and the problem goes away. I've done some research and found people with similar problems[0] on the internet, but haven't seen any answers. Please bear with me, but there are several code sniplets below. In the WSDL, the object is defined as such: <complexType name="DummyDateTime"> <sequence ...Show All

  • Jan Ku&amp;#269;era System.Drawing.Bitmap max size

    I've got a situation where I'm creating a bitmap as follows: bitmap=new Bitmap(newWidth,newHeight); newWidth is say 10,000 and newHeight is like 9,000; Upon hitting this line I get an error about invalid parameter being used. It happens almost everytime, but a few times I've been able to create the bitmap. I'm using .net 1.1.4322 for this project not 2.0 so this might not be an issue anymore. Is there a limitation to bitmap and what is it dependent upon Wild guess since I'm not an expert on the GDI/GDI+ functions: It may be that there isn't that much contigous memory available, which would lead to a out of memory exception/allocation failure. http://msdn.microsoft.com/msdnmag/issues/06/11/CLRInside ...Show All

495051525354555657585960616263646566

©2008 Software Development Network

powered by phorum