Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-99748: Errors are shown in .ascx markup for paths starting with ~/ when project has an overridden application root URL

$
0
0
Reporter Brian Dukes (bdukes) Brian Dukes (bdukes)
Created Mar 21, 2009 1:33:25 AM
Updated Dec 27, 2011 9:39:12 PM
Priority Major
Type Bug
Fix versions Next, Next Major
State Submitted
Assignee Slava Trenogin (derigel)
Subsystem Language - ASP.NET
Affected versions No Affected versions
Fixed in build No Fixed in build
Both solution-wide analysis and the regular in-line squiggly analysis show error for the Src attribute on some Register tags in my .ascx files.

The register tag looks like this:
bq. <%@ Register TagPrefix="dnn" TagName="TextEditor" Src="~/controls/TextEditor.ascx" %>

The error message says "Path C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\ModuleName\controls not found." This is, however, not the correct path. The ~/ should be based off of "C:\Inetpub\wwwroot\DotNetNuke\" instead of "C:\Inetpub\wwwroot\DotNetNuke\DesktopModules\ModuleName\" This is set in the project's properties on the Web tab. In the Servers section we are using IIS and have "Override application root URL" checked, specifying "http://localhost/dotnetnuke/" as the root (whereas the Project Url is set to "http://localhost/dotnetnuke/DesktopModules/ModuleName/").

So, basically, it appears that when ReSharper checks for the existence of files in ASP.NET markup, it bases the path to use off of the Project URL setting, but needs to also look at the Override application root URL setting.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>