ASP.NET Application DLL Publishing Error Message - asp.net

I publish my ASP.NET application DLL manually via FTP. I'd love to be able to show the users a friendly error message while the DLL is being uploaded. I've tried the app_offline.htm thing (with the over 512 length). It works fine when my application's DLL is fine. But as soon as I delete the DLL or start copying over the DLL, then I get errors like
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 load type 'WebManagerSuite.Global_asax'.
Is there any way to have the friendly error message stay available while the main application DLL gets replaced?

Related

Compilation Error "The type existits in both..." After Converting a ASP.NET Website To a Web App project

We've recently converted an ASP.NET website targeting .NET 3.5 to a web application project and we're still sorting out the kinks.
When I attempt to access a reporting page I get this error.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
The type 'MyUserControl' exists in both 'c:\Users\myusername\AppData\Local\Temp\Temporary ASP.NET > Files\root\092fb0a8\177b941c\assembly\dl3\f4bc71b3\a55b6e05_52ded801\MyWebApp.DLL' and 'c:\Users\myusername\AppData\Local\Temp\Temporary ASP.NET Files\root\092fb0a8\177b941c\App_Web_myusercontrol.ascx.cs.6bb32623.zrhw9xjk.dll'
I've tried clearing those temp directories, doing a clean, and setting batch = 'false' in the Web.config. No luck.

Security Exception with SelectPdf .net

I have unloaded the version free Community Edition from
http://selectpdf.com/html-to-pdf/demo/
Because I wanted to use the example that turned a page html into pdf.
In visual studio I have succeeded in using the file asp.net but when I put it online I receive this error:
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.
Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.
I have loaded the files on three different servers.
Azure, Aruba and Godaddy, but do I always receive the same error, as I can resolve?
http://pdf.cyberkings.fr/html-to-pdf-converter.aspx
http://www.numero-telefono.it/html-to-pdf-converter.aspx
Thanks
Conversion failure. Could not find 'Select.Html.dep'.
Description: An unhandled exception occurred during the execution of the current web request
When installing Select.HtmlToPdf from NuGET, the installation copies the dependancy file Select.Html.dep to the bin. When you build, a copy gets placed in the /bin beside Select.HtmlToPdf.dll.
However, when deploying your application, the dependency file does not get copied automatically.
You need to copy Select.Html.dep manually.
See the SelectPdf Html To Pdf Converter for .NET deployment documentation.

Deploying MVC application to Azure with Language Resource Compilation Error

I am deploying an MVC 5 website to a Windows Azure website. Running locally, the site works as expected. When I publish to the site, I get the following error.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Resources' does not exist in the current context
After doing some searching around on other sites, one solution that worked for others was to go to the Resource files' properties and set the Build Action to 'Content".
This did not work for me, but setting it to 'Embedded Resource' did.

Converting Website to WebApplication. BlogEngine.Net

So I am trying to convert the Latest repository from BlogEngine. They are using MVC3. Now I moved all the files, Renamed App_Code-->Set to Compile. Converted all the Files to Web Application. My only problem is I keep getting:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'Helpers' does not exist in the current context
<div>#Helpers.ExtensionsHelper.GetExtensions(true)</div>
BlogEngine.NET doesn't really use MVC, but it uses Razor web pages that usually installed with MVC 3 or Webmatrix. If you don't have those installed, you need to move DLLs from downloaded lib/Razor folder into application's /bin folder.

Problem deploying webservice "Could not create type 'Service'

I have big trouble deploying my webservice. It is the basic helloWorld start webservice.
At my localhost everything os ok. But when I copy the service to my server in my virtual directory i recieve this error:
Server Error in '/' Application.
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 'Service'.
Source Error: Line 1: <%# WebService Language="vb" CodeBehind="~/App_Code/Service.vb" Class="Service" %>
Source File: /customers/iv_webservice/Service.asmx Line: 1
Version Information: Microsoft .NET Framework Version:2.0.50727.4952; ASP.NET Version:2.0.50727.4955
Now I have tried almost everything. Including scanning the web for the past 9 hours for an answer.
I know my virtual directory in the web.config is ok, since I have other virtual websites on my server. I even manage to have aspx. files in the same directory and they are ok.
Now, what am I missing?
Does your web service use a 3rd party assembly or unmanaged Dll that is not deployed to the server? In my experience "cannot create object of type" errors are missing unmanaged Dlls. In the case of missing managed assemblies, the error will usually tell you which assembly is missing.
Can you try compiling the service.vb as an standalone assembly? That might help understand any dependencies you might not be satisfying.. You might also see additional information in Event viewer or if you set the debug mode to true in web.config to see if there are any errors reported compiling service.vb.

Resources