Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Workflow Management Pin
V.26-Jul-11 22:28
professionalV.26-Jul-11 22:28 
QuestionHow to find a Node in treeview Pin
NarVish26-Jul-11 4:23
NarVish26-Jul-11 4:23 
AnswerRe: How to find a Node in treeview Pin
Richard MacCutchan26-Jul-11 4:52
mveRichard MacCutchan26-Jul-11 4:52 
AnswerRe: How to find a Node in treeview Pin
PIEBALDconsult26-Jul-11 8:44
mvePIEBALDconsult26-Jul-11 8:44 
AnswerRe: How to find a Node in treeview Pin
Shameel26-Jul-11 18:29
professionalShameel26-Jul-11 18:29 
GeneralRe: How to find a Node in treeview Pin
NarVish26-Jul-11 19:55
NarVish26-Jul-11 19:55 
AnswerRe: How to find a Node in treeview Pin
BillWoodruff27-Jul-11 20:18
professionalBillWoodruff27-Jul-11 20:18 
QuestionUpload file usin MTOM Pin
abbd26-Jul-11 0:11
abbd26-Jul-11 0:11 
Hello,

I want to make a web service that receive files using MTOM:

[WebMethod]
    public void Upload(string FileName, byte[] buffer, long Offset)
    {		
        string FilePath = Path.Combine(UploadPath, FileName);
 
        using (FileStream fs = new FileStream(FilePath, FileMode.Open, FileAccess.ReadWrite, FileShare.Read))
        {
            fs.Seek(Offset, SeekOrigin.Begin);
            fs.Write(buffer, 0, buffer.Length);
        }
 
    }


i have this error : System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.UnauthorizedAccessException: Access to the path 'C:\MTOM\AA' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at MTOM.Service1.Upload(String FileName, Byte[] buffer, Int64 Offset) in C:\Documents and Settings\Administrateur\Bureau\MTOM\MTOM\MTOM.asmx.cs:line 41
AnswerRe: Upload file usin MTOM Pin
OriginalGriff26-Jul-11 9:12
mveOriginalGriff26-Jul-11 9:12 
QuestionOptimize the maximum number of threads Pin
devvvy25-Jul-11 22:58
devvvy25-Jul-11 22:58 
AnswerRe: Optimize the maximum number of threads Pin
BobJanova25-Jul-11 23:54
BobJanova25-Jul-11 23:54 
GeneralRe: Optimize the maximum number of threads Pin
Dave Kreskowiak26-Jul-11 1:59
mveDave Kreskowiak26-Jul-11 1:59 
GeneralRe: Optimize the maximum number of threads Pin
BobJanova26-Jul-11 7:33
BobJanova26-Jul-11 7:33 
GeneralRe: Optimize the maximum number of threads Pin
Dave Kreskowiak26-Jul-11 8:58
mveDave Kreskowiak26-Jul-11 8:58 
GeneralRe: Optimize the maximum number of threads Pin
BobJanova26-Jul-11 10:21
BobJanova26-Jul-11 10:21 
GeneralRe: Optimize the maximum number of threads Pin
Dave Kreskowiak26-Jul-11 10:32
mveDave Kreskowiak26-Jul-11 10:32 
QuestionSorting on column, using mvccontrib lib [modified] Pin
omgerik25-Jul-11 22:42
omgerik25-Jul-11 22:42 
AnswerRe: Sorting on column, using mvccontrib lib Pin
omgerik26-Jul-11 2:08
omgerik26-Jul-11 2:08 
QuestionCreat New Security Group At AD Pin
treuveni25-Jul-11 21:33
treuveni25-Jul-11 21:33 
SuggestionRe: Creat New Security Group At AD Pin
Shameel25-Jul-11 23:54
professionalShameel25-Jul-11 23:54 
GeneralRe: Creat New Security Group At AD Pin
treuveni25-Jul-11 23:57
treuveni25-Jul-11 23:57 
GeneralRe: Creat New Security Group At AD Pin
Shameel27-Jul-11 1:52
professionalShameel27-Jul-11 1:52 
AnswerRe: Creat New Security Group At AD Pin
Dave Kreskowiak26-Jul-11 1:53
mveDave Kreskowiak26-Jul-11 1:53 
GeneralRe: Creat New Security Group At AD Pin
treuveni26-Jul-11 4:57
treuveni26-Jul-11 4:57 
QuestionStrange Syntax- public string NewPassword { get; set; }and more Pin
Bram van Kampen25-Jul-11 15:33
Bram van Kampen25-Jul-11 15:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.