Answer Questions
Hazem elrefai Thread.BeginThreadAffinity required before WaitHandle calls?
MSDN doc for this method has this interesting statement in remarks: /* You must also call BeginThreadAffinity before blocking on any .NET Framework type that inherits from WaitHandle, because these types depend on operating system objects. */ It is not clear to me if this statement is only in context with MSSQL Server's hosting enviroment or if it is required in any CLR host. Can anyone verify this or clear this up Thanks... Thanks P ...Show All
cRz Session timesout prematurely
I am having an issue with session timing out early. I have sever web sites running on a single server. The timeout is set to 20 minutes but it will time out at different times as short as 20 seconds. What would cause this besides an exception. Is there a threshold for session state in the servers memory Please help!! There is also a session on IIS. http://www.microsoft.com/technet/prodtechnol/WindowsServer2003 ...Show All
fuehrer Problem with SSE Databases
Hi! I'm in deep trouble and help from community to use the best possible way. I've SQL Server 2000 and 2005 Express and VS 2005 C# Express installed on my pc. I'm getting following error when try to create connection in VS When I create database in SSE 2005 and try to connect from VS2005: Unable to open file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\Testing.mdf OS error: 32(The process cannot access the file becau ...Show All
David Mann [MVP] How can i run a .bat file from asp.net in the server side ??? please help
How can i run a .bat file from asp.net in the server side please help Hi every one, I am trying to run a batch file using my asp.net application. I am using the Process class to run the batch file. When I run my web application, In the task manager, i could see cmd.exe with ASPNET as a user. But nothing happens. It can't execute the batch file. This is the code i am using to run the batch file: private void Request() { string File=S ...Show All
Andranik Khachatryan FileInfo LastWriteTime Exception
When calling FileInfo.LastWriteTime on a non-existent file under the 1.1 framework you receive a DateTime.MinValue object in return. When doing so on the 2.0 framework a FileNotFoundException is thrown. I believe this is better but represents a change in the behavior of the framework. I assume this will remain the same in the 2.0 final release. The MSDN help files don't document this change, nor could I find anything in the text file ...Show All
nicthu Online/offline database sharing concepts
I'd appreciate some info on how to make an app with a database backend, that can (a) work as a web-based app, and alternatively (b) work as a standalone app with easily shared data files. Let's ignore development details for the app and focus on the data itself: I have an app with its own large proprietary data file format. Users of the app can currently share data files via e-mail and run the program anywhere, independent of an internet ...Show All
Shadowflip Regular expressions: exclude a character from a set.
Is there a way to exclude a specific character from a set like [A-Z] or [0-9] For example, suppose I want to exclude 'D' from [A-Z], I could write [A-CE-Z]. But that syntax doesn't suit my scenario very well. Isn't there any other syntax for this Hello Becko, In order to match A-Z excluding 'D' the correct expression is [A-CE-Z]. Likewise to match 0-9 excluding '5' the expression is [0-46-9]. If the [A-CE- ...Show All
cloakas1 Assorted warnings and error messages.
Do this in production VS 2005 Pro. 1. Creat a new data set and add an element. Save. 2. View the xsd file in the XML editor. ( I know I know I shouldn't fiddle with what's under the hood, but ...:-) You now get a warning: The attribute 'SchemaSerializationMode' is not declared. And a whole bunch of errors like: Could not find schema information for the attribute 'urn:shemas-microsoft-com.xml-msprop:Generator_RowClassName'. wher ...Show All
mgi1100 Memory profiler recommendation
Hi. I'm looking for a memory profiler which is capable of profiling unmanaged resources, i.e. resources that are allocated by managed instances, but live in native heap. So far, I've found only one program; .Net Memory Profiler v3.0 beta. Is anyone familiar with another solution Thanks in advance, Yaakov I believe the F1 profiler which ships with Visual Studio 2005 can do both manage ...Show All
snuke HttpWebRequest works in IE but not WinForm (2.0)
Hi, I have the following code working correctly inside an asp.net webform to connect to the remote https server and do basic authentication: HttpWebRequest wReq = (HttpWebRequest)WebRequest.Create(url); wReq.CookieContainer = mCookies; wReq.Credentials = new NetworkCredential("username", "password"); wResp = (HttpWebResponse)wReq.GetResponse(); It is very straightforward, and the getresponse() returns what I would expec ...Show All
DomDom How to send and receive xml data via HttpWebRequest/HttpWebResponse in windows forms applications.
I am having hard time to post xml data to my web site (or to aspx page) which is running on IIS server. I am trying to post the xml string from windows form application. I am using “HttpWebRequest” class and reading the response using “HttpWebResponse”. My code works fine when I send plain text data, By setting request.ContentType=@"application/x-www-form-urlencoded ". When I try to send xml string I get 500-server intern ...Show All
Gurjeet assembly dependencies
I am new to versioning, have a problem need help I have 3-rd party assembly, which I wish I could attche. If in .Net Configuration 1.1, its dependencies can be viewed. But if in .Net Configuration 2.0 (vs2005 RC), its dependencies cannot be generated due to error, but it doesn't tell you what error. dependencies list on 1.1 mscorlib 1.0.5000.0 Microsoft.VisualC 7.0.5000.0 System.Drawing 1.0.5000.0 System 1.0.5000.0 System.Xml 1.0.5000.0 More co ...Show All
Christopher.Gao Install service via Installer
Hi all, I have a Windows Service project, and an Installer project to create a .MSI for it. I'd like for the MSI to install the service after it is done installing the project. I think I need to do this with a Commit Custom Action, but cannot figure out how. Seems like this should be easy, and common, right Thanks for any input. Cheers, Chris If you can control the contents of your MSI there are some tables you can use. See th ...Show All
Gurudta about dot net framework organisation
hello ,can any one tel me if there is an dotnet framework for developing information systemes whith database like in J2EE: repertori -hebernate - AOD exactly if l can organise a group of classes specialy tables,others classes specialy controls this tables,others specialy swaping betwin database and calsses table with eventuelly the mapping for connecting table with classes thanks ADO.NET typed data se ...Show All
DGIX121 Return DataTable or DataSet without schema
I'm trying to get some data from my database into Infopath using a web service. So far i have a web service that returns a DataTable [Webmethod] public DataTable Status() But when i try to create a schema in infopath using this method i get an error saying it does not support a message including the schema data (xsd). Is there any way to strip the schema away (so that only data is sent) before sending it Or maybe another way of ...Show All
