Click here to Skip to main content
16,005,037 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Dynamic link button controls Pin
Ersan Ercek30-Jul-09 9:17
Ersan Ercek30-Jul-09 9:17 
GeneralRe: Dynamic link button controls Pin
Ersan Ercek30-Jul-09 9:28
Ersan Ercek30-Jul-09 9:28 
GeneralRe: Dynamic link button controls Pin
Abhijit Jana30-Jul-09 9:31
professionalAbhijit Jana30-Jul-09 9:31 
GeneralRe: Dynamic link button controls Pin
Ersan Ercek30-Jul-09 9:32
Ersan Ercek30-Jul-09 9:32 
QuestionSelectedIndexChanged Event for Dropdownlist AJAX Pin
Ridge Howison30-Jul-09 7:06
Ridge Howison30-Jul-09 7:06 
AnswerRe: SelectedIndexChanged Event for Dropdownlist AJAX Pin
Abhijit Jana30-Jul-09 8:14
professionalAbhijit Jana30-Jul-09 8:14 
AnswerRe: SelectedIndexChanged Event for Dropdownlist AJAX Pin
Abhishek Sur30-Jul-09 8:59
professionalAbhishek Sur30-Jul-09 8:59 
QuestionSystem.Runtime.InteropServices.COMException: Cannot activate application Pin
vikash_singh30-Jul-09 4:56
vikash_singh30-Jul-09 4:56 
hi guys please help me !
iam using "Microsoft.Office.Interop.Word.ApplicationClass" for exporting data from DB to word document. it works fine on server where i published the application. but from my machine is shows the following error:-"System.Runtime.InteropServices.COMException: Cannot activate application"



code is.......

public static bool Export( string questionID, int questionNumber, object filename )
try
{
bool result=false;
object missing = System.Reflection.Missing.Value;
Microsoft.Office.Interop.Word.ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
Microsoft.Office.Interop.Word.Document wordDoc = wordApp.Documents.Add( ref missing, ref missing, ref missing, ref missing );


...................

wordApp.Selection.TypeParagraph();
wordDoc.SaveAs( ref filename, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing );
wordDoc.Close( ref missing, ref missing, ref missing );
wordApp.Application.Quit( ref missing, ref missing, ref missing );
return result;
}
--------------------
1. already i configured security setting for word in DCOMcnfg(added network service, aspnet and set access permission to full control and rebooted the system) though iam getting the same error.

2. i changed application platform to x86 still problem continues.....

waiting for help !

thanx
AnswerRe: System.Runtime.InteropServices.COMException: Cannot activate application Pin
Abhishek Sur30-Jul-09 5:00
professionalAbhishek Sur30-Jul-09 5:00 
GeneralRe: System.Runtime.InteropServices.COMException: Cannot activate application Pin
vikash_singh30-Jul-09 5:33
vikash_singh30-Jul-09 5:33 
GeneralRe: System.Runtime.InteropServices.COMException: Cannot activate application Pin
vikash_singh30-Jul-09 6:56
vikash_singh30-Jul-09 6:56 
GeneralRe: System.Runtime.InteropServices.COMException: Cannot activate application Pin
Abhishek Sur30-Jul-09 9:10
professionalAbhishek Sur30-Jul-09 9:10 
GeneralRe: System.Runtime.InteropServices.COMException: Word has encountered the problem Pin
vikash_singh30-Jul-09 23:16
vikash_singh30-Jul-09 23:16 
GeneralRe: System.Runtime.InteropServices.COMException: Word has encountered the problem Pin
vikash_singh31-Jul-09 2:23
vikash_singh31-Jul-09 2:23 
AnswerRe: System.Runtime.InteropServices.COMException: Word has encountered the problem Pin
vikash_singh31-Jul-09 2:24
vikash_singh31-Jul-09 2:24 
QuestionMVC action loading view page twice Pin
marky77730-Jul-09 4:41
marky77730-Jul-09 4:41 
AnswerRe: MVC action loading view page twice Pin
Claies30-Jul-09 7:18
Claies30-Jul-09 7:18 
AnswerRe: MVC action loading view page twice Pin
Speto26-Sep-09 9:49
professionalSpeto26-Sep-09 9:49 
QuestionRemoving a object instance completely out of memory. Pin
Ashutosh Trivedi30-Jul-09 3:02
Ashutosh Trivedi30-Jul-09 3:02 
AnswerRe: Removing a object instance completely out of memory. Pin
Abhishek Sur30-Jul-09 3:18
professionalAbhishek Sur30-Jul-09 3:18 
GeneralRe: Removing a object instance completely out of memory. Pin
Ashutosh Trivedi30-Jul-09 5:09
Ashutosh Trivedi30-Jul-09 5:09 
AnswerRe: Removing a object instance completely out of memory. Pin
Abhishek Sur30-Jul-09 9:26
professionalAbhishek Sur30-Jul-09 9:26 
GeneralRe: Removing a object instance completely out of memory. Pin
Ashutosh Trivedi31-Jul-09 5:21
Ashutosh Trivedi31-Jul-09 5:21 
QuestionProblem With Datalist ItemCommand Pin
Member 435657030-Jul-09 2:44
Member 435657030-Jul-09 2:44 
AnswerRe: Problem With Datalist ItemCommand Pin
Abhishek Sur30-Jul-09 2:55
professionalAbhishek Sur30-Jul-09 2:55 

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.