Answer Questions
Luke Hartsuyker .Net 2.0 Framework Issue
I have a C# DLL on .Net 1.1 framework. I am calling this DLL from Foxpro code using as CreateObject("xxxxxxxxx.xxxxxx"). It worked fine. As soon as I installed .Net 2.0, it is no longer working. I am getting "OLE error code 0x80131509; Unknown COM status code. I used gacutil to registered the DLL. Any help will be very much appriciated. Thanks, Rob The hresult you're getting seems to be th ...Show All
toastman VS 2005 + SQL Express 2005 - Database connection error - An error has occurred while establishing...
I created a sample application that has a mdf file and tries to connect to the SQL server express with the following connection string. Data Source=.;database=sample;Integrated Security=true;AttachDBFilename=sample.mdf When I open the connection, I am getting the following error. 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 defau ...Show All
zardoz How to run a standalone application independly from any DLL files
I developed an application under Visual Studio C#. However, the EXE file was unable to run in a PC without .Net environment, which is short of those relevant .DLL files. Can I build up a C# application running independently from DLL files Hi, Since Windows 2003 was released. It was bundled with the .net framework (1.1). So I guess microsoft is now bundling its framework into the OS. So this wouldn't be a big ...Show All
davechad Problem with registry
Hi, Is there class(es) to create/remove a user to access registry I have a problem to register .NET dll for COM interop. I got the "accessed denied" when I using regasm or Assebmly.LoadFile() on window 2003 because the user doesn't have administrator right. I found that happens in HKEY_CLASSES_ROOT\CLSID and It works If I add a user manually in HKEY_CLASSES_ROOT\CLSID. I think I can solve this problem if there is a class to create/remov ...Show All
Stephane GOUDEAU Windows Service Add Installer Problem
Using the How to: Write Services Programmatically help file I cannot add a ProjectInstaller. The error I get is: Service name contains invalid charaters, is empty, or is too long (max length = 80). The only code involved here is: public EurekaService() { //Set up service properties this .ServiceName = "ChargePro" ; this .CanStop = true ; this .CanPauseAndContinue = true ; //this.CanHandlePowerEvent = false; ...Show All
leighparr Regular Expression for character combinations or strings that should NOT match
Is it possible to specify a regular expression pattern for strings that should NOT match something. For example, I get a string that specifies a number of codes like: VV, VVP, PVT, XXP, G, BB. I would like to select all codes from the string that differ from VV or XX (so XXP is a valid code!). Is there an easy way to do this using regular expressions ! Best regards, Philippe Thanks for the information, bu ...Show All
rusold Side by Side Execution
I have a little problem in my application: Assembly1.0 and Assembly1.1 is in GAC Application is referecing Assembly1.0, how can i tell Application to use Assembly1.1... and if Assembly1.1 is removed from GAC how can i tell Application to use Assembly1.0 thanks in advance i am just newbie.... I guess if you set the "specific version" property in reference to false, it will handle th ...Show All
CarAnd BinaryFormatter compatibility between .Net 2.0 Beta 1 and Beta 2
The new BinaryFormatter in Beta 2 cannot read data written with the BinaryFormatter from Beta 1 . Will the binary serialization format changed again for the final version of .net 2.0 It is possible. Class field layouts can change between releases. We test between v1.1 and whatever the current version of v2 is, but between the various Whidbey versions. ...Show All
clay.routh Problem in DateTime Serialization
Hi, When I transfer a DataSet with a DateTime DataColumn (Nullable) to a remote server, the value changes to 1/1/1 3:30 and therefore it can't store it in DB. This also happens when I read a nullable DateTime column from DB and want to transfer it to a remote client. It means that When I read it from DB, on server the value of the Column in DataSet is Null and after serialization the column value in Client is "1/1/1 3:30". Please gu ...Show All
bassock Dynamically accessing XML Webservices bypassing the Configuration file
Hi, How can I dynamically create a proxy or call a web service from a WSDL URL. I need to call a variable number of web services which all implement a known method. I can call the services by creating one proxy and changing the URL property. This fails though because the parameters to Web ServiceBindingAttribute and SoapRpcMethodAttribute are not correct. Is it possible to change these attributes at runtime Is there another way Thanks ...Show All
Ray.DBA The conversion of a char data type to a datetime data type resulted in an out-of-range datetime
I am putting the current datetime in a microsoft sql server database in the following manner: System.Data.SqlTypes.SqlDateTime time = new System.Data.SqlTypes.SqlDateTime(DateTime.Now); sql = "insert myTable (datetime) values ('" + (string) time.ToSqlString() + "')"; SqlCommand cmd = new SqlCommand (sql, conn); int result = cmd.ExecuteNonQuery(); the column of my table has datatype DATETIME I trie ...Show All
Stimo could not find localhost when creating new project
Hi friends am new to .net and writing a small web service application.am using vs 2005 beta2. i created new project (asp.net web service) and new project dialog box i selected location as "http" and name of project name i entered as http://localhost/customer orders webservice and as soon as i click ok i get following message saying "Could not find a Web server '<localhost>'. Check to make sure that the Web server name is valid and yo ...Show All
Juan Reyes Problem with TypeBuilder.DefineField in Beta 2
If I run the following code, which creates a new type then creates an instance of the new type, then I inspect the new instance (called myNewTypeInstance), .Net crashes. 'create a dynamic assembly Dim [AppDomain] As AppDomain = Thread.GetDomain() Dim dynamicAsmName As New AssemblyName dynamicAsmName.Name = "EmittedAssembly" Dim myAsmBldr As AssemblyBuilder = [AppDomain].DefineDynamicAssembly(dynamicAsmName, AssemblyBuilderA ...Show All
shiras Session dropping at random and always prematurely
I've developed an application for our in-house use and it works nicely, except that the session are dropped by the server prematurely at random and no reason is given. This is a problem since most of the time users spend in the admin and I need the sessions there. - There are no entries on the server in the application logs or other logs. - The bin folder is not being updated or written to. - As far as I know the applic ...Show All
gauravgulati81 Typed datasets with multiple database vendors (or not)
As I post this so that others might benefit too, I'm hoping to hear from wise ADO/database people in general, but in particular from the ADO.NET program manager. I'm writing a new application using C# and ADO 2.0, and am getting lost in all the possible options from this list: using typed datasets (or not) using PK constraints in my datasets (or not) using FK constraints in my datasets (or not) getting PK/FK into my datasets using the Dat ...Show All
