Failed to load URL when using ABCpdf on Azure - c#

I'm using ABCpdf to generate a PDF from HTML.
int id = theDoc.AddImageHtml(html);
It's working fine in my local environment but throws an error when running on an Azure server.
Exception:
Failed to load URL data:text/html;charset=UTF-8;base64,........
What does the error mean and how do I fix this?

Related

Downloading a file over HTTP from SSIS package not working

My SSIS package has a script task to download a file from a third party URL. This used to work fine until recently.
Failure occurs on execution of method HttpClientConnection.DownloadFile() with this Error
Error: Download failed: Exception from HRESULT: 0xC0016003
Here is the snippet of the code
Object mySSISConnection = Dts.Connections["test HTTP Connection Manager"].AcquireConnection(null);
HttpClientConnection myConnection = new HttpClientConnection(mySSISConnection);
myConnection.DownloadFile(Dts.Connections["XXXDownload File LocationXXX"].ConnectionString, true);
Also Note:
When I test this connection from Connection manager properties , it succeeds.
I am also able to download the file from a browser by using the same URL from the box without any issue.
When I change the URL in the package to download file from some other site the package executes successfully.
Let me know if you need further information.

URL rewrite does not work for http to https redirection for clickonce application

I am trying to use IIS URL rewrite for http to https redirection. But after start URL rewrite, clickonce application can not able to install. It is showing an error & creating install.log file. Here are the log file & error message.
Log file:
URLDownloadToCacheFile failed with HRESULT '-2146697208'
Error: An error occurred trying to download 'https://appdev.teamsupport.com/app/appClient.application'
Error message:
An error occurred trying to download https://apptest.teamsupport.com/app/appClient.application..
See the setup log file located at 'C\Users\username\AppData\local\Temp\1\VSD69C6Imp \install.log ' for more information.

c# System.Runtime.InteropServices.COMException: Error code : 0x800a03ec cannot access file

Here i am trying to save excel file at specific path using COM.
In a local server it is working but when I user IIS server to run asp.net web application it is showing an error message as per heading.
string selected_sheet =
DropDownList1.SelectedValue.Remove(DropDownList1.SelectedValue.IndexOf("$"));
string path = Server.MapPath("~/Data/");
xlWorkBook.SaveAs(path + selected_sheet);

IIS 8 on Windows Server 2012 giving weird errors

I am moving some of my code from azure to my local server but it is giving me wierd errors when browsing the site.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not create type 'dtu._02267.LameDuck.LameDuckService'.
Source Error:
Line 1: <%# WebService Language="C#" CodeBehind="LameDuckService.asmx.cs" Class="dtu._02267.LameDuck.LameDuckService" %>
http://dtu.02267.sogaard.us/LameDuck/LameDuckService.asmx
The default.aspx file is also giving errors
http://dtu.02267.sogaard.us/LameDuck/
it is the same code as hosted on azure, and it is workign fine there:
http://sogaardlameduck.azurewebsites.net/LameDuckService.asmx
http://sogaardlameduck.azurewebsites.net/
The wierd thing is the my local iss server is also hosting a MVC site and it is working fine:
http://redcloud.sogaard.us/
Update:

Server Error in Application "My web site"

I've bougth an web hosting wervice so I can put my web site on it. But I got this problem
Server Error in Application "my website":
**Detailed Error Information**
Module IIS Web Core
Notification MapRequestHandler
Handler StaticFile
Error Code 0x80070002
Requested URL http://mywebsite.se:80/Index.cshtml?aspxerrorpath=/
Physical Path E:\inetpub\webhosting\industri2\mywebsite.se\www\Index.cshtml
Logon Method Anonymous
Logon User Anonymous
**Most likely causes:**
The directory or file specified does not exist on the Web server.
The URL contains a typographical error.
A custom filter or module, such as URLScan, restricts access to the file.
Earlyer I got this problem CustomErrors mode=“RemoteOnly” but I put it on off now. And this problem comes up: server error in application. I'm using mvc and ms web dev 2010 have a publish and I'm using it. But got this problem.
Here are a few things to check:
Is the hosting provider running the correct version of ASP.Net
Is razor supported
The actual file exists on the path you set, try putting an ordinary HTML file in there to see if you can hit it

Categories

Resources