I have a localhost install of DotNetNuke 6.2.6 with a custom module.
The problem is that any images or css contained in the module.css file does not load. Firebug reports an 500 Internal Server error when retrieving the images or the module.css files.
My image tag is:
"< asp:Image ID="DeleteButton" ImageUrl="~/DesktopModules/PositionsManagement/images/delete.gif" runat="server" / >"
The web browser displays a broken image icon whose properties point to
http://localhost/dotnetnuke/DesktopModules/PositionsManagement/images/delete.gif
When I try to navigate to the above link I get hit with the following error message:
The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the element of the Web.config file.
And when I remove the targetframework attribute like it suggests I get this:
*Parser Error Message: The code subdirectory '/dotnetnuke/DesktopModules/PositionsManagement/App_Code/RazorHelpers/' does not exist.*
Does anyone know what the problem is or how I get the RazorHelpers content it seems to be wanting?
Take a look in IIS Manager.
I got this error and resolved it by deleting the application created on the folder of the module in error.
I don't know why this folder was converted in application.
Seems DNN doesn't play nice with Windows 8, Visual Studio 2012 and SQL Server 2012. Whether it's Win8, or some combination of all of them, I have no idea.
I rectified the problem by creating a Windows 7 virtual Machine.
EDIT: With some local assistance, it seems that deleting the modules web.config file and cleaning up my Web APplications in the App Pool helped. (I had it in there twice somehow, at localhost/dotnetnuke/etc and localhost/dnn/etc. After cleaning up and deleting the web.config it started working again.
Related
We have a website (not webApp, framework 3.5) we are trying to build in our TFS build server.
The build is defined to trigger on each check-in. The build passed successfully on local machine (VS2010).
However, It fails to build on the TFS build server(2012) because of the following error:
The type X exists in both
'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files....\App_Web_wk4sskb7.dll' and
'c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET
Files....\App_Web_wazvuwk6.dll'
We thought the reason for that is 2 MasterPages that inherits from the same page but we copied the same projects to a new solution and defined the same build definitions (under different TFS project) and the build was successful.
We want to figure out how is that possible, because this is not a suitable solution for us.
We want the original solution to pass successfully.
We got the same problem on several occassions when publishing a website. We always solved it by deleting the contents of the "bin" folder and re-publish the website.
I don't really know what is causing this problem in the .NET framework though. It would be nice if someone could explain it.
Is this not just a case of the temporary asp.net dll's being created when the website first spins up?
I'm assuming the .. contains a folder with the web site name
I've had issues before with similar things, try clearing the temporary folder and if that works, include a delete task as part of the build process
The problem was that we have 2 MasterPages that had the same CodeFile.
We separated them and the build passed successfully.
Clear the bin folder
Build VS 2012
Build succeeded
Worked for me
We had the same problem when building in Azure CI Pipeline.
The issue was changing some of the Control Tag Names
Current:
<%# Register Src="CustomerInfo.ascx" TagName="CustomerInfo" TagPrefix="uc1" %>
Change to:
<%# Register Src="CustomerInfo.ascx" TagName="CustomerInfoA" TagPrefix="uc1" %>
Which resolved the issue.
I have looked at the other answers to similar error mgs, but none of the answers seem to work.
I am trying to debug an asp.net mvc 3 application using vs 2010 on a windows xp machine.
This application was working fine, yesterday I was jumping between two applications , copying code etc.
Then today I get the below error when trying to run (it builds no problem)
The only difference was when I opened the application in Visual studio today, a window appeared before program loaded stating the following...
URL http://localhost:1697/.
The Web project "MyProject" is currently configured to use the (url from above line goes here)The Web server has this URL mapped to a different folder "C:\Projects\MyotherProject". Would you like to remap this URL to this Web projects folder ?
..........I assumed I hit yes...and I got the error below
Server error in'/' application
Could not load file or assembly 'DotNetOpenAuth.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2780ccd10d57b246' or one of its dependencies. The system cannot find the file specified.
I have tried, clearing out the bin and obj folders and then cleaning and re-building.
I don't understand where/what the problem is ? can anyone advise ?
That usually means you are missing a reference in your project to the mentioned assembly, or a version conflict, at which point:
A web.config entry could trigger that exception
Some of the code you copied may be dependent on said assembly/version
Default scaffolding in VS, does include sample/working authentication code (e.g. DotNetOpenAuth.Core - you'll usually find this in the Accounts folder (web site, web app, etc.)
Some other items to check
you mentioned Win XP, does this box have version parity (at least .Net/ASP.Net) installed with the dev box that the project was (originally) created?
you could use Web Platform Installer to figure this out and then load the needed assemblies at the same time
is there a package.config file in the project? That could help too - just so you know your dependencies (then make sure you have them in the debugging box).
A bad assembly or sublayout has been added to our Sitecore environment resulting in the content editor area being gray with no items to click on...
Here's what I've done..
Deleted all custom sublayouts with their assemblies from the date in question.
Cleared the website/temp folder.
Refreshed IIS site & did a recycle on app pool & IIS reset.
UPDATE: Most js errors seem to be uncaught reference errors..
Still cannot get the content editor to appear. No errors in log.
Please advise..
I've seen this before, I would check to see if you have a Microsoft AJAX dll in your bin, and if you don't need it you should get rid of it and all references to it.
Are you able to connect a clean Sitecore installation to your database? If you also experience the problem with the clean installation, then it is likely something that was changed at the database level that is giving you a problem.
We are working on a Web Application.We are using ASP.net with c# (3.5 framework). We are Continue getting this error on a specific page
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 load type 'Page Name'.
Each time we build the solution & upload the file,it will work and then suddenly after 2 to 3 days same problem again.Please help me resolve the issue.Thanks in Advance.
We found 2 things,may be that will help in future who will face an issue.
a)The file in which we have changed it was not updated properly,so
that's why It was causing an error,so project .dll has updated but
that page was not updated properly.
b)That page Excluded from the project.
so Please keep these thing in your mind.Most of the cases files was not updated.
Thanks.
This happened to me after creating a new page. It turns out I was running under x86 CPU instead of Any CPU mode under the Configuration Manager. When testing in debug mode the application was running against the local bin, but the file was actually being placed in the bin/x86 directory until I reconfigured it.
It sounds to me like there is some other software on the machine (anti-virus, backup, indexing software, ???) that is modifying the page source.
You could try making the directory or file readonly after uploading it to see if that resolves the problem.
Check the Inherits property of your page directive. It may have a number of attributes, but I suspect it will contain at least the following:
<%# Page Language="C#" Inherits="Page Name" %>
Change the value of Inherits to the fully qualified name of the class outlined in the page's code behind file, i.e. something like: MyProject.MyFaultyPage. If you don't have a code behind file for that page, you can inherit System.Web.UI.Page.
Close Visual Studio and select the solution folder and uncheck Readonly that will solve your issue!
I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was working fine in the website project. Today I decided to migrate the website to a web application project as I have learned this is the best way to work in .NET. I split out all my class files into a separate class library and copied all my other content into my new project. Then I updated all the references and web.config.
When I build the class library, everything works great.
The problem is happening when I try to build/debug the web application project. It is acting like all the controls are missing and it is also throwing a bunch of compile errors about the public properties I have in my master pages.
Control errors:
"The name 'INSERT CONTROL NAME HERE' does not exist in the current context"
Master page errors:
'System.Web.UI.MasterPage' does not contain a definition....
It is giving these errors for every single control and master page property in my entire solution.
I notice when I add a new web.form to this project, it also adds a filename.aspx.designer.cs file in addition to the .aspx and .aspx.cs file. My existing files do not have these extra files since they were created in a different .NET version.
Anyone have an idea on how to overcome these issues?
UPDATE: It seems I was missing the step where I need to right click on the new application folder and select "Convert to web application". I just did that and it seems to be a little bit better...
Now it is choking on Literals that are inside single quotes:
<div class='<asp:Literal ID="CssClassLiteral" runat="server"></asp:Literal>'>
It doesn't see this literal when it does the conversion... Is the above valid code or should I implement that functionality another way?
Yes - one of the main differences between the website project and a web application project in Visual Studio is that the web application project defines a designer.cs file for every page/user control.
So, let's say you have a page in a website with a codebehind:
Default.aspx
Default.aspx.cs
In a web application, the designer is now required:
Default.aspx
Default.aspx.designer.cs
Default.aspx.cs
The designer file is auto-generated, but you may need to "touch" each page to generate.