Showing posts with label pdf. Show all posts
Showing posts with label pdf. Show all posts

Saturday, March 24, 2012

Strong name for dll??

Heya,
I'm trying to create a strong name for a dll that I purchased. The dll is simply a PDF Merge dll. This dll is not something that I created. I want to know is it possible to give it a strong name? I've tried using al.exe (which comes with .net) and sn.exe. But I dont think I'm doing it right? Could someone please help me out. I'm using XP with .net 2003. Framework is v1.1.
The reason why I need this dll as a strong name is becuase I'm using Telstra as my web host and they support a hosted trust level. The only way I can use third party dll's is to give them a strong name...

Thankx in advance
Karl
:)Have you referred to MSDN yet?

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconAssigningAssemblyStrongName.asp
Yes I have... And thankx for your reply... All help is appreciated...
I believe that the article is refering to creating strong names for dll's that you have created via code. I dont have the code for this dll. I purchased it. I only have the dll. So my question is can I give it a strong name still or do I have to have the code as well?

Thankx again in advance
Karl
You should have Code for Giving it a Strong Name.
Yes, I've tried to create a strong name once for a third-party DLL, but simply couldn't because I didn't have all parameters ready.
So any ideas on what I should do? Or what I could do?

Thankx again...
Karl
:)
Ask your web hosts to install it for you?
Thankx for your help... I will see if my web host will agree to that...
Thankx again
Karl
:)

Tuesday, March 13, 2012

Stuck, trying to redirect after binarywrite

I thinking that once the pdf page has opened all code in the parent page stops executing until user clicks on page again. Is there some what to redirect after response.close() had done.

Response.ContentType =

"application/pdf";

Response.BinaryWrite(buffer);

Response.Flush();

Response.Close();

Respones.Redirect(

"main.aspx");

You cannot redirect after you close the response. Remove the line of code that says Response.Close(); and your code should work fine.

Don't forget to mark the most helpful post asAnswer for the sake of future readers. Thank you


The suggestion of commiting out the Response.Close() didn't work or maybe there something else I need to do, I'm thinking maybe a timer would work here. Anybody have any other suggestions.