Search

You searched for the word(s): userid:2277
Page 1 of 3 (25 items) 1 2 3 Next >
  • Invalid file name for monitoring: XXX path

    In .NET 1.1 , If you write code like this Cache.Add("key",DateTime.Now.ToString(),new System.Web.Caching.CacheDependency(@" C:/Common.config "),System.Web.Caching.Cache.NoAbsoluteExpiration,System.Web.Caching.Cache.NoSlidingExpiration,System.Web.Caching.CacheItemPriority.Default,null); please pay attention to the filename, even this file path is valid and you will always get the error that say invalid file name for monitoring. So what happend? Permission? Or Any IIS Lock Software? hehe, the problem
    Posted to Montaque (Weblog) by Montaque on Thu, Jun 8 2006
  • What's the first web 2.0 product of microsoft?

    Because of the unexpected shutdown, my outlook can not start up and it's trying to fix the storge files behind. then I open IE and use OWA( outlook web access). as expected,there are lots of junk mail,:)so I press delete one by one, the email are dropped . however ,the screen does not refresh ,seems it send the delete command asynchronously. and the request/response reveived are kind of web-formatted xml. so Is owa the first web 2.0 app of microsoft? <?xml version='1.0'?><D:move xmlns:D
    Posted to Montaque (Weblog) by Montaque on Tue, May 30 2006
  • Sometimes, Hello world does not work;)

    I add a web method to existing web service, which return array of arraylist as the result. then everything workes worse, the client can not invoke either of the web method here is a simple code public service1: WebService { public service1() { } [WebMethod] public string HelloWorld() { return "Hello World, I am running in montaque notebook .NET"; } [WebMethod] public ArrayList [] TestArrayList() { ArrayList [] ar=new ArrayList[1]; ar[0].Add(1); ar[0].Add(2); return ar; } } when I test the code in
    Posted to Montaque (Weblog) by Montaque on Thu, Dec 30 2004
    Filed under: Tech Notes
  • Automate Business Process with Biztalk HWS and Visual Studio.net

    a great article about that from msdn mag. http://msdn.microsoft.com/msdnmag/issues/04/10/HumanWorkflowServices/default.aspx
    Posted to Montaque (Weblog) by Montaque on Sat, Oct 30 2004
  • Adjust the datagrid column with in edit mode

    void MyGrid_Edit(object sender, DataGridCommandEventArgs e) { MyGrid.EditItemIndex = e.Item.ItemIndex; BindMyGrid(); DataGridItem line = MyGrid.Items[e.Item.ItemIndex]; TextBox tb1 = (TextBox)line.Cells[0].Controls[0]; TextBox tb2 = (TextBox)line.Cells[1].Controls[0]; tb1.Width = Unit.Percentage(100); tb2.Width = Unit.Percentage(100); tb2.TextMode = TextBoxMode.MultiLine; } refer: http://www.atmarkit.co.jp/fdotnet/dotnettips/082wideedit/wideedit.html
    Posted to Montaque (Weblog) by Montaque on Fri, Apr 23 2004
  • Remember to invoke FlushFinalBlock()

    When encrypting a stream with System.Security.DesCryptoServiceProvider, code sniipt like the following. Byte []EncryedText=Convert.FromBase64String(this.textBox3.Text) ; System.IO.MemoryStream EncryptedStream=new System.IO.MemoryStream(EncryedText); System.IO.MemoryStream OutMS=new System.IO.MemoryStream(); EncryptedStream.Seek(0,System.IO.SeekOrigin.Begin); System.Security.Cryptography.DESCryptoServiceProvider x_des=new DESCryptoServiceProvider(); //?? x_des.IV=m_IV; x_des.Key=m_Key; //??? System
    Posted to Montaque (Weblog) by Montaque on Fri, Apr 9 2004
    Filed under: Tech Notes
  • Get public key from certificate, and Convert the key to the RSAParameter

    byte[] pk = cer.GetPublicKey(); byte[] m = new byte[pk.Length - 3]; Buffer.BlockCopy(pk, 0, m, 0, m.Length); byte[] e = new byte[3]; Buffer.BlockCopy(pk, m.Length, e, 0, 3); String key = "<RSAKeyValue><Modulus>" + Convert.ToBase64String(m)+"</Modulus><Exponent>"+Convert.ToBase64String(e)+"</Exponent></RSAKeyValue>"; Console.WriteLine(key); RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(); rsa.FromXmlString(key); Console.WriteLine(rsa.ToXmlString(false
    Posted to Montaque (Weblog) by Montaque on Thu, Apr 8 2004
    Filed under: Tech Notes
  • Microsoft SQLXML

    SQLXML 3.0 extends the built-in XML capabilities of SQL Server 2000 with technology to create XML Web services from SQL Server stored procedures or server-side XML templates. SQLXML 3.0 also includes extensions to the .NET Framework that provide SQLXML programmability to the languages supported by Microsoft® Visual Studio® .NET, including C# and Microsoft Visual Basic® .NET. System Requirements Supported Operating Systems: Windows 2000, Windows NT, Windows XP The Web Services toolkit download doesn
    Posted to Montaque (Weblog) by Montaque on Wed, Apr 7 2004
    Filed under: Tech Notes
  • Public Keys are not the same

    Aim: I wanna guarantee that only signed assembly have the access to my class library. SO I make use of the .net StrongNameIdentityPermissionAttribute to protect my assembly. When testing ,I encounter the different public keys of a same public/private key pair. 1. Extract the public key from the keyfile Sn -tp montaque.snk the public key echos: Public key is 0702000000240000525341320004000001000100eb3a0ffb39f8d13e553d77c40399287cb7f29e d6199da3daa9a31db7c437e0c550bae8e4bad69b7aad37ff9acc541166256d384176fe22ae6b1a
    Posted to Montaque (Weblog) by Montaque on Sat, Apr 3 2004
    Filed under: Tech Notes
  • Message Queuing by MQSeries with C#

    MSMQ is the well-known Message API for windows developers. You can use MSMQ API directly by using System.Messaging class. Sometimes user needs to use IBM MQSeries especially for mainframe developers. IBM is providing a set of APIs Dotnet support pack using this we can access MQSeries. In this article I will explain the way to get and put messages using MQSeries and also will show the way to identify a particular message in queue of messages. First of all we need to install the MQSeries Server in
    Posted to Montaque (Weblog) by Montaque on Fri, Apr 2 2004
Page 1 of 3 (25 items) 1 2 3 Next >