MS Architect resource Kit
HELP!! I have the MS Architect resource Kit CD, and on
this CD is a PDF ( very poor quality )
a File name of: NET_Reference_Arch_IDC.pdf
What I need and can not find is this information in Word
DOC and/or Visio form. the documents are some of the best
out there for everything from firewall configuration to
SQL clustering, all working with DOTNET framework.
Please, please if you can find it I really need it. Tag: framework .net on Itanium 2 platforms Tag: 59280
Change keyboard layout systemwide (windows 2000 MUI server)
Hi !
I just can't get it working to change the keyboard layout of the
logged on user.
In the Docs they say, that the functions LoadKeyboardLayout() and
ActivateKeyboardLayout() just make changes for the executing thread or
process.
So how do I change it for the whole session?
Is it possible with standard windows-api or do I have to write
specific registry keys?
If true, which one?
I'd appreciate every help I can get
Have a nice day !
Stefan Tag: framework .net on Itanium 2 platforms Tag: 59276
Creating a Custom Event Log in a VS.NET deployment project
I have a web site i want to deploy using a VS.NEt set up
project. I have no problems with that, that is fine and
works no problem.
But the web application uses a custom event log to log
application messages. The asp.net application will not be
running under an account with administrative permissions
and so this will not be able to create the custom event
log.
So i wanted to be able to create this during the setup
program. As this will have to be run using an
admisitrative account. Can this be done? How can it be
done?
Any help would be gratefully appreciated.
Thanks Tag: framework .net on Itanium 2 platforms Tag: 59272
Strong Naming in .NET
Hi,
I have an ASP.Net app that uses some assemblys I have
develoed in VB.NET.
I am looking to strong name one of my assembly's as it is
used by another application.
Does anyone know any good articles/sites on this topic
that go through the steps required.
Thanks,
C Tag: framework .net on Itanium 2 platforms Tag: 59270
is it a bug for the GetValues in System.Configuration.ConfigurationSettings.AppSettings
here is my app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Hello" value="World 1" />
<add key="Hello" value="World 2" />
<add key="Hello" value="World 3" />
</appSettings>
</configuration>
the System.Configuration.ConfigurationSettings.AppSettings.GetValues
only return a string[] with only 1 element of value "World 3"...
bug or i used it wrongly?!
thx... Tag: framework .net on Itanium 2 platforms Tag: 59260
Access remoting object begin authenticating proxy
I am accessing a remote object via HTTP binary remoting.
When using a non-authenticating proxy I set
the 'ProxyName' and 'ProxyPort' properties of the
HTTPChannel. When I use an authenticating proxy I get
a 'Proxy Authentication Required' error.
How do I setup remoting to pass proxy credentials? Can I
somehow use the WebProxy class?
Thanks,
Scott Simms. Tag: framework .net on Itanium 2 platforms Tag: 59259
URGENT .net ver 1.0 to .net ver 1.1
hi guys
I need some help, I am trying to open a project that was
created in frame work .net 1.1 and i am running frame
work .net 1.0 I get the error message that i cant open
it becase it was written in a newer version.
is there anyway to open it or upgrade my version on the
net by downloading a pack or something
Thank you Tag: framework .net on Itanium 2 platforms Tag: 59256
Howto:Auto hide windows task bar
hi,
can any one provide a sample code to auto hide windows task bar using a
.NET
program
Thanx in advance Tag: framework .net on Itanium 2 platforms Tag: 59255
Strong named assemblies - Tamper Proof ?
Dear Fellows,
i have been playing around with strong-naming my assemblies for the past
couple of days and I must say I found out something that is rather
disturbing.
Here are my questions :-
1) I want my assemblies to be called and referenced by my client apps only.
What is the proper way to do it ?
2) After I signed off my assembly with a strong name...I actually can
reverse-engineer the IL code out from the assembly with ILDASM, then what i
did was changed some IL code within the assembly and then take out the
public key token from the IL File
.publickey = (00 24 00 00 04 80 00 00 94 00 00 00 06 02 00 ....) // Delete
this value
Once i do that, i re-assemble it with ILASM Command and then deploy it. The
calling client app can then reference the tampered-with assembly as if
nothing has happened. Of couse, if i do not delete the .publickey string
value as shown above, an exception will occur during loading...
So, what is the proper way to tamper-proof the assembly ? Or this is by
design and the only way is to obfuscate the code ?
Any advice is appreciated. Thank you.
--
Thank you very much
Warmest Regards,
Softwaremaker (WilliamT)
Software Architect
+++++++++++++++++++ Tag: framework .net on Itanium 2 platforms Tag: 59242
Can't get duplex printing working
Hi,
I've been trying for quite some time to get duplex
printing working with .Net Framework 1.0 (I haven't tested
with 1.1 yet). As far as I can tell, I'm correctly
setting the PrinterSettings of the PrintDocument. I've
also tried setting the
PrintDocument.DefaultPageSettings.PrinterSettings.
The network printer I'm using supports duplexing, and I've
successfully constructed a simple MFC app that duplexes
correctly.
Does anyone have any ideas, or know of any issues I should
be aware of?
Thanks,
Anthony Tag: framework .net on Itanium 2 platforms Tag: 59234
Debuging a page thats in a virtual directoty thats not an app
So lets see what I've tried so far:
- ran aspnet_regiis -i
- reinstalled the .Net framework (1.1)
- modified machine.config to use the SYSTEM account
- ran iisreset
- installed IIS prior to installing Visual Studio
- checked that my user account is a member of local admins and Debugger
Users
This is the simplified structure of my website in IIS :
c:\Website
-------> Home (normal directory)
-------> Engine (*virtual directory* but not an application!)
I made the Engine (which contains code I use in many sites and thus is
centralised) not an application because I use application variables within
this directory.
This is how I set it up in Visual Studio.net 2003 :
Solution "Website"
-------> Project "Website" (points to c:\website)
-------> Project "Engine" (points to c:\Engine)
I have to add the project "Engine" because VS doesnt add the virtual
directory automaticaly.
(I added it with "add existing project from the web")
I set my start page to c:\website\default.aspx and started debuging.
Once I get into a page thats located into the virtual directory where I set
a breakpoint VS tells me that the source isnt available so I dont get to the
breakpoint.
IMPORTANT :
Once I make the virtual directory an application the problem goes away but I
dont want to do this.
How can I get the full power of debuging without making the virtual
directory an application?
I think I am lacking some fundamental understaning about asp.net and
processes. Can you point me in the right direction please? Tag: framework .net on Itanium 2 platforms Tag: 59230
Crash dumps
Is it possible to code something in C# that would behave like Watson does
and catch my application crashing and give me crash information and send it
remotely to me for debugging? Tag: framework .net on Itanium 2 platforms Tag: 59222
IDE Start Page; Wrong Modified Date
Anyone had this problem? An app that I've been working on every day for
weeks has a "last modified" date in September. It's not a biggie, but it's
annoying.
(yes my system date is right)
Eric Tag: framework .net on Itanium 2 platforms Tag: 59214
XML: & --> &
Hi,
I believe there is in the .NET Library a method to convert a given string
containing not allowed characters (such as & or <) in XML files to
corresponding domains (& etc).
Where can I find such a utility methods?
Thanks,
Leszek Taratuta Tag: framework .net on Itanium 2 platforms Tag: 59212
Best way to install a .NET app
Hello,
I have an application that I created and I was wondering
what was the best to provide a install program. I have
been searching the newsgroups and I've read something
about the "Windows Install SDK". Is this the best route
to go?
I am looking to do something "homegrown" rather than go
out and spend money on some installation program.
Thanks,
Deane Tag: framework .net on Itanium 2 platforms Tag: 59211
Socket.BeginReceive Question
In all the examples that come with VS, the callback method passed to
BeginReceive look something like:
Dim read As Integer = s.EndReceive(ar)
If read > 0 Then
so.sb.Append(Encoding.ASCII.GetString(so.buffer, 0, read))
s.BeginReceive(so.buffer, 0, StateObject.BUFFER_SIZE, 0, New
AsyncCallback(AddressOf Async_Send_Receive.Read_Callback), so)
Else
' All the data has been read.
So some data comes over, you grab it, then do BeginReceive again in case
there's more data in the buffer (at least in my understanding). But the
documentation says that EndReceive will block until some data is there or
there is a Socket Exception.
Are all these examples incorrect in coding that if the bytes read = 0 then
all the data has been read? The only time my code gets there is when there
is an error.
Just hoping for some clarification,
Mike Tag: framework .net on Itanium 2 platforms Tag: 59204
how to obtain the IP Address of DNS Server through the framework
Does anyone know how to obtain the IP Address of my local machine's DNS
Service's IP Address through the framework?
I am writing a DNS query that can resolve an email address to its
corresponding mail server IP. Instead of hardcoding the DNS Server's IP
Address, is there a way to obtain the IP programmatically through the
framework? If not, is there a way to resolve an email address
(System.Net.Dns can only resolve hostnames)?
Brian Tag: framework .net on Itanium 2 platforms Tag: 59200
SqlClient connection pooling defect:
When connection pooling is enabled with maximum 5 and
minimum 0 connections, the first time I make a
connection, 2 connections are created in the pool instead
of a single connection. This looks like a defect to me.
New connection should only be created when required. Is
there a way I can limit it to a single connection when
the pool is created.
Thanks,
Koova Tag: framework .net on Itanium 2 platforms Tag: 59197
Methods missed
Hi,
I'm implementing a IHttpModule.
I get the Context object like this:
HttpContext m_HttpContext = (HttpContext)((HttpApplication)
sender).Context);
this is done on the BeginRequest event of the Custom
module when I try to access the following statemen:
m_HttpContext.Request.Path.EndsWith("Login.aspx");
I did not receive any error at the compile or run time but
if I debug and watch this sentence I see this text into
the value field of the watcher.
error: 'm_HttpContext.Request.Path.EndsWith' does not exist
Looks that the EndsWith method is not recongnized for the
Path string object contained into the Request object.
Does any know what is going on?
Regards...
. Tag: framework .net on Itanium 2 platforms Tag: 59196
PPC2002 eVC++ ActiveSync Provider setting COM object property (x-posted)
Hi All,
I'd REALLY appreciate your help on a small problem - actually I suppose
its not really a problem but a lack of understanding; my C++ skills are
terribly jaded due to lack of use.
Here is some code I've got within an ActiveSync provider I've written
(thanks to the Template with the SDK). All I want to do is initialise a
COM object (written in C#.Net, incidentally) and set one of its
properties.
So I have tried this (the classid of the object is HeyJim...you may have
guessed its only a test object):
CoInitializeEx(NULL, COINIT_MULTITHREADED);
GUID heyjimguid = __uuidof('HeyJim');
CoCreateInstance(heyjimguid, NULL, CLSCTX_INPROC_SERVER, 'HeyJim',
NULL);
I'm sure with the experience on this ng you'll spot the problem straight
away. When i attempt to compile this however in eVC++3 I get 'too many
chars in constant' for the 'GUID heyjimguid' line and 'cannot convert
parameter 4 from const int to const _GUID @'.
And besides, my understanding of __uuidof is that it gets the GUID at
compiletime...thats no good surely, since the GUID will be on PPC2002 not
on my development machine; so how do I ensure that the CoCreateInstance
i'm doing will instantiate the object on the PDA? Won't it have a
different GUID?
I hope you can help, I'd love to offer something in return but I guess I
just can't.
Please Help
Jim Tag: framework .net on Itanium 2 platforms Tag: 59190
ANN: Compact Framework Online chat in 10 minutes!
Just a note that there will be an online chat starting in about 10 minutes!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Title: .NET Compact Framework and Smart Device Programming
Date: October 9th
10:00-11:00am (Pacific)
1:00-2:00PM (Eastern)
17:00-18:00 GMT
Description: You know them from the newsgroups! You love them for their
immense knowledge! Please join these amazing Microsoft MVPs in this live
chat regarding the .NET Compact Framework and the Smart Device Programming
features of VS.NET. The .NET Compact Framework is a subset of the .NET
Framework designed to allow .NET developer to target smart devices. The
Smart Device Programming features of VS.NET allow embedded developers to
target devices running the .NETCF
To join this chat go to http://msdn.microsoft.com/chats
--
Thanks!
Michael Fosmire
Community PM/MVP Lead, Windows Embedded
This posting is provided AS IS with no warranties, and confers no rights. Tag: framework .net on Itanium 2 platforms Tag: 59187
Avoiding IO Exception
I'm writing a service application (VB.NET) that, for debugging, writes to a
log file.
Sometimes, but not always, when I start the service, it stops because of an
unhandled exception. The event log shows:
Service cannot be started. System.IO.IOException: The process cannot access
the file <my file name> because it is being used by another process.
I *thought* I took care of this by making the logging methods shared, but I
guess it doesn't work:
Public Class Logger
Public Shared Sub LogText(ByVal message As String)
Dim fs As FileStream = New FileStream(Application.StartupPath & "\Sleuth
NCIC Server.log", FileMode.Append)
AddText(fs, message)
fs.Close()
End Sub
Private Shared Sub AddText(ByVal fs As FileStream, ByVal value As String)
Dim info As Byte() = New UTF8Encoding(True).GetBytes(Now & " - " & value &
vbCrLf)
fs.Write(info, 0, info.Length)
End Sub
End Class
Any ideas on what I can do? Tag: framework .net on Itanium 2 platforms Tag: 59185
How to: Launch application AND open the "triggering" file
Hi, I need some help. Hopefully this is trivial!
I have created a special file type for my application. I can easily
associate the app with the file type manually and I have even seen som code
to do this as well. (MSDN - 185453)
However, once the app is launched after double-clicking on the file,
how can I identify which file was selected, i.e. triggered the launch.
Pls point me to the right direction for search!
Thanks,
Bob Tag: framework .net on Itanium 2 platforms Tag: 59179
Logins and User groups
Is there any way I can create a Group from .Net code? Obviously assuming the
user is an administrator.
Cheers
Sparky Tag: framework .net on Itanium 2 platforms Tag: 59178
Licensing, trials etc
Is there a class library that allows me to implement licensing into an
appliation, and disable it after a set period etc? Tag: framework .net on Itanium 2 platforms Tag: 59176
creating an exe that starts without framework
is there a way to create *.exe files which have been coded in C# and
run without an installed .net Framework?
Sebastian Erler Tag: framework .net on Itanium 2 platforms Tag: 59175
ComboBox.DataSource .Net v1.1.4322: Problem to assign new datasource
Hello,
I have set the datasource property of a combobox control to an own
type which iherits from CollectionBase.
The first time the assignment works fine but when I try to reassign an
updated version my Collection to the datasource, the datasource
remains unassigned.
With the former framework version it worked fine but with 1.1.4322 the
reassignment is not working.
Does anybody know what the reason for this behavior is?
Thanks for your help in advance,
best wishes,
Stephan
Code Excerpt:
BatchEntries batchEntries = mQueue.Entries;
this.cmbEntries.DataSource=null;
if (batchEntries.Count>0)
{
this.cmbEntries.DataSource=batchEntries;
this.cmbEntries.DisplayMember="DisplayName";
} Tag: framework .net on Itanium 2 platforms Tag: 59173
Exchange server and dev
Hi
From within ASP.NET is one able to access exchange server? more specifically
we need the address books/distribution lists, must also be able to maintain,
add, delete, update, etc to that addresss book.
Is this possible? if so where do i start looking to dev such an app?
Thanks
Jason Tag: framework .net on Itanium 2 platforms Tag: 59172
Finding the current executing directory
This may sound pretty trivial but it's been driving me nuts; how does one
get the full directory path of the executing application. Using
Environment.CurrentDirectory returns c:\WINNT\System32 - the obviously wrong
path :-(.
This is a Windows development issue so HttpRequest.PhysicalApplicationPath
does not apply. Any suggestions will be appreciated.
Regards, Raphael. Tag: framework .net on Itanium 2 platforms Tag: 59165
GAC question
Hi,
Case of two applications adding the same strong name assembly to the GAC,
and one application removes the assembly from the GAC while uninstalling,
will the other application still have the assembly in the GAC?
Thanks, Hagay. Tag: framework .net on Itanium 2 platforms Tag: 59158
p2p
I have to write something VERY similar to Kazaa.
Is there something I could use to do some estimation of development time? Is
there anything done on the subject in c#? I couldn't find anything handy in
google for c#.
any pointers?
thanks,
Matias Tag: framework .net on Itanium 2 platforms Tag: 59150