This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
I tried to make portal:SkinFolderScript work, but it never happens. I also read the documentation. So, I checked the code and I think I found a bug.
My code was:<portal:SkinFolderScript ID="script" runat="server" ScriptFileName="script.js" />
And it's located at:C:\inetpub\wwwroot\mojoportal\Web\Data\Sites\1\skins\MyCustomSkin\layout.Master
The javascript file is located atC:\inetpub\wwwroot\mojoportal\Web\Data\Sites\1\skins\MyCustomSkin\script.js
And its content was:alert('loaded');
The source file is \Web\Controls\SkinFolderScript.cs
string scriptUrl... produce:/mojoportal/Web/Data/Sites/1/skins/MyCustomSkin/script.js
But Page.Server.MapPath("~" + scriptUrl) produce:C:\inetpub\wwwroot\mojoportal\Web\mojoportal\Web\Data\Sites\1\skins\MyCustomSkin\script.js
Possible Fix:
Replace line:if(!File.Exists(Page.Server.MapPath("~" + scriptUrl))) { return; }
With:if(!File.Exists(Page.Server.MapPath(scriptUrl))) { return; }
Well, I hope you can reproduce these steps, and find the bug.
Have a nice day and thanks in advance.
Hi,
Yes, I agree with your fix. This is now fixed in the source code repository.
Thanks,
Joe