|
You aren't running the latest ZoneAlarm are you? VS.NET and ZoneAlarm don't seem to play nice together.
Micco.
|
|
|
|
|
Nope. I gave up on Zone Alarm a long time ago.
Some people think of it as a six-pack; I consider it more of a support group.
|
|
|
|
|
Guys,
Just wondering if there are any documents on the generation of strong names for assemblies.
Is it the norm to :
a) Generate a strong name file for each and every assembly you want to put in the GAC
b) Generate a company/personal one(and only 1), and use that against each and every assembly you want to put in the GAC
or is there some other method that is employed?
|
|
|
|
|
I don't know what the norm is, but I can say what I do. I generate a single keyfile for use by everything I do for a company, whether or not it will go in the GAC. (You never know when you will want to put something there).
Depending on your environment, you may want to delay-sign the assemblies, and then complete the signing later with a super-secret key file accessible only to trusted people. (I have not needed to do that yet).
my blog
|
|
|
|
|
1-i want to notify to user when
a program try to access to internet do you think
is there any event in .net or in windows for this
purpose and if there is which events
2- i want to see all open ports in mycompuetr
somthing like netstat command in windows but iwant
do this programmatically
3-if i saw a port is open how can i close it
programmatically
koosha
|
|
|
|
|
Hi,
I have a .NET C++ based assembly "A" which is using some com interfaces dll (say "B"). Now I want to use this .NET assembly from another com dll "C".
To do so, I generated a strong key for A, used tlbexp.exe to create its tlb, register it using regasm.exe and to install it in global cache I used gacutil.exe. Now while using gacutil.exe it gave me error that one of the refered interop (which was interop for B) has no strong key. So I created a strong key and generated the interop for B using tlbImp.exe. But then there were a bunch of other com dlls which dll B was using and were with out strong-key.
I am stuck here and don know what to do. Can anyone let me know anyother way to get out of this problem?
Thanks
Bilal Farooq
|
|
|
|
|
It is not necessary to register A in the global cache in order for it to work. So, assuming regasm did not give any errors, you should be fine as-is...
my blog
|
|
|
|
|
I try to do the first steps on WSE 2.0.
First I try the QuickStart Samples, which works.
I rewrite the samples to give them a WinForm UI, works.
But as I start with new projects, I get the 'Operation Timed Out' message whatever I try. I also try to build in some errors in the original code to get the message too, but I never get it.
I am out of ideas new, maybe one could help.
I have prepared a zip of my project for all interested helpers.
THANKS
Gerhard
|
|
|
|
|
Hi guys,
I'm trying to use .NET to retrieve the list of Internet Explorer history but don't really know where to start. Does anyone have any advice or clue on where and how I should start!?
Thanks...
Anzy
|
|
|
|
|
in folder(french version) : C:\Documents and Settings\username\Local Settings\Historique
|
|
|
|
|
Hiya,
I've written a macro for vs.net 2003 to create a .cpp file with all the usual boilerplate stuff at the top. It works fine to an extent - the file is created and filled with the commented boilerplate text. However, I can't find out how to add the file to the current solution and open it automatically after creation.
Any help would be massively appreciated!!
|
|
|
|
|
Hiya,
fixed it - here's the solution for anyone who didn't know how to do it themselves. Also hopefully google will pick this up so anyone looking for a similar solution will find it!
Dim fullpath As String = "c:\file.cpp"<br />
<br />
DTE.ItemOperations.OpenFile(fullpath)<br />
DTE.ItemOperations.AddExistingItem(fullpath)
|
|
|
|
|
Is possible to create a round form for pocket pc in vb.net?? Or any different shape in a form?
|
|
|
|
|
Hi,
I am working on an application that needs to access the token generated by Active Directory when a user logs in. I believe the token is a kerberos token. Is there some way to access that token using the .NET FCL or any other way?
Secondly, if I am to generate a kerberos token so as to enable a user to log into an application using AD for the authentication through a .NET application without having a login box, do I need to have a separate domain controller? Can't I just use my workstation as a local domain controller? If I cannot, would it help if I installed Windows Server 2000/2003 ?
I am working on a system that has Windows XP Professional edition with SP1 installed and am using ADAM (Active Directory Application mode).
|
|
|
|
|
I have a simple windows form with a DataGrid bound to a dataset from a database. When the form closes (event 'Closing') I want to flush all changes made in the grid to the database. Everything is fine except the current cell...if I have not left the cell, the data is not updated.
So far I have tried
<br />
private void OnClosing(object sender, System.ComponentModel.CancelEventArgs e)<br />
{<br />
System.Windows.Forms.DataGridCell cell = this.dataGrid1.CurrentCell;<br />
DataGridColumnStyle dgc = this.dataGrid1.TableStyles[0].GridColumnStyles[cell.ColumnNumber];<br />
bool good = this.dataGrid1.EndEdit(dgc, this.dataGrid1.CurrentRowIndex, false );<br />
<br />
this.oleDbDataAdapter1.Update( this.dataSetFeature1 );<br />
}<br />
without luck. Does any one know how to get the current state of the cell into the dataset during 'Closing'?
thanks in advance
cje
|
|
|
|
|
Hi,
My problem is that I have to access inbox and outbox folders on a clients machine. Currently the client would connect to a website and click on a send/receive link which would take them to a page that uses a activex tag calling a vb6 cab file which would install a couple of things (+-2 mb) and continue on it way to accessing the folders. I would like to convert the vb6 to c# but from what I've read The client would have to download the framework which is just too big for them since most of them are on dial-up.
I have lost hope and I am seriously doubting whether anyone would even answer this post -
Any suggestions would be appreciated - Thanks in advance.
Gavirj
|
|
|
|
|
As far as I know: in general, if framework deployment is an issue, then your only other option is ASP.NET with Web Forms / Web Services. This removes the issue of client deployment, but I am not sure you would be able to achieve your requirements using this method.
|
|
|
|
|
Using ASP.NET would be ideal as they wouldn't have to download anything. But I think the problem comes in with accessing their local directories. Does anybody know if it is possible to use ASP.NET to access a clients local files over the internet...maybe by digitally signing the code something similar to the way java does it ?
gavirj
|
|
|
|
|
Nope, not possible to use ASP.NET that way.
I remember seeing a web site that promoted embedding only part of the framework in your application, but I could not find a link. If that is possible, then you could make a smaller distribution.
|
|
|
|
|
Hi pals,
I´m building a compiler for an Algorithm Specification Language, and the values passed to the functions are huge (64 bit), so the call stack overflows quickly. Does anybody know how to change the stack size for the current process in a .NET program?
Thanks in advance.
|
|
|
|
|
It's so strange that today when I compile some sample code on .net remoting, vs.net 2003 says System.Runtime.Remoting.Channels.Tcp does not exist! also,the .Http namespace does not exist.
I remembered I should have comiled and ran some examples contained Tcp or Http namespace.
Framework 1.1.4322, Win2K advanced server with sp4.
And I reinstalled VS .net 2003 but I takes no effect.
What's the problem? Any one had encountered?
Thanks.
|
|
|
|
|
Hi,
I have a complete implementation of a codesmith-template compatible code generation engine that supports batch output, subtemplates, and outputs in any .NET language that has a CodeDom provider. Here's an example of how you would write a template that can output to multiple targets:
Let's say we had a template class named MyTemplate with the following interface:
class SampleTemplate
{
public void GenerateText(System.IO.TextWriter writer);
}
Then let's say that I wanted write the output of this template simultaneously to the console, a string, and a file at the same time. Here's how it would look:
class Class1
{
public static void Main()
{
...
// Create the template itself
SampleTemplate MyTemplate = new SampleTemplate();
// Create the targets to write to
StringTarget sTarget = new StringTarget(MyTemplate);
FileTarget file = new FileTarget("myfile.cs", MyTemplate);
ConsoleTarget console = new ConsoleTarget(MyTemplate);
// Output to the console
Console.Write();
// Output to the string
string sOutput = sTarget.ToString();
// Output to the file
file.Write();
...
}
}
Right now, I'm still not sure whether to publish this, but I'd definitely like to see what everyone's opinion on this is. What do you think?
|
|
|
|
|
I am trying to set up a form to edit a byte array and am looking for a control that gives me an interface that shows the following:
1) First column is the offset from the start of the array
2) Second columns is a 8 byte or 16 byte data in raw hex format
3) Third column is the ASCII representation of the data in column 2
Kind of looks like the this:
FEAC00E0 00 EE ED F9 60 5F 28 F4-21 4C 38 A2 4E 87 8C 00 .îíù`_(ô!L8.N...
FEAC00F0 01 00 51 C0 00 00 03 00-01 F6 F9 C6 FB AA 00 00 ..Q......öù.û...
FEAC0100 00 04 26 32 00 C8 00 70-17 FA 00 04 00 01 00 00 ..&2...p.ú......
FEAC0110 00 00 00 02 04 20 00 62-00 A4 00 E6 00 00 30 2E ..... .b...æ..0.
FEAC0120 36 33 06 00 64 00 05 00-32 00 03 00 05 00 50 00 63..d...2.....P.
Any ideas where I can get one, or any leads on creating one?
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Ok, since no one else has answered here I figured that I would post the solution that I found to my own problem.
It turns out that there is already a control available to do this right inside the standard runtime framework itself called the ByteViewer.
It lives in System.ComponentModel.Design
Why it is not available in the tool box I have no idea, but here is how you can use it.
Friend ByteViewer As System.ComponentModel.Design.ByteViewer
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ByteViewer = New System.ComponentModel.Design.ByteViewer
Me.SuspendLayout()
'
'ByteViewer
'
Me.ByteViewer.Dock = System.Windows.Forms.DockStyle.Fill
Me.ByteViewer.Font = New System.Drawing.Font("Courier New", 9.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.ByteViewer.Location = New System.Drawing.Point(0, 0)
Me.ByteViewer.Name = "ByteViewer"
Me.ByteViewer.Size = New System.Drawing.Size(634, 287)
Me.ByteViewer.SetDisplayMode(DisplayMode.Auto)
Me.ByteViewer.TabIndex = 0
'
'frmViewRaw
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(634, 287)
Me.Controls.Add(Me.ByteViewer)
Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
Me.MaximizeBox = False
Me.MinimizeBox = False
Me.Name = "frmViewRaw"
Me.Text = "frmViewRaw"
Me.ResumeLayout(False)
End Sub
This creates a nice ByteView control that allows you to view any array of byte oriented data you can throw at it.
The SetDisplayMode lets you change views between Ansi, Unicode, Hexdump or Auto.
A lovely little tidbit I wanted to make sure you all knew about.
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
|
|
|
|
|
Hello, I dont understand whats going on with my DB2 connector. I used to
have the code in a class that worked fine. But when I tried to use it in a
webservice I get this error: System.InvalidOperationException:
ExecuteReader: Connection property has not been initialized.
1) I create and open a new OleDbConnection
adoConn adoConn = new adoConn();
adoConn.Run("INTRANET");
2) I execute the query
OleDbDataReader myReader = adoConn.dbSQLSelect("Select * from USERS");
ERROR
Line 47: myReader = myCommand.ExecuteReader();
What might be the problem?
|
|
|
|