Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Sebastian T Xavier

@Sebastian T Xavier
About
Posts
304
Topics
121
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Cant find onClick function in C#
    S Sebastian T Xavier

    just check registration.aspx.cs and let us know....

    C# csharp sysadmin help question

  • Enter-PSSession : Connecting to remote server failed
    S Sebastian T Xavier

    Hello, I was trying to connect to a machine(192.168.1.194); using powershell using the following query Enter-PSSession 192.168.1.194. But I got the following error. Enter-PSSession : Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.At line:1 char:16 + Enter-PSSession <<<< 192.168.1.194 + CategoryInfo : InvalidArgument: (192.168.1.194:String) [Enter-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : CreateRemoteRunspaceFailed Can you help me to solve this? Any help would be appreciated. Thanks & Regards Sebastian

    C# help database sysadmin windows-admin question

  • Is there a way to restrict the user from changing virtual directory name
    S Sebastian T Xavier

    :thumbsup: Yes. Thanks for your time. :-D

    ASP.NET question workspace

  • Is there a way to restrict the user from changing virtual directory name
    S Sebastian T Xavier

    At last I have found this. Just removing installation folder node from user interface editor will do this for us. Thanks for your support. Regards Sebastian

    ASP.NET question workspace

  • Is there a way to restrict the user from changing virtual directory name
    S Sebastian T Xavier

    but this is a typical scenario....

    ASP.NET question workspace

  • pdf rendering options
    S Sebastian T Xavier

    Its doable with abcpdf. But i don't remember the exact code. Can you please refer there help, which will be automatically installed.

    ASP.NET help

  • pdf rendering options
    S Sebastian T Xavier

    I have used abcpdf for the same purpose. Its very easy to integrate. Meanwhile, which tool have you used to get your pdf output from webpage?

    ASP.NET help

  • Web Page Similarity in all browsers
    S Sebastian T Xavier

    you need to program it such a way that it is compatible all main browsers

    ASP.NET css question

  • Is there a way to restrict the user from changing virtual directory name
    S Sebastian T Xavier

    Is it possible to restrict the user from changing virtual directory name while installing a web application using a web setup? Regards

    ASP.NET question workspace

  • C Sharp Login with different user privilege
    S Sebastian T Xavier

    It will be better to define different roles & privileges; Then we can show / hide different tabs based on the privileges of the logined user.

    C# csharp question

  • How we can check whether exchange server is installed in a system using c#.
    S Sebastian T Xavier

    How we can check whether exchange server is installed in a system using c#.

    C# csharp sysadmin

  • Issue with regular expression
    S Sebastian T Xavier

    great help....worked...thanks

    C# regex help sysadmin json question

  • Issue with regular expression
    S Sebastian T Xavier

    Got the idea, Thanks... again i have another question... Here is my updated expression...

    string x = "user = 'sa' password='e X65dere!@#$%^&*()' server = 'localhost'";
    Regex rx = new Regex(@"password=\'([a-zA-Z0-9\\!@#$%^&*|() _'""*-+{}<>,.;/?:~`\[\]\\\\]+)\'");
    var r = rx.Match(x);
    if (r.Groups.Count > 0)
    {
    var g1 = r.Groups[0];
    MessageBox.Show(g1.ToString());
    }

    In this case it will match for every small & large cap letters, numbers and special characters except = . If the password contains = the expression fails... can you please help?

    C# regex help sysadmin json question

  • Issue with regular expression
    S Sebastian T Xavier

    I have solved this by changing the expression as follows...

    Regex rx = new Regex(@"password='([a-zA-Z0-9\\%^&_*]+)\'");

    Regards Sebastian

    C# regex help sysadmin json question

  • Issue with regular expression
    S Sebastian T Xavier

    Hello, I have an issue in regular expression matching...

    string x = "user = 'sa' password='eX65dere' server = 'localhost'";
    Regex rx = new Regex("password=\'([a-zA-Z0-9]\\_+)\'");
    var r = rx.Match(x);
    if (r.Groups.Count > 0)
    {
    var g1 = r.Groups[0];
    MessageBox.Show(g1.ToString());
    }

    while executing this, I have got the following error message. parsing "password='([a-zA-Z0-9]\_+)'" - Unrecognized escape sequence \_. the following will work fine, when i try to add _ to the expression the exception occurs.

    Regex rx = new Regex("password=\'([a-zA-Z0-9]+)\'");

    Can anyone help me on this?

    C# regex help sysadmin json question

  • crone file
    S Sebastian T Xavier

    What is your exact requirement? for scheduling tasks it will be better creating a desktop application & using windows scheduler to schedule it....

    C# csharp tutorial

  • Problem with Exchange server monitoring
    S Sebastian T Xavier

    Hello All, I have a problem with Exchange server 2007. I was trying to execute the following query get-mailbox | FL. This query was working when I tried it in the Exchange server's power shell console after executing following query Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin. But I need it to be executed from a remote machine, so I have executed it from my powershell console , as follows... $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin get-mailbox | FL} But, this query fails with the following error...

    A positional parameter cannot be found that accepts argument 'get-mailbox'.

    +CategoryInfo :InvalidArgument: {:} [Add-PSSnapin], ParameterBIndingException
    +FullyQualifiedErrorId: PositionalParameterNotFound,Microsoft.Powershell.Commands.AddPSSnapinCommand

    I have modified this query again and added a ; after the snapin add section. $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin; get-mailbox | FL} This is also fails with the following error.

    Active Directory server exchangeserver.xxxxxx.local is not available. Error message: The supplied credential is invalid.

     + CategoryInfo           :   NotSpecified: <0:int32> \[Get-MailBox\],ADOperationException
     + FullyQualifiedErrorId  :   A2B6F75B,Microsoft.Exchange.Management.RecipientTasks.GetMailbox
    

    Then I have removed the add-snap-in section from the command and executed again. $server='192.168.1.23';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'exchangeserver\Administrator',$pwd; invoke-command -computername $server -credential $cred -scriptblock {get-mailbox | FL} Now it throws another error message.

    The term 'get-mailbox' is not recognised as the name of a cmdlet, function,

    C# windows-admin help database sysadmin linux

  • File upload using http
    S Sebastian T Xavier

    Thanks a lot.... Its a great help Let me try to implement it Best regards Sebastian

    C# sysadmin help question

  • File upload using http
    S Sebastian T Xavier

    Yeah, It should serve the purpose .... Let me try to implement it Best regards Sebastian

    C# sysadmin help question

  • File upload using http
    S Sebastian T Xavier

    Hello All, I need to upload files to a server using http in a windows application. Is that possible? I have got some examples using HttpPostedFile , but that is in web application. The code is given below...

    if( filMyFile.PostedFile != null )
    {
    HttpPostedFile myFile = filMyFile.PostedFile;
    int nFileLen = myFile.ContentLength;
    if( nFileLen > 0 )
    {
    byte[] myData = new byte[nFileLen];
    myFile.InputStream.Read(myData, 0, nFileLen);
    string strFilename =
    Path.GetFileName(myFile.FileName);
    FileStream newFile = new FileStream(strPath,
    FileMode.Create);
    newFile.Write(Buffer, 0, Buffer.Length);
    newFile.Close();
    }
    }

    I have placed an openfiledialog in a windows form and used the following code..

    FileInfo fileInf = new FileInfo(openFileDialog1.FileName);

    But how I can assign this FileInfo to HttpPostedFile. Any help would be appreciated. Thanks in advance... Sebastian

    C# sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups