error in converting tiff file to pdf file - asp.net

when i convert tiff file to pdf in debug mode it converted successfully but when i host it
on localhost it didn't convert and throw an exception:
Cann't make pdf files. Try again.System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {71DBCBF1-587B-42E4-9B30-74B80F4AA70F} failed.
why it happened.
please give any suggestion
Thanks

It would appear that the DLL you are referencing is not registered: http://support.microsoft.com/kb/201191
Check that the tool you are using is correctly installed, if it is a standalone DLL you may need to register it manualy (i.e. use regsvr32.exe).

Related

How to convert pdb file to xml using mdbg?

How to convert PDB file to XML file? I tried the source from below, but it's taking exe as an input. Is there any opensource converter available?
The ISymbolReader interface from Microsoft needs a metadata token, which can be retrieved from the assembly using Reflection. I don't know a way to read the PDB on its' own - for my purposes, I always have the pdb and the assembly handy, so it hasn't been an issue for me.

Activation error occured while trying to get instance of type AttributeValidatorFactory, key ""

I'm using Visual Studio 2010 and Enterprise Library Validation 5.0.505.0 in my class library. But I'm facing error like
Activation error occured while trying to get instance of type AttributeValidatorFactory, key ""
I face error on the following line.
Validation.ValidateFromAttributes(obj);
where obj is the custom object.
I don't how to solve this one. Please, help !!
Thanks in advance.
I just add the Microsoft EnterpriseLibrary reference to my Website. In my case the DLL Microsoft.Practices.EnterpriseLibrary.Validation resides in the following path
C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin\Microsoft.Practices.EnterpriseLibrary.Validation.dll
To find out the path you should follow the step.
Right Click on the DLL > Click on Properties > Here there is property naming
Path
And a very small trick.
Right Click on the DLL > Click on Properties > Make Copy Local to True (By default the property is False)
Now, I Clean my solution and Build it and re-run the solution.
The application is running properly without any error. BINGO !!!!

Upload Image file using Symfony2 without guessers?

I am using Symfony2 framework for one of my project. In this one, I want to upload an image. This is really easy to do so while following the Symfony2's cookbook. It works very well on my local machine. But when I put the whole application on my remote server (Planethoster.net shared hosting), it doesn't work because of the Type-Mime extension guessers. In fact, they are not enable on their servers... (phpinfo shows --disable-fileinfo)
So, basically the idea is to know if there is a solution to do the same action (uploading an image) without any extension guessers?
Thanks
What do you think of filtering the filename ? With the last three characters, you'll know the extension. Check out UploadedFile, there is a getClientOriginalName() method. What I would do is to explode it by the ., fetch the second entry of the resulting array, and then parse it to do what you want to do.
Would you like an example of code ?
To fix exception while uploading file using framework Symfony 2
Unable to guess the mime type as no guessers are available.
enable PHP extension php_fileinfo, to do this find your php.ini file and uncomment following line
; windows
extension=php_fileinfo.dll
or
; linux
extension=php_fileinfo.so

asp.net error “The type 'typeName' exists in both ”temp1.dll“ and ”temp2.dll"

When I build a web site I haven't got errors, but when I try to publish site the error appears:
Type 'AttachmentsControl' exists in both в 'c:\Users\userName\AppData\Local\Temp\Temporary ASP.NET Files\web.ui.application\8c85983a\5425041a\App_Web_mivbsgll.dll' and 'c:\Users\userName\AppData\Local\Temp\Temporary ASP.NET Files\web.ui.application\8c85983a\5425041a\App_Web_dhvduebi.dll'
I tried to add the batch="false" attribute to the "compilation" element of the web.config file, but this didn't help.
Also I tried to rename one class, but in this case another error appears:
Server Error in '/projectName' Application.
Thread was being aborted.
Can anybody help me?
P.S.: the most strangest thing is that I get this project from MS TFS, my colleague who add this project to TFS publish this site without errors.
Most probably the reason could be you are uploading the source files along with compiled published output and at the same time the source files are modified.
When you see this error, what asp.net is trying to do is, compile the files and create the application and the result is, you have two type declaration of same name, one in the dll and one in the source.
Try to delete the dll file you have uploaded (from the bin directory), it should resolve the issue.

Using Resource .resx file in Class library project

I have used resource file(.resx) file in a class library project to store some error messages. When I set the "Build Action" to "Embedded Resource" for the resx file and deploy it works fine. But I would like to separate the resource file from the dll since I may need to change the error messages in resx file in future without the need to recompiling the class library project. I tried the other option in "Build Action" property Content,resource, etc but nothing seems to be working in the way I require. When I use these property I am getting the below error,
Could not find any resources appropriate for the specified culture or the neutral culture. Make sure was correctly embedded or linked into assembly at compile time, or that all the satellite assemblies required are loadable and fully signed.
Is there any way to resolve this error and make it work?
Resource files have to be set to embedded - that's how they work.
You can create another assembly containing the resources and reference it - this way you can redeploy the updated resources. It requires a bit more work in your code (loading the assembly in order to be able to get the embedded resources).
However, from your description (text messages that need to be editable after deployment), perhaps storing these in configuration is a better option (in particular if you are not localizing).

Resources