Converting Website to WebApplication. BlogEngine.Net - asp.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.

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.

ASP.NET Application DLL Publishing Error Message

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?

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.

CS0103: The name 'Tridion' does not exist in the current context

Tridion 20ll SP1
While Installing CDS at step 'the HTTP Upload server role as a .NET Web site' we are facing various issues.
After following all the steps in the installation guide, we get the error "CS0103: The name 'Tridion' does not exist in the current context" while browsing the httpupload.aspx page.
As per guide, the expected output should be 'SDL Tridion ASPX Upload Page'.
Could you please help?
Check that your Web App contains all of the correct DLLs, and a config folder with the correct configuration XML files, and a lib folder with all the correct JARS. Most likely you are missing some of the Tridion DLLs like Tridion.ContentDelivery.dll.

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