Click here to Skip to main content
15,891,607 members
Home / Discussions / C#
   

C#

 
GeneralAsynchronous design question Pin
Yaakov Davis4-Jan-05 20:01
Yaakov Davis4-Jan-05 20:01 
GeneralRe: Asynchronous design question Pin
jan larsen4-Jan-05 21:14
jan larsen4-Jan-05 21:14 
GeneralRe: Asynchronous design question Pin
Yaakov Davis4-Jan-05 22:47
Yaakov Davis4-Jan-05 22:47 
GeneralRe: Asynchronous design question Pin
jan larsen4-Jan-05 22:57
jan larsen4-Jan-05 22:57 
GeneralRe: Asynchronous design question Pin
Yaakov Davis5-Jan-05 2:38
Yaakov Davis5-Jan-05 2:38 
GeneralRe: Asynchronous design question Pin
jan larsen5-Jan-05 3:28
jan larsen5-Jan-05 3:28 
GeneralC# hangs while opening word in web application Pin
NituP4-Jan-05 19:53
NituP4-Jan-05 19:53 
GeneralRe: C# hangs while opening word in web application Pin
Heath Stewart4-Jan-05 21:53
protectorHeath Stewart4-Jan-05 21:53 
NituP wrote:
C# code hangs while opening word in web application. It hangs the moment it encounters the line "Documents.open" it hangs.........

And not suprisingly. Word - whether visible or not - is a Windows application that depends upon window handles which wouldn't exist for a web application since there is no window manager. There's also many other factors that exist that determine why Word would not start. If the Word.Application object is not accessible by the account under which ASP.NET is running (the local ASPNET user account, by default) or if multiple users are making requests at a time without impersonation. Word was not designed for this purpose. It is recommended that you instead use the System.Xml classes to create or modify a Word 2003 XML[^] file. There's also several articles about this here on Code Project as well, like MS Word 2003 XML Output - ASP.NET[^].

There's many reasons why Word will fail when running within the context of a web server, but without more details it's impossible to know exactly why. It can be made to work with limited support, but it will ultimately tie up your thread pool to handle multiple user requests. You really need to read and understand about COM threading models to understand why, which is beyond the scope of this forum. You can start by reading Understanding and Using COM Threading Models[^] in the MSDN Library, however.

NituP wrote:
Also can anyone please give me email address of Gold. Member No. 118271 i.e. display name UB ?

Email addresses - unless the user specifies them in their signature or description - are not published. Go to the user's profile page[^], click "Messages", and find a message they posted. Then click the "Email" link as opposed to the "Reply" link for that topic. They are emailed directly, regardless of whether or not they unchecked the option to be notified of new replies to the message you selected.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
Generalmdi strange problem Pin
Gavin Jeffrey4-Jan-05 19:13
Gavin Jeffrey4-Jan-05 19:13 
QuestionDistributed System in "Javaspaces-Style"?? Pin
stumpi4-Jan-05 16:50
stumpi4-Jan-05 16:50 
AnswerRe: Distributed System in "Javaspaces-Style"?? Pin
Heath Stewart4-Jan-05 21:52
protectorHeath Stewart4-Jan-05 21:52 
GeneralBeginner Questions Pin
smitsky4-Jan-05 16:23
smitsky4-Jan-05 16:23 
GeneralRe: Beginner Questions Pin
Jay Shankar4-Jan-05 17:24
Jay Shankar4-Jan-05 17:24 
GeneralRe: Beginner Questions Pin
Mustafa Ismail Mustafa4-Jan-05 19:07
Mustafa Ismail Mustafa4-Jan-05 19:07 
Generalintegration with VS.NET 2003 Pin
Aryadip4-Jan-05 15:52
Aryadip4-Jan-05 15:52 
GeneralRe: integration with VS.NET 2003 Pin
Heath Stewart4-Jan-05 21:19
protectorHeath Stewart4-Jan-05 21:19 
GeneralC# Code Generators for Database Tier Pin
jareddavies4-Jan-05 15:45
jareddavies4-Jan-05 15:45 
GeneralRe: C# Code Generators for Database Tier Pin
Steven Campbell4-Jan-05 16:45
Steven Campbell4-Jan-05 16:45 
GeneralRe: C# Code Generators for Database Tier Pin
jareddavies5-Jan-05 16:38
jareddavies5-Jan-05 16:38 
GeneralObtaining a generated hwnd handle without making a window Pin
cimnik0294-Jan-05 15:26
cimnik0294-Jan-05 15:26 
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
Heath Stewart4-Jan-05 21:19
protectorHeath Stewart4-Jan-05 21:19 
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
cimnik0295-Jan-05 10:23
cimnik0295-Jan-05 10:23 
GeneralRe: Obtaining a generated hwnd handle without making a window Pin
Heath Stewart5-Jan-05 14:52
protectorHeath Stewart5-Jan-05 14:52 
GeneralEmail Problem Pin
Julianne_juju4-Jan-05 15:16
Julianne_juju4-Jan-05 15:16 
GeneralRe: Email Problem Pin
Heath Stewart4-Jan-05 20:37
protectorHeath Stewart4-Jan-05 20:37 

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.