Welcome Guest! To enable all features please Login or Register.
Options
View
Go to last post Go to first unread
Online vcsharp  
#1 Posted : 08 April 2018 16:45:58(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Please take a look at this screenshot: YAF tags not being recognized

When I open the source code for yaf in VS 2017 Community Edition, and then open pages/postmessage.ascx, I am finding that the control tag of YAF and also the method GetPollGroupID() are not being recognized in design view.

I have imported a few namespaces within postmessage.ascx, but it doesn't help.

Question : Is there a trick I am missing in VS 2017 to show the postmessage.ascx without errors?

Edited by user 09 April 2018 08:32:52(UTC)  | Reason: set issue to solved

Sponsor
Offline tha_watcha  
#2 Posted : 08 April 2018 17:56:42(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 06/03/2010(UTC)
Posts: 3,893
Germany

Thanks: 73 times
Was thanked: 1183 time(s) in 1013 post(s)
Rename the recommend.web.config and add this web.config to the yaf website project, then it should work.
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 08/04/2018(UTC)
Online vcsharp  
#3 Posted : 08 April 2018 19:19:11(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
I do not have any web config files and I am using yaf 2.2.3. I have the full source-code of all yaf projects in this solution.

The screenshot of web config files in Solution Explorer is at following url: Missing Web Config files
Online vcsharp  
#4 Posted : 08 April 2018 19:32:11(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
I did find the file you mentioned and renamed it web.config file, but still getting the error of YAF tag not being recognized, though GetPollGroupId() method is being recognized now.
I am now getting error in code-behind of postmessage.ascx and also error for one of the controls in postmessage.ascx.

Here are the screenshots: Errors in Code-behind and Error in control in design view
Online vcsharp  
#5 Posted : 08 April 2018 19:44:03(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
I think another problem with postmessage.ascx is that many different types of controls have same tag of YAFas in markup below.


Code:

<%@ Control Language="c#" AutoEventWireup="True" Inherits="YAF.Pages.postmessage" Codebehind="postmessage.ascx.cs" %>
<%@ Import Namespace="YAF.Core" %>
<%@ Import Namespace="YAF.Types.Interfaces" %>
<%@ Import Namespace="YAF.Utils" %>
<%@ Import Namespace="YAF.Types.Extensions" %>
<%@ Import Namespace="YAF.Controls" %>
<%@ Register TagPrefix="YAF" TagName="smileys" Src="../controls/smileys.ascx" %>
<%@ Register TagPrefix="YAF" TagName="LastPosts" Src="../controls/LastPosts.ascx" %>
<%@ Register TagPrefix="YAF" TagName="PostOptions" Src="../controls/PostOptions.ascx" %>
<%@ Register TagPrefix="YAF" TagName="PostAttachments" Src="../controls/PostAttachments.ascx" %>
<%@ Register TagPrefix="YAF" TagName="PollList" Src="../controls/PollList.ascx" %>
<%@ Register TagPrefix="YAF" TagName="AttachmentsUploadDialog" Src="../controls/AttachmentsUploadDialog.ascx" %>

<YAF:PageLinks ID="PageLinks" runat="server" />
<YAF:PollList ID="PollList"  ShowButtons="true" PollGroupId='<%# GetPollGroupID() %>'  runat="server"/>
Online vcsharp  
#6 Posted : 08 April 2018 19:56:59(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
At least the yaf solution is now successfully building 15 projects, even though design time errors are there. So that's good enough for me.
Thanks and I appreciate your help on this.

I think its important to close solution and restart VS 2017, in order for web config control changes to take effect.
Offline tha_watcha  
#7 Posted : 08 April 2018 19:59:12(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 06/03/2010(UTC)
Posts: 3,893
Germany

Thanks: 73 times
Was thanked: 1183 time(s) in 1013 post(s)
The errors in design view are normal and will never go away.

The other errors are probably caused because you modified the ascx file before you added the web.config file. This caused the ascx.designer.cs files to regenerate with the wrong controls. Modify that file manually and fix all the yaf controls, or replace the file from the source package.
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 09/04/2018(UTC)
Offline tha_watcha  
#8 Posted : 08 April 2018 20:14:16(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 06/03/2010(UTC)
Posts: 3,893
Germany

Thanks: 73 times
Was thanked: 1183 time(s) in 1013 post(s)
Why are you using an old version and not the latest version?
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 09/04/2018(UTC)
Online vcsharp  
#9 Posted : 09 April 2018 06:18:12(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Originally Posted by: tha_watcha Go to Quoted Post
The errors in design view are normal and will never go away.

The other errors are probably caused because you modified the ascx file before you added the web.config file. This caused the ascx.designer.cs files to regenerate with the wrong controls. Modify that file manually and fix all the yaf controls, or replace the file from the source package.


Yes, I had made changes to ascx when web config file was not there.
So, you meant to manually modify the ascx.designer.cs files?

Online vcsharp  
#10 Posted : 09 April 2018 06:20:53(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Originally Posted by: tha_watcha Go to Quoted Post
Why are you using an old version and not the latest version?


I am using 2.2.3 and have made some changes to source code to better suit my requirements.

Due to these changes, I am hesitant to upgrade since the new version would overwrite all my changes.

Offline tha_watcha  
#11 Posted : 12 April 2018 19:27:50(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 06/03/2010(UTC)
Posts: 3,893
Germany

Thanks: 73 times
Was thanked: 1183 time(s) in 1013 post(s)
Originally Posted by: vcsharp Go to Quoted Post
Originally Posted by: tha_watcha Go to Quoted Post
Why are you using an old version and not the latest version?


I am using 2.2.3 and have made some changes to source code to better suit my requirements.

Due to these changes, I am hesitant to upgrade since the new version would overwrite all my changes.



Try to create diff patches of the changes you make. Then you can directly apply them after each update

thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 19/04/2018(UTC)
Online vcsharp  
#12 Posted : 19 April 2018 08:40:04(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Yes, that is a good suggestion. Right now I am making changes by adding custom user control and including custom JavaScript in separate script file.
But later on, I intend to put these differences into a separate patch.
Online vcsharp  
#13 Posted : 17 September 2018 07:55:06(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Originally Posted by: vcsharp Go to Quoted Post
Yes, that is a good suggestion. Right now I am making changes by adding custom user control and including custom JavaScript in separate script file.
But later on, I intend to put these differences into a separate patch.


Do you know of a good tool for diff patches other than just using TFS for finding differences?

Edited by user 18 September 2018 06:57:33(UTC)  | Reason: changed my earlier question

Offline tha_watcha  
#14 Posted : 18 September 2018 18:50:02(UTC)
tha_watcha


Rank: YAF.NET Project Lead

Reputation:

Medals: Medal of Honor: Portal Puzzle Master: Portal Puzzle Master for DNNMedal of Honor Key: Given to pillars of the community who are key players in the YAF community and project.DNN Master: DNN Module ManBug Killer Medal of Honor: Medal for being a kick-ass bug killer!Medal of Honor for the Support King: Support King! Amazing asset to the YAF.NET Community.

Joined: 06/03/2010(UTC)
Posts: 3,893
Germany

Thanks: 73 times
Was thanked: 1183 time(s) in 1013 post(s)
What I mean by that is to use git and create a fork with the changes you make. As soon you commit any changes to your forked yaf repository you can create a diff patch from the changes you made. To send a a pull request for example or track the changes you made.
thanks 1 user thanked tha_watcha for this useful post.
vcsharp on 19/09/2018(UTC)
Online vcsharp  
#15 Posted : 19 September 2018 04:37:36(UTC)
vcsharp


Rank: YAF Lover

Reputation:

Joined: 03/10/2017(UTC)
Posts: 64
Man
India

Thanks: 21 times
Ok. Thanks, I get it now. Also, in TFS you can make diff patch through command line as mentioned in following link: https://blogs.msdn.micro...ke-a-diffpatch-with-tfs/
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error