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
M

mkomasi

@mkomasi
About
Posts
30
Topics
24
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How can I load a file same as RSS using URL?
    M mkomasi

    When I want to load an RSS file using its URL, below error will be appeared: A socket operation encountered a dead network _[IP Number]_ Maybe the problem is because of using a proxy server for internet connection. I've used Isa-Server to connect to internet. So I tried to use NetworkCredential but it can't solve the problem:

     System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential(myUserName, myPassword, myDomain);
    
     XmlUrlResolver xmlUrlResolver = new XmlUrlResolver();
     xmlUrlResolver.Credentials = networkCredential;
    
     XmlReaderSettings xmlReaderSettings = new XmlReaderSettings();
     xmlReaderSettings.XmlResolver = xmlUrlResolver;
    
     XmlReader xmlReader = XmlReader.Create(txtRssUrl.Text.Trim(), xmlReaderSettings);
    

    How can I load an RSS file using its URL?

    ASP.NET sysadmin help question csharp

  • Start Windows Service throw web application and Access Denied exception [modified]
    M mkomasi

    Hi and happy new year I've written a web application program by C# in VStudio 2005 that makes a list of all Windows Services in ther server. I want to start and stop the services. So I've used ServiceController and the mothods Start() and Stop(). But a Win32Exception (Access id Denied) appeared. for example: ServiceController serviceController = new ServiceController("MSSQLServer"); serviceController.Start(); How can I do that? Can anyone help me? Mehdi

    modified on Tuesday, January 08, 2008 3:16:11 AM

    ASP.NET question csharp sysadmin help tutorial

  • SetHelpString and Multi language
    M mkomasi

    Hi, I've used HelpProvider class to show some help strings on form controls. But when I write a Persian word in SetHelpString() function, I see some illegal characters instead of that Persian word. Can anyone help me to solve this problem please. P.S: Persian language is known as Farsi language also!:) regards, Mehdi

    C# help

  • DB and Several Systems
    M mkomasi

    Hi, I have two software system. Each one has a database in SqlServer 2000. One of both have to use another one database and it is better that there was some relation between some tables in two databases. So I think that I must add all tables of first database to second. But DB management will be so difficult because tables of both systems will mixed together. Can anyone suggest a solution for this problem? regards, Mehdi

    C# database help question

  • from Excel to Database
    M mkomasi

    Thanks. But I couldn't find so in CP.

    C# question database

  • from Excel to Database
    M mkomasi

    Hi, I want to export some data from an Excel file to a Database. How can I connect programmatically to Excel? How can I export from Excel to Databse?

    C# question database

  • Why does this exception rarely throw?
    M mkomasi

    Thanks for your guide. I know how can I catch the exceptions in my codes. Also I know if a column does not belong to a table, I couldn't access the column. But if you read my message again I describe that this error is appeared so rarely. So I couldn't catch it. regards, Mehdi

    C# question debugging tutorial

  • Why does this exception rarely throw?
    M mkomasi

    I am using a datagrid in my form sometimes when a child form of this datagrid form closed an exception like "Column C does not belong to the table T" was thrown. this exception is rarely occured so rarely and I can not find the way that it was generated, so I can not debug the the exception. does anybody know how to generate this exception and how to handle it.

    C# question debugging tutorial

  • How can I open a VS.Net project remotely?
    M mkomasi

    Hi, I have a VS.Net project that works correctly. When I open it from remote, a message will be appeared "The project location is not fully trusted by the .NET runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may receive unexpected security exceptions." How can I solve the problem? regards, Mehdi

    C# question csharp visual-studio sysadmin security

  • How to set display of a column according to its value in DataGrid?
    M mkomasi

    Hi, I put a DataGrid in form and I can browse the fields of a query. Now I want to show some string contents istead of numeric values of a field. For example I have a field Enabled with (0/1) values and I want to show Enabled/Disabled instead of 0/1 numbers. How can I do it? Mehdi

    C# tutorial question database

  • How can I Edit a Readonly DataGrid?
    M mkomasi

    Hi, I want to edit just a cell or a row in a DataGrid. I think that I have to set Readonly property to true, but when I change this property to false all cells and rows will be editable. I know I can have it easily in web application, but I want to know how can I do it in C# windows application.

    C# question csharp

  • Access Forbiden for copy project
    M mkomasi

    Hi, I've made a Web Application project by VS.Net; but when I want to do Copy Project below error message will be appeared: An error occurred while copying the project 'http://.../.../Project1.csproj'. The Web server reported the following error when attempting to create or open the Web project located at the following URL: 'http://.../Copy_of_Project1/'. 'HTTP/1.1 403 Access Forbidden'. Does anyone know what is the problem? Regards, Mehdi

    ASP.NET help question csharp visual-studio sysadmin

  • log file - access denied
    M mkomasi

    Thanks Mazdak, It works correctly.

    ASP.NET help question

  • log file - access denied
    M mkomasi

    Hi, I want to write some exception messages in a log file from my web application; but it raises an exception 'Access Denied to the path ... is denied'. When I add Full Control access to EveryOne the problem will be solved. But I know that it is not best way. Am I wrong? regards, Mehdi.

    ASP.NET help question

  • How to report changes in FTP server?
    M mkomasi

    Hi, I have an FTP server by some users. Each user has a folder and can add or delete a file in his specified folder. Now I want that I'm notifed by email when a user makes any change in his folder. Can I use C# to do this situation? Does FTP server provide me this situation or I have to develop a program? regards, Mehdi

    C# csharp sysadmin tutorial question

  • Change Notification
    M mkomasi

    Hi, I want to write a program that send a notififcation when files or folders in a path has been changed. So I've used FindFirstChangeNotification and WaitForMultipleObjects (same as a sample in MSDN document). As I read the document when I use INFINITE for time-out of wait function, it will not be timed out. But in my sample after about one minute, wait function will be timed out. Do you know what's the problem? Mehdi

    C# help question

  • Change Label FontStyle at Runtime
    M mkomasi

    Hi, There is a Label control and I want to change its FontStyle (Bold, Italic, ...) at Runtime. But Font.Bold and Font.Italic are read-only properties. How can I do it? regards, Mehdi.

    C# question

  • Regular Expresion
    M mkomasi

    Let me to made some changes in problem. I want to match quoted strings, using \' as an escape to place quotes in the string.

    Valid strings:
    'Alex'
    'John\' Burg'
    '\''
    Invalid strings:
    'test\'
    'not'Valid'

    Is it possible to define a Regular Expression to this situation? Mehdi

    C# regex question

  • Regular Expresion
    M mkomasi

    Hi, I have below string sequence:

    'John' , 'Joe' , 'Al''ex' , 'Philip' , 'Ja,coup' , 'Dan'

    and I want to define quote separated names same as below:

    'John'
    'Joe'
    'Al''ex'
    'Philip'
    'Ja,coup'
    'Dan'

    Can I do it using Match and Regular Expression? Mehdi

    C# regex question

  • Connect to SQL Server & different port
    M mkomasi

    We know the default TCP/IP port of SQL Server 2000 is 1433. I can connect to DB from remote using SQLConnection class. But when the default port is changed, I couldn't. How can I connect to DB with different TCP/IP port?

    C# database question sql-server sysadmin
  • Login

  • Don't have an account? Register

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