Reporter | 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.
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.