Profile definition in sub web.config file not recognized
Hi!
We have a web site with a lot of profile definitions. Due to the amount, we put them in a separate file (Profile.config) and referenced the file in web.config:
<system.web>
...
<profile configSource="Config\Profile.config"/>
...
</system.web>
Resharper does not recognize these profile definitions and reports error when they are used in code:
private void SetInitialValues()
{
DateTimeSpanPicker.StartDateTimeUtc =
DateTime.UtcNow.Subtract(WebUtils.ConvertTimeSpan(Profile.AlarmEventDistribution.StartOffset));
DateTimeSpanPicker.EndDateTimeChecked = !Profile.
AlarmEventDistribution.EndNow;
}
The web site builds and runs without problems.
The error disappear if I replace the file reference in web.config with the profile definitions.
Is there a way to make Resharper recognize these definitions?
Attached is web site files to show the problem.
Regards,
Gjermund Omholt
Attachment(s):
ProfileError2.zip
Please sign in to leave a comment.
Hello Gjermund,
This is a known problem. You're welcome to monitor/vote for the following
request: http://youtrack.jetbrains.net/issue/RSRP-73036. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"