Click here to Skip to main content
15,898,134 members
Home / Discussions / C#
   

C#

 
GeneralRe: Web Application Timeout Pin
MWRivera3-Dec-10 4:52
MWRivera3-Dec-10 4:52 
QuestionExecute And wait Pin
JDM67631-Dec-10 5:08
JDM67631-Dec-10 5:08 
AnswerRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 5:32
Jacob D Dixon1-Dec-10 5:32 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 6:10
JDM67631-Dec-10 6:10 
GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 7:26
Jacob D Dixon1-Dec-10 7:26 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 8:09
JDM67631-Dec-10 8:09 
GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 8:33
Jacob D Dixon1-Dec-10 8:33 
GeneralRe: Execute And wait [modified] Pin
JDM67631-Dec-10 9:49
JDM67631-Dec-10 9:49 
Jacob D Dixon wrote:
Wait a second... Is the REGASM.EXE cutting it off or is it only being cut off when using the Process code?

If you ran the REGASM.EXE from a command prompt does it still cut off the c:\Program?


I checked the command line I was passing and I was inadvertently prepending an extra full path of regasm.exe. Not sure why but it was still registering and creating the Tlb. I took off the extra regasm.exe and started getting the following error:

RegAsm : error RA0000 : The name of the type library cannot be specified for assemblies containing embedded type libraries

What I need and haven't figured out how to do is to add double quotes around to full path of the dll and the full path of the destination tlb because one of the folders in the path is "Program Files".

The command line should look something line this:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe "C:\path\to\dll\mydll.dll" /tlb: "C:\path\to\dll\mydll.tlb"



Ok.. I fixed it. Smile | :) This is what I needed.

string szCmdLine = "\"" + szAssemblyPath + "\"" + " /tlb: \"" + szTlbPath + "\"";


modified on Wednesday, December 1, 2010 3:58 PM

GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 11:05
Jacob D Dixon1-Dec-10 11:05 
GeneralRe: Execute And wait Pin
Dalek Dave3-Dec-10 5:35
professionalDalek Dave3-Dec-10 5:35 
AnswerRe: Execute And wait Pin
Luc Pattyn1-Dec-10 6:06
sitebuilderLuc Pattyn1-Dec-10 6:06 
AnswerRe: Execute And wait Pin
PIEBALDconsult1-Dec-10 8:08
mvePIEBALDconsult1-Dec-10 8:08 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 8:14
JDM67631-Dec-10 8:14 
Questionregistration form Pin
AISIDA AKINWALE MAYOMI1-Dec-10 3:34
AISIDA AKINWALE MAYOMI1-Dec-10 3:34 
AnswerRe: registration form Pin
Pete O'Hanlon1-Dec-10 3:43
mvePete O'Hanlon1-Dec-10 3:43 
AnswerRe: registration form Pin
Henry Minute1-Dec-10 3:45
Henry Minute1-Dec-10 3:45 
AnswerRe: registration form Pin
musefan1-Dec-10 3:54
musefan1-Dec-10 3:54 
QuestionWindows Tab Control Flickering Pin
vishnukamath1-Dec-10 1:37
vishnukamath1-Dec-10 1:37 
AnswerRe: Windows Tab Control Flickering Pin
Abhinav S1-Dec-10 1:42
Abhinav S1-Dec-10 1:42 
QuestionSwitching on type Pin
creatiive30-Nov-10 23:44
creatiive30-Nov-10 23:44 
AnswerRe: Switching on type Pin
phil.o1-Dec-10 0:01
professionalphil.o1-Dec-10 0:01 
AnswerRe: Switching on type Pin
Pete O'Hanlon1-Dec-10 0:49
mvePete O'Hanlon1-Dec-10 0:49 
AnswerRe: Switching on type Pin
musefan1-Dec-10 1:01
musefan1-Dec-10 1:01 
GeneralRe: Switching on type Pin
creatiive1-Dec-10 2:34
creatiive1-Dec-10 2:34 
GeneralRe: Switching on type Pin
musefan1-Dec-10 2:55
musefan1-Dec-10 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.