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
1 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!"

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:

 n(){return
> A.apply(null,[this].concat($A(arguments)))}|ondblclick=|onmouseout=|on
> mouseup=|onkeyup=|class=jive_text_macro
> jive_macro_code|onkeypress=|onkeydown=|lang=function(){return
> A.apply(null,[this].concat($A(arguments)))}|onmouseover=} 
> ...
> 
> ...
> 
> ]]>

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.AlarmEventDi
stribution.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
---
Original message URL:
http://devnet.jetbrains.net/message/5282234#5282234



0

Please sign in to leave a comment.