
huby
Avatar/Signature-
Posts
32 -
Joined
-
Last visited
About huby
- Birthday 08/13/1978
Personal Information
-
.NET Preferred Language
C#
huby's Achievements
Newbie (1/14)
0
Reputation
-
hello all! i need to sign and encrypt an e-mail message (using a certificate in the certificate store) and send it using C#2005. this is very confusing, as i found all required resources on msdn2 to sign and encrypt a cmsEnvelopedMessage, but i cannot find how this relates to an e-mail message (System.Net.Mail) in an older vb6 version, we used CAPICOM, but aren't able to get it to work for the .NET 2.0 framework ... is it worth looking into, or is CAPICOM obsolete at this point ? any hints/tips/links are welcome ... thank you! Huby.
-
hey everyone! i would like to launch a .NET assembly from vbScript. example : Dim obj set obj = CreateObject("BusinessLogic.CDataLoader") where BusinessLogic is a .NET dll, strong-named, and registered in the GAC. it seems vbscript looks for a COM component, as it tells me "ActiveX component can't create object: 'BusinessLogic.CDataLoader'" any hints? thank you, Huby.
-
howdy folks! i have a little problem, and am looking for suggestions and insights. we're developing a prototype application for one of our customers; the idea behind the prototype is that one client application will "simulate" many clients and make calls on a web service, using actual implemented web services. we want to see how much stress the server can take, and optimize the code, iis configuration, and so on. the client generates x threads, and each thread makes y calls to the server. each thread has a cookiecontainer which allows us to make several calls within the same IIS session. the server gets some data from a SQL server, and returns a dataset. nothing fancy (so far, but it will evolve within a more complex architecture) so far, everything is working ok, but we're not really satisified with the results. the client cpu, when launching 500 threads, is at 30%, while the server cpus are also at 30% ... (network traffic is about 2% so it's no lan bottleneck) so this puts everything back in perspective, from the threaded approach, to the cookie container, to the way web services are called, to the choice of web services themselves ;) i need to push the server close to its limit (and it's a big machine, too ... ) a few details : - VS 2003, .NET framework 1.1 - c# client application - threads are declared in an array, and each thread is started with the Thread.Start() method - web proxies are generated with "add web reference ..." from visual studio - web methods are called synchronously - logging is done using .NET tracing - global varables are stored in a "shared memory" (singleton) class. project is confiential, so i can't post any actual code (sorry) but it must be highly performant, both on client and server. even if it implies more code. current ideas for changes : - asynchronous calls to web services ? - use protection and lock mechanisms for threads ? mutex ? - remoting ? - no threading ? maybe the cpu is constantly switching contexts ? - better way to share globals between threads ? (i need them to display statistical data about execution times) thanks for any insight and suggestions. i've never had to do any performance-driven apps before so i'm learning a lot of stuff as i go, especially about threading, so there might be some important notions that i'm missing. have a good day! huby.
-
you using c# or vb.net ? in c#, remeber to use ToString() : while (myReader.Read()) { myName = myReader["name"].ToString(); }
-
if your main page is doing a postback, maybe the dynamic control isn't re-created yet when you pass the value? try using a session variable for the value you pass from a page to another just a thought ...
-
http://www.asp.net/faq/AspNetAndIIS6.aspx
-
do you use the same user name on both machines ? because "my documents" won't have the same path if the user names are different ;)
-
ASP.NET uses a windows account, named ASP_USER or something like that. if you want to access c:\somethingelse, you have to set folder permissions so that ASP.NET actually has access to the folder. by default, ASP_USER only has access to c:\inetpub but it's not a very good idea to do that. try to keep your web applications all in the same place ... or set your application virtual directory to c:\somethingelse
-
in windows server 2003, ASP.NET is disabled by default (for security reasons) so you have to tell IIS that running of ASP.NET pages is allowed.
-
lol i just logged on to tell you it works, and that is exactly how i solved it :D thanks anyway !! huby.
-
yes, i do :( i followed the process step-by-step and the calendar control always returns the value '1/1/1' ... i suppose it loses its value on Postback, but i don't know how i can have him return the date i actually clicked ... thank you for the reply, any more hints are more than welcome !! peace, Huby.
-
hello everyone! i am trying to use a calendar control. basic function, really. i want to click on a date, query a database for events for which the date is the same, and then display the events. my problem is that i can't find the way to extract the date from the calendar control to pass it as a parameter to my sqlcommand object. i set a breakpoint on the SelectionChanged sub, but when i run it, my code never actually stops at that event. ok, here's some code : private DateTime _dt; private void Page_Load(object sender, System.EventArgs e) { //on first execution, we just use today's date if (!this.IsPostBack) { _dt = DateTime.Now; } LoadEvents(); } private void LoadEvents() { string strSQL = "Select * from Events WHERE eventStartDate = @date order by eventStartDate asc"; SqlConnection conn = new SqlConnection(myConnectionString); conn.Open(); SqlCommand cmd = new SqlCommand(strSQL,conn); SqlParameter prm = new SqlParameter(); prm.SqlDbType = SqlDbType.DateTime; prm.Size=8; prm.ParameterName = "@date"; prm.Value = _dt; cmd.Parameters.Add(prm); SqlDataReader dr; dr = cmd.ExecuteReader(); while (dr.Read()) { Response.Write(dr["eventTitle"]); } dr.Close(); conn.Close(); } private void Calendar1_SelectionChanged(object sender, System.EventArgs e) { // this code is never executed ... is it in the wrong event ? _dt = Calendar1.SelectedDate; } yes, i'm using code-behind. any hints are welcome. thank you !! Huby.
-
hello ! i use the system.drawing library to make thumbnails at runtime (for an online photo album. the idea is that the user can drag/drop a folder of images on the server via ftp, and it gets integrated automatically in the album), no problem. however, i'd like to NOT save my files to disk, but instead just output them as hyperlinks on my ASP.NET pages. but i can't find the link between the bitmap object, and the image control. maybe there's no way, but i'd like to know ;) peace, Huby.
-
has anybody used/purchased/tried a smartphone device ? i recently sold my iPaq because it didn't have bluetooth or wi-fi, and now that i am looking for another one, i might as well go for a smartphone. i saw one in a store, but i am puzzled by the size of the screen, which i find quite small ... i also find it quite expensive at 550 euro, but i guess if it's a phone + a PDA, it may be worth it ... as long as i don't lose it :D any thoughts are welcome. peace, Huby. ps : i know it's a bit off-topic, but i'd rather ask here, because elsewhere people will just tell me "stay away from it, it's got a microsoft OS !!" i KNOW it does and that's why i'm interested in one ;)
-
hey i'm trying to create some visual effects with asp.net. example of the kind of thing i'm looking for : http://www.softcomplex.com/products/tigra_hints/demo.html basically i want a small image, and an event (mouseover, or even click) to display that image in full-size without reloading the page or navigating to another page. i've tried using tigra hints, but it's a huge hassle, since my images come out of a DB, and i don't have the courage to create config files at runtime ... does an alternative exist in ASP.NET ? can i do it myself ? how do i get started on such a thing ? thank you ! Huby.