Hi All,
I just stumpled upon a issue that might have been mentioned before, but couldn't locate it here on the forum.
The issue is that suddenly the assembly im using (namespace) couldn't be found i my razor template, i have no idea what triggered it, since the same line worked properly earlier, i tried backtracking/undo some of my work, but couldn't figure out what caused the error.
I hope anyone here could help me shed some light upon this issue.
An example of what went wrong(caused the template not to be able to be parsed anymore):
I have this line in my template:
System.Collections.Generic.IList<Dynamicweb.Modules.UserManagement.User> users = new System.Collections.Generic.List< Dynamicweb.Modules.UserManagement.User>();
That is the line that caused the error, and said that the assembly dynamicweb could not be found (notice dynamicweb in lowercase).
Also the output displayed on the screen showed this:
System.Collections.Generic.IList<dynamicweb.modules.usermanagement.user> users = new System.Collections.Generic.List<dynamicweb.modules.usermanagement.user>();
It seems that everyting inside the brackets (<>) was lowercased, but couldn't understand why(and still can't).
Then i remember watching example lines from Dynamicweb (github templates), that had added spaces between the generics brackets, so the line would be like this:
System.Collections.Generic.IList< Dynamicweb.Modules.UserManagement.User > users = new System.Collections.Generic.List< Dynamicweb.Modules.UserManagement.User >();
Notice the space after < and before >. Now the template would parse fine. I spent 45min to 1 hour before i managed to resolve this.
Hope this post helps other to avoid waisting time upon such an annoying thing.
Again, if anyone knows why or how this issue can occur, please explain.
Thanks in advance