IPAddress range validation
Hi,
I'm trying to the best way to validate that a specified
IP is inside a known range of IP. The IP is held in an
IPAddress type which hold the actual IP in as long and so
the statement:
224.1.0.0 > 224.0.1.0 does not necesarily translate to:
480 > 65760 (which is the representation of these IP as
long).
I would expect that i would able to do something like:
ipAddress.Address > pAddress1.Address
I know I can do all kind of string or mathematical
manipulations but I am hoping for a more elegant solution
that will take advantage of the fact that the data is
held as IPAddress type.
Thanks,
Chen Tag: Losing Session info on live server not on Dev server Tag: 61644
Configuration file.
Hello all,
I've an assembly a.exe which has a configuration file
a.exe.config. Now this assemblly loads a class from
another assembly b.dll. Can I've a configuration file for
this assembly, that is something like b.dll.config? This
way I'll be able to separate configuration for different
files.
I tried this, but this newer class tries to find its
appsettings from a.exe.config, and gives error if it is
not found.
Thanx in advance.
Meghansh. Tag: Losing Session info on live server not on Dev server Tag: 61643
Trailing Zeros in Decimal Class with Framewrok 1.1
hi all,
Since I installed .Net Framework 1.1 all of my
numeric fields particularly decimals are showing six
decimal places for all numbers. But when under 1.0 no
decimal places showed if.
pls tell me what could be the problem & what is the
solutions. I can use Formatting options but i need to know
the exact reason for this isuue!! Tag: Losing Session info on live server not on Dev server Tag: 61632
How to retrieve the summary info shown on the properties tab for a file
Can anyone tell me how to retrieve the summary information for the
properties of a file.
In windows explorer you would right on the file, select properties and then
click the summary tab. Tag: Losing Session info on live server not on Dev server Tag: 61631
list of win app
How can i get the list of applications that appears on
the "New" option when i right-click in Windows.
I mean, first u right click, then select the option "New"
and u can see a list of items that u can create, for
example a winzip or a word file.
My question is how can i get that list?
Thanks. Tag: Losing Session info on live server not on Dev server Tag: 61625
Windows Service Interaction
With COM you could CoCreateInstance an NT service for an
interface and get access to it. How is this done
with .NET and windows services.
Thanks
Edd Tag: Losing Session info on live server not on Dev server Tag: 61619
Clipboard
In the moment when a user right click a file and select=20
the option cut or copy, the file is sent to the clipboard
(portapapeles).The question is:
-=BFHow can i know wich of the options(cut or copy) has=20
select the user?
Thanks. Tag: Losing Session info on live server not on Dev server Tag: 61618
About Assembly Version
In my program I want to create a assembly and save it, but when i set the
AssemblyVersion by call SetCustomAttribute, it donot change the assembly's
ver, but add a new .custom attribute with type
System.Reflection.AssemblyVersionAttribute. how can i change the .ver
attribute of my assembly.
thanks
xiaorun huang
huangxiaorun@runnysoft.com Tag: Losing Session info on live server not on Dev server Tag: 61616
Its my app runnig??
some one knows how to check if my app. (Example ap1.exe)
is running (because i don't want than it run twice at the
same time in the same machine)
somebody knows like verifying if my application at the
moment this executing itself, since I do not want that
the application runs twice in the same computer at the
same time Tag: Losing Session info on live server not on Dev server Tag: 61607
Getting Third Party Component Suppliers to support NUnit and NUnitASP to support test driven development in web pages
Hi,
I've been using NUnitASP and found that it reaches it's limits very quickly.
It has problems with parsing certain pages and raises errors for these when
perhaps it shouldn't. Another downside is that it only supports the out of
the box Microsoft controls.
The people who are producing NUnitASP haven't been able to create another
release for almost a year now. I was thinking how an impetus good be given
to them to improve it and keep working on it.
One such way would be to encourage makers of ASP.NET Web Controls to supply
tester objects to be used with NUnitASP. For example I have been using
ComponentOne's Suite and found it to be quite good. However I'd like to
unit test the web pages with NUnitASP. I have asked ComponentOne to supply
tester objects to be used with NUnitASP. IF third party suppliers supply
support for unit testing then I think this will help generate the support
needed to improve NUnitASP. Perhaps if it where funded to be maintained
then we can get a better product and more reliability in testing of web
pages.
Interested to also hear about any other thoughts on this. Does anyone else
to something different with testing web pages. We can ceratinly unit test
our classes but I'd like to get the web page unit tested.
Regards,
Nick
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
O Nick Zdunic BSc (Hons)
O Systems Analyst
O Strategic Systems (WA) Pty Ltd
O mobile: +61 [0]4 126 480 88
O work: +61 [0]8 9457 3664
O fax: +61 [0]8 9457 3665
O email: nick@ss.com.au
O URL: http://www.ss.com.au
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
O EP methodology - Innovative techniques that work...
O Time Master - Essential time management made easy...
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO Tag: Losing Session info on live server not on Dev server Tag: 61602
.Net Framework 1.2.30703??
Did Microsoft release .Net Framework 1.2.30703?? I couldnt find out anything
about it. But I did find a sample that runs on this framework at
http://www.aisto.com/roeder/dotnet/
Can someone shed some light?
Thanks Tag: Losing Session info on live server not on Dev server Tag: 61601
DLLImport issues
The following is the original c++ header from wtsapi32.h followed by my
DLLImport syntax so that I can call the function from a c# application. Is
my DLL Import syntax correct? Every call to the function seems to return
false, with nothing in strBuffer or lBytesReturned.
/*BOOL WINAPI WTSQueryUserConfigA(
IN LPSTR pServerName,
IN LPSTR pUserName,
IN WTS_CONFIG_CLASS WTSConfigClass,
OUT LPSTR * ppBuffer,
OUT DWORD * pBytesReturned);*/
public enum enWTSClass
{
//Initial program settings
WTSUserConfigInitialProgram = 0x0, // string returned/expected
WTSUserConfigWorkingDirectory = 0x1, // string
returned/expected
WTSUserConfigfInheritInitialProgram = 0x2, // DWORD
returned/expected
//
WTSUserConfigfAllowLogonTerminalServer = 0x3, //DWORD returned/expected
//Timeout settings
WTSUserConfigTimeoutSettingsConnections = 0x4, //DWORD returned/expected
WTSUserConfigTimeoutSettingsDisconnections = 0x5, //DWORD returned/expected
WTSUserConfigTimeoutSettingsIdle = 0x6, //DWORD returned/expected
//Client device settings
WTSUserConfigfDeviceClientDrives = 0x7, //DWORD returned/expected
WTSUserConfigfDeviceClientPrinters = 0x8, //DWORD returned/expected
WTSUserConfigfDeviceClientDefaultPrinter = 0x9, //DWORD returned/expected
//Connection settings
WTSUserConfigBrokenTimeoutSettings = 0xA, //DWORD returned/expected
WTSUserConfigReconnectSettings = 0xB, //DWORD returned/expected
//Modem settings
WTSUserConfigModemCallbackSettings = 0xC, //DWORD returned/expected
WTSUserConfigModemCallbackPhoneNumber = 0xD, // string
returned/expected
//Shadow settings
WTSUserConfigShadowingSettings = 0xE, //DWORD returned/expected
//User Profile settings
WTSUserConfigTerminalServerProfilePath = 0xF, // string
returned/expected
//Terminal Server home directory
WTSUserConfigTerminalServerHomeDir = 0x10, // string
returned/expected
WTSUserConfigTerminalServerHomeDirDrive = 0x11, // string
returned/expected
WTSUserConfigfTerminalServerRemoteHomeDir = 0x12 // DWORD 0:LOCAL 1:REMOTE
};
[DllImport("wtsapi32.dll")]
private static extern bool WTSQueryUserConfigA(
string strServerName,
string strUserName,
enWTSClass eWTSConfigClass,
ref string strBuffer,
ref long lBytesReturned); Tag: Losing Session info on live server not on Dev server Tag: 61598
installutil won't install service
i run installutil "my service.exe" and it comes back to
say that everything installed ok and commit was ok. i
search for my service and it doesn't exist. i've done
this before and it has worked, so what is the problem now? Tag: Losing Session info on live server not on Dev server Tag: 61591
There is no Proposed data to access!!!???
I used ADO.Net to create two tables - parent and child
table. And, added a relation between two tables. Then, I
setup a column of child table to lookup the value from
parent table. So far, everthing is good.
But, when I modified a context of child table, I got a
Exception - "There is no Proposed data to access."!.
Anyone knows this problem? Have a work around?
Attached is a sample:
-----------------------------------------------------------
static void Main(string[] args)
{
// Create a dataset
DataSet ds = new DataSet();
// Create a parent table, and add into the dataset
DataTable parentDT = new DataTable();
parentDT.Columns.Add("ID", System.Type.GetType
("System.Int32"));
parentDT.Columns.Add("Name", System.Type.GetType
("System.String"));
DataRow newRow = parentDT.NewRow();
newRow["ID"] = 0;
newRow["Name"] = "John";
parentDT.Rows.Add(newRow);
ds.Tables.Add(parentDT);
// Create a child table, adn add into the dataset
DataTable childDT = new DataTable();
childDT.Columns.Add("ID", System.Type.GetType
("System.Int32"));
childDT.Columns.Add("Name", System.Type.GetType
("System.String"));
childDT.Columns.Add("Description", System.Type.GetType
("System.String"));
newRow = childDT.NewRow();
newRow["ID"] = 0;
newRow["Description"] = "Administrator";
childDT.Rows.Add(newRow);
s.Tables.Add(childDT);
// Create a relation
ds.Relations.Add("relation", parentDT.Columns["ID"],
childDT.Columns["ID"], false);
// Setup the expresion for the column "Name" of child
table
childDT.Columns["Name"].Expression = "Parent
(relation).Name";
// Now, modify the column "Description" of child table
try
{
DataRow row = childDT.Rows[0];
row["Description"] = "Engineer";
Console.WriteLine("ID:\t" + row["ID"].ToString());
Console.WriteLine("Name:\t" + row["Name"].ToString());
Console.WriteLine("Description:\t" + row
["Description"].ToString());
}
catch(Exception e)
{
Console.WriteLine("Exception:\t" + e.Message);
}
} Tag: Losing Session info on live server not on Dev server Tag: 61589
Threading Exception - Please Help
Hi,
I am getting an exception in my ASP.NET application as shown below,
at System.Threading.WaitHandle.WaitOneNative(IntPtr waitHandle, UInt32
millisecondsTimeout, Boolean exitContext)
at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean
exitContext)
at System.Net.HttpWebRequest.GetRequestStream()
when I use the System.Net.HttpWebRequest.GetRequestStream() or the
System.Net.HttpWebRequest.GetResponseStream() methods. This doesn't
happen always but happens after the application is in use for sometime.
There is no definite pattern. I am not able to reproduce this during
load testing.
What is this exception and why is it happenning? I am calling another web
application and do a POST using the HttpWebRequest.
Here is a snippet of my code,
objHttpWebRequest = (HttpWebRequest) WebRequest.Create(
sURL );
objHttpWebRequest.ContentType = "text/xml";
bytBuffer = Encoding.ASCII.GetBytes( sData );
objHttpWebRequest.Method = "POST";
objHttpWebRequest.ContentLength = bytBuffer.Length;
objWriteStream = objHttpWebRequest.GetRequestStream( );
objWriteStream.Write( bytBuffer, 0, bytBuffer.Length );
objWriteStream.Close( );
// receive response
objHttpWebResponse = (HttpWebResponse)
objHttpWebRequest.GetResponse( );
objResponseStream = objHttpWebResponse.GetResponseStream( );
bytBuffer = new byte[BUFFER_SIZE];
strOutput = new StringBuilder( );
iReadCount = objResponseStream.Read( bytBuffer, 0,
BUFFER_SIZE );
while( iReadCount > 0 )
{
chrBuffer = Encoding.ASCII.GetChars( bytBuffer, 0,
iReadCount );
strOutput.Append( chrBuffer );
iReadCount = objResponseStream.Read( bytBuffer, 0,
BUFFER_SIZE );
}
objResponseStream.Close( );
objHttpWebResponse.Close( );
Thank you for your help this.
Chakra Tag: Losing Session info on live server not on Dev server Tag: 61588
No Touch Deployment: Force Refresh of Assembly Download Cache
My applications are being run using no touch deployment from a hosting web server. The client program calls
AppDomain.ExecuteAssembly to start execution of the application.
Most of the time everything works fine. However, my applications make use of a third party component and everytime they make a new
version available they don't change their assembly version number but just the file version number. So whenever new features are
added and one of my apps begins using the new feature the no touch deployment of the app is broken because the newer version is not
detected on the web server and loaded over the previous version in the assembly download cache.
Is there a way I can force ExecuteAssembly to not compare assembly version numbers and just overwrite all existing assemblies it
needs to load? I don't want all my users to have to run 'gacutil /cdl' every time I make use of a new version from component
vendor.
Any other suggestions on how to solve this issue would be greatly appreciated.
Sincerely,
Gregg Walker Tag: Losing Session info on live server not on Dev server Tag: 61587
cannot find keycodev2.dll, or invalid keycode (Windows XP)
Im getting "cannot find keycodev2.dll, or invalid keycode" when im try to
open a report from my application.
The strange thing is that the same application works fine in Windows 2000 &
Windows 98 but not in Windows XP.
The deployment method used was the same in all the Operating Systems.
1)Xcopy for the application EXE
2) Setup (MSI) containing all the merge modules for Crystal Reports for .NET
(with the correct License key included)
3) .Net framework 1.1 Tag: Losing Session info on live server not on Dev server Tag: 61583
How to access device like PRN, LPT1, COM1
i need to access these devices, but i cann't get
information from .net framework document.
i use FileStream("PRN", FileMode.Create,
FileAccess.Write);. when it runs, system reported
exception. Tag: Losing Session info on live server not on Dev server Tag: 61575
How to dirty read locked files
Hi,
I'm writing a file utility and would like my program to at least try to read
a locked file like an open Microsoft Word document. I've seen other such
utilities that have an option whereby it attempts to open locked files, but
frankly I have no idea how they do it.
While I'm sure the answer probably requires P/Invoke, I have no idea what
API functions to call. I don't think CreateFile has an option to force open
locked files. Are other utilities that do this using memory mapped files
perhaps?
Thank you anyone for any hints and help! Tag: Losing Session info on live server not on Dev server Tag: 61571
Strong Naming
Hi,
I have an ASP.NET app.
I wrote some assemblies in VB.NET which my ASP app calls.
I want to Strong Name these assemblies.
Anyone know any good sites that goes throughhow to do this
step by step?
Thanks,
C Tag: Losing Session info on live server not on Dev server Tag: 61569
Downloading a file on an ASPX Page
Hi,
I generate a report in crystal and output it as a PDF.
I then add some details to my HTTP Headers so to download
the file.
When the user clicks on Download button I update some
server side labels.
However these changes do not get pushed out to the client.
When the user gets a screen asking them to save / open or
cancel teh download, this dialog box seems to take control
from the browser window and my labels on my page do not
get updated.
Anyone know how I can overcome this?
Thanks,
C. Tag: Losing Session info on live server not on Dev server Tag: 61560
How to find out what forms are open from main menu of app.
I have a main menu w/ folder Icons that are closed. Once
the user clicks on a folder it opens and a new screen
pops up next to the main menu. When they close the form
I'd like the folder on the main menu to close but if they
leave the screen open and go back to the main menu I want
the folder to remain open. How do I figure out if the
form is still open or not once the focus is back on the
main menu? I've tried the .visible but that did not
work. Help?!?!??!?! Tag: Losing Session info on live server not on Dev server Tag: 61559
Object Creation
Hi,
I have a class say...
class A
{
private int i,j,k;
public void m1(){}
public void m2(){}
}
class B:A
{
private int a,b,c;
public void m3(){}
public void m4(){}
}
class C
{
public static void Main()
{
A a1 = new A();
}
}
when i say A a1 = new A() an object of type "A" will
created on the heap the handle to which is assigned to
variable "a1". can anyone give memory layout of this
object. Tag: Losing Session info on live server not on Dev server Tag: 61555
CreateDektop
Does anyone have any good vb examples of creating a new deskop and then
using the SetThreadDesktop facility to talk to applications on the new
desktop ?
Thanks Tag: Losing Session info on live server not on Dev server Tag: 61553
String conversion
is there a simpler way then this ->
static_cast<char*>(System::Runtime::InteropServices::Marshal::StringToHGloba
lAnsi(str).ToPointer());
to convert a System::String to a char*.
also , any simple way to convert System::String to Std::String?
thanks. Tag: Losing Session info on live server not on Dev server Tag: 61549
String.Remove vs String.Substring
Does anyone know if there's any performance difference between using these
two methods or in what circumstances you should use one over the other? For
instance if I want to cut off the first 10 characters in my string I could
use either
myString.Remove(0,10);
myString.Substring(11);
Thanks,
Janaka Tag: Losing Session info on live server not on Dev server Tag: 61546
issue with side by side execution
I have a framework 1.0 application which is installed on a
machine with 1.0 and 1.1 installed.
Question 1: Is it running under 1.0?
The application calls the LogonUser API call and to make
it work, I had to change one of the ProcessModel elements
in the Machine.Config file.
Question 2: It would work on the machine in question if
both 1.0 and 1.1 had their config files changed. Why? Tag: Losing Session info on live server not on Dev server Tag: 61545
detecting .net framework
Hi, is there a best-practice way of detecting whether
the .net framework is installed.
The best way I have found so far is checking for a file
(regasm.exe) on a hard-coded path...
The registry doesn't give anything away...
Help! Tag: Losing Session info on live server not on Dev server Tag: 61540
Can someone help
Hello
I am searching for an OR mapper . I heard that
TierDeveloper can be a choice. I come to know that it
generates fully-functional .NET components (VB.NET and C#)
from within Visual Studio .NET 2003.
want to gather more info about it.
If anyone know about it or have used it then plz tell me
ur experience. How you find it?? And would you suggest me
to use TierDeveloper ???
Greetz
Smars Tag: Losing Session info on live server not on Dev server Tag: 61536
Inheriting from BinaryReader
Is there some way for a class which inherits from BinaryReader to access the
internal buffer of the BinaryReader class?
I was looking into the possibility of creating a specialization of the
BinaryReader class. What I had in mind was something like this:
public class MyBinaryReader : BinaryReader {
public SomeClass ReadSomeClass() {
// ...implementation here...
}
}
The BinaryReader class has a protected method called FillBuffer(numBytes),
which allows me to read exactly numBytes from the stream into an internal
buffer, but there appears to be no way to access the bytes just read by the
FillBuffer method.
Am I missing some obvious way to access the internal buffer?
I realise that I could use the ReadBytes() method but that presents me with
two problems:
(1) I would prefer not to have to create lots an lots of byte[] arrays which
are only going to be used for a short time and then have to be reaped by the
GC
(2) From my reading of the spec, the ReadBytes() method might return me
fewer bytes than I asked for. FillBuffer() already does the work of reading
the exact number of bytes (and throwing an EndOfStream exception if it
can't). I was hoping not to have to duplicate this effort. Tag: Losing Session info on live server not on Dev server Tag: 61529
Create Object
Hi,
Is there a way to create a object in new process.
i have a object and it is does not support
multithreading.So i want to create a new process each time
the object is created.
Thanks in Advance
Abdur Rahman Tag: Losing Session info on live server not on Dev server Tag: 61520
Win Shell
How can i get the list of applications that appears on
the "New" option when i right-click in Windows.
I mean, first u right click, then select the option "New"
and u can see a list of items that u can create, for
example a winzip or a word file.
My question is how can i get that list?
Thanks. Tag: Losing Session info on live server not on Dev server Tag: 61516
make i.E. SQLCommand implement ICloneable
Hello folks,
how can I make an Object (i.E. SQLCommand which does not have a clone
method) make implement ICloneable so that I can use its Clone method to
clone it.
Thank you
Anton
Environment: WinXP, VS .NET 2003 Tag: Losing Session info on live server not on Dev server Tag: 61509
NUnit and the Configuration Management Application Block
We are using the Configuration Management Application Block of the
MSDN site to handle configuration information for our system. We
would also like to use NUnit to run daily unit tests. Our problem is
that we can't get our assemblies to see the configuration information
they require when they run in the NUnit context. Has anyone had any
success using NUnit and the Configuration Managemement Application
Block?
Biff Gaut
Gaithersburg, MD Tag: Losing Session info on live server not on Dev server Tag: 61500
Public Key changes on Rebuild All?
(Oops, posted to the wrong newsgroup. microsoft.public.dotnet.Csharp
readers please forgive...)
Hi there,
Could someone help me over my lack of knowledge here? I am trying to
find out why, when I use the same key pair, and the assembly version is
constant, does the public key change with each Rebuild All in VS 2003?
This sort of behavior will change the assembly strong name which is a
Bad Thing when trying to actually use code beyond the development
environment...
I want the strong name to remain constant, and by all accounts it
should, given the same version number and key pair...
thanks,
-rory 8) Tag: Losing Session info on live server not on Dev server Tag: 61499
Out of Process execution and .NET
Sorry for the cross-posting but I really need some help here. I posted
before but didn't get any responses so I am trying my luck again.
I have a fairly simple scenario that is complicated by the ASPNET userid
security model and my need to access network file shares.
We currently have an executable that performs a data merge with data from a
database into some RTF documents. Then, it takes the RTF doc and converts
it to a PDF doc. All this works fine from the command line. It also works
fine when everything (RTF doc and resulting PDF doc) reside on the webserver
machine.
However, if I change the location of the RTF doc from the local machine to a
network file share, I get file access exceptions. I understand that this is
because the ASPNET account is local and does not have network permissions.
However, I have tried impersonating and that does not work either. I have
impersonated at the application level using Web.Config file and at the code
block level using the WindowsImpersonationContext object.
The sequence of processes is:
1) Call the web service to perform the Document Merge
2) The web service makes a call to a Remoting Server
3) The MegerEngine.exe program is executed from the Remoting server
4) Control is passed back to the web service and then confirmation is
returned to the calling user.
The code I am executing is:
Process p = new Process();
p.StartInfo.FileName = @"c:\temp\MergeEngine.exe";
p.StartInfo.Arguments = @"c:\temp\rtfmerge\test1.ini";
p.Start();
p.WaitForExit();
The only difference between successful execution and failure is access a
network file share. The reference to the network file share is in the INI
file that is passed as a parameter to MergeEngine.exe.
I have also tried using asserts but that has not proven successful either.
I would greatly appreciate any insight.
Charlie Tag: Losing Session info on live server not on Dev server Tag: 61491
Best way to launch an application (with UI) on a remote machine??
I have a c# windows form that talks to a web service on a server that then
can talk to multiple "agents" on different machines using web service calls.
I want to be able to launch an application of the users choice on the
remove, "agent" machine.
I've discovered that Process.Start() won't work because it runs under
asp.net and it will launch any "process" but if the application has a
windows UI it will not show.
any recommendations for the best way to launch applications on these agent
machines from my c#/windows forms app.
The agent can pass any needed info about the machine back to the client and
does already let the user browse around the machines directory/file
structure (it's how they choose the app to launch).
thanks
mike
PS remove the x from my domain if you'd like to reply to me directly. I am
still paying for the last time I posted to these newsgroups with over 100
spam a day about fake microsoft security updates. That #$%#^#$% sucks. Tag: Losing Session info on live server not on Dev server Tag: 61475
failure to install Framework 1.1 setup
I downloaded .NET Framework SDK version 1.1 to install as
the new Print Shop Pro Publisher 20 requires it. It gets
part way through installation and stops and says "ended
prematurely. Contact Product Support". What is wrong. I
upgraded Internet Explorer to 5.5 and MDAC_Typ.exe as
stated in the suggestions of Microsoft. Anybody help me? Tag: Losing Session info on live server not on Dev server Tag: 61474
ORACLE
Hi group!
Does anybody know how to call a Package from a VB.Net Win App?
TIA
--
Ing. Sebastián Gómez Correa
----------------------------------------------
sgomez@poderjudicial.gub.uy
Poder Judicial - División Tecnología
Montevideo - URUGUAY
----------------------------------------------------------------------------
----------------------
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
----------------------------------------------------------------------------
---------------------- Tag: Losing Session info on live server not on Dev server Tag: 61470
Identifing non-assigned DateTime Variable
Hello guys,
I have a simple doubt...
How can I identify or nullaby a DateTime variable?
I store a date input from a user, that will be saved on the database. Since
this is a optional field, I need to determine if the user has passed a value
to the variable, if he has, I will pass that value as parameter to my query,
otherwise, I will pass a DBNull value.
Do you understand the problem?
I think it's easy, I'll be very thank if someone help me...
Thanks,
Rafa Tag: Losing Session info on live server not on Dev server Tag: 61464
System.Diagnostics.EventLog on WindowsNT
I am having problem logging to the Application event log on Windows NT
machines.
10 EventLog.CreateEventSource(source, LOG_NAME);
20 EventLog.WriteEntry(source, message ,EventLogEntryType.Information);
This code works but nothing shows in the event log. Has anyone else had
problems logging to the Application event log on Windows NT (SP6a).
thanks Tag: Losing Session info on live server not on Dev server Tag: 61461
VS .NET 2003 vb question - opening a database/getting version info
Hi,
I just started on my very first .NET application and it is for my pocket pc.
I managed to create my forms and show then when I want to, but there are two
things I cannot seem to find:
1) In eVB one can get the version info like this: CStr(app.major) + "." +
CStr(App.Minor) + " " + App.LegalCopyright
How is this done in VB.NET 2003?
2) In eVB one can open a database with CREATEOBJECT("ADOCE.CONNECTION.3.1")
I cannot seem to find this in vsNET 2003.
How does one open a CDB database in VB.NET 2003?
I hope someone can help me with these questions!
Thanks in advance.
Eric Tag: Losing Session info on live server not on Dev server Tag: 61460
changing local account password
Looking for a way for users to change their passwords on
local accounts. I followed this KB article, 306271, and
it worked as far as adding a new user. I tried to modify
it to do password changes:
Changed this:
Dim NewUser As DirectoryEntry = AD.Children.Add
("TestUser1", "user")
To this:
Dim NewUser As DirectoryEntry = AD.Children.Find
("TestUser1", "user")
Changed this:
NewUser.Invoke("SetPassword", New Object() {"123456"})
To this:
NewUser.Invoke("ChangePassword", New Object()
{"123456", "654321"})
The error I get is:
'Exception has been thrown by the target of an invocation'
Any ideas on how to use the changepassword method in this
situation?
Thanks for any advice,
RB Tag: Losing Session info on live server not on Dev server Tag: 61459
VS .NET 2003 vb PPC question - opening a database/getting version info
Hi,
I just started on my very first .NET application and it is for my pocket pc.
I managed to create my forms and show then when I want to, but there are two
things I cannot seem to find:
1) In eVB one can get the version info like this: CStr(app.major) + "." +
CStr(App.Minor) + " " + App.LegalCopyright
How is this done in VB.NET 2003?
2) In eVB one can open a database with CREATEOBJECT("ADOCE.CONNECTION.3.1")
I cannot seem to find this in vsNET 2003.
How does one open a CDB database in VB.NET 2003?
I hope someone can help me with these questions!
Thanks in advance.
Eric Tag: Losing Session info on live server not on Dev server Tag: 61457