SharePoint Responsive

%3CLINGO-SUB%20id%3D%22lingo-sub-63149%22%20slang%3D%22en-US%22%3ESharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63149%22%20slang%3D%22en-US%22%3E%3CP%3EGood%20Day%20Everyone%20!!%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3BMy%20client%20has%20requested%20for%20the%20responsive%20design%20to%20be%20applied%20in%20their%20project%20which%20is%20an%20On-Permise.%20And%20I%20tried%20using%20the%20Pnp%20Responsive%20package%2C%20but%20somehow%20i'm%20getting%20the%20below%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E--%26gt%3B%20%3CSTRONG%3EThe%20Connect-PnpOnline%20was%20found%20in%20the%20module%20'SharePointPnPPowershell2013'%2C%20but%20the%20module%20could%20not%20be%20loaded.%20For%20more%20information%2C%20run%20'Import-Module%26nbsp%3BSharePointPnPPowershell2013'.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20everything%20and%20still%20the%20above%20issue%20persists.%20Any%20of%20you%20have%20idea%20on%20how%20to%20correct%20this%20%3F%20Or%20any%20other%20solutions%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64294%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64294%22%20slang%3D%22en-US%22%3E%3CP%3EYes.%20When%20i%20copy%20and%20paste%20the%20url%20%22http%3A%2F%2Fhvsp10%2Fsites%2Fmysimplesite%2Fstyle%20library%2Fsp.responsive.ui%2Fsp-responsive-ui.js%22%20im%20able%20to%20download%20the%20js%20file.%20Also%2C%20i%20have%20the%20xml%20file%20placed%20in%20the%20same%20folder.%20Please%20refer%20the%20image.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64293%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64293%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20seems%20you%20have%20a%20xml%20reference%20to%20a%20file%20locally%20which%20does%20not%20exists%20are%20you%20sure%20the%20path%20is%20the%20same%20and%20the%20file%20is%20there%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-64147%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64147%22%20slang%3D%22en-US%22%3EHi%20Paul%2C%3CBR%20%2F%3Ei%20somehow%20installed%20the%20required%20files.%20And%2C%20i'm%20able%20to%20use%20the%20Connect-PnPOnline%20now.%3CBR%20%2F%3EAlso%2C%20i%20have%20deployed%20the%20package%20in%20my%20local%20site%20(On-Perm).%20But%2C%20I'm%20facing%20another%20issue%20now%20which%20shows%20%22Cannot%20make%20a%20cache%20safe%20URL%20for%20%22%2Fstyle%20library%2Fsp.responsive.ui%2Fsp-responsive-ui.js%22%2C%20file%20not%20found.%20Please%20verify%20that%20the%20file%20exists%20under%20the%20layouts%20directory.%22%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20idea%20on%20this%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63499%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63499%22%20slang%3D%22en-US%22%3EThanks%20much%20Paul...%20I%20will%20go%20through%20the%20link%20you%20provided.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63498%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63498%22%20slang%3D%22en-US%22%3E%3CP%3EPlease%20take%20a%20look%20at%20this%20blog%20it%20may%20help%20you%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Frencore.com%2Fblog%2Fusing-the-officedev-pnp-powershell-cmdlets-for-both-on-prem-and-in-the-cloud%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frencore.com%2Fblog%2Fusing-the-officedev-pnp-powershell-cmdlets-for-both-on-prem-and-in-the-cloud%2F%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20could%20not%20find%20a%20different%20way%20of%20connecting%20then%20you%20descripted%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63324%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63324%22%20slang%3D%22en-US%22%3E%3CP%3EAfter%2C%20getting%20the%20error%2C%20I%20used%20the%20command%20Install-Module%20SharePointPnPPowerShell2013.%20Installed%20the%20supporting%20files%20using%20PS%20and%2C%20i%20get%20the%20same%20problem%20after%20installing%20this.%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20command%20Connect-PnPOnline%20seems%20to%20be%20mentioning%20the%20O365.%20Do%20you%20know%20the%20alternate%20keyword%20for%20On-Permise%20%3F%20May%20be%20like%20Connect-PnpOnPermise%20kind%20of.%20I%20have%20also%20installed%20the%20SharePointPnPPowerShell2013.msi%20file(FYI).%20And%20then%20executed%20the%20.%5CEnable-SPResponsiveUI.ps1%20-TargetSiteurl.%20Still%20the%20same%20error%20occurs.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63303%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63303%22%20slang%3D%22en-US%22%3Eyeah%2C%20sorry%2C%20there's%20another%20module%20for%20SP20113%20On%20Premises%3A%3CBR%20%2F%3EInstall-Module%20SharePointPnPPowerShell2013%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%2C%20as%20you%20don't%20have%20that%20folder%2C%20I'm%20not%20sure%20if%20that's%20gonna%20help.%3CBR%20%2F%3EHow%20did%20you%20install%20PnP%20PowerShell%3F%3F%20using%20the%20installer%3F%20I%20saw%20your%20error%20in%20the%20past%2C%20as%20was%20always%20related%20with%20PS%20modules%2C%20not%20PnP%2C%20and%20I%20fixed%20re-installing%20PnP%20PS...%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63301%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63301%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Luis%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%20Appreciate%20your%20response.%20I%20went%20through%20the%20path%26nbsp%3BC%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%20and%20found%202%20folders.%3C%2FP%3E%3CP%3E1.%26nbsp%3BPackageManagement%3C%2FP%3E%3CP%3E2.%26nbsp%3BPowerShellGet%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%2C%20the%26nbsp%3B%3CSPAN%3EInstall-Module%20SharePointPnPPowerShellOnline%20is%20for%20SharePoint%20O365%20only%20right%20(Correct%20me%20if%20i'm%20wrong)%26nbsp%3B%3F%20I'm%20looking%20the%20solution%20for%26nbsp%3BOn-permise.%20Do%20you%20have%20any%20idea%20for%20On-Permise%20%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI'm%20getting%20the%20error%20mentioned%20in%20the%20image.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-63290%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Responsive%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-63290%22%20slang%3D%22en-US%22%3ESeems%20an%20issue%20related%20with%20PnP%20PowerShell%20Module.%20Can%20you%20take%20a%20look%20to%20the%20path%3A%3CBR%20%2F%3E%22C%3A%5CProgram%20Files%5CWindowsPowerShell%5CModules%22%20and%20ensure%20you%20have%20the%20%22SharePointPnPPowerShellOnline%22%20folder%20and%20check%20the%20version%20folder%20inside%3F%3CBR%20%2F%3EIf%20you're%20in%20Windows%2010%2C%20I'd%20try%20to%20remove%20the%20%22SharePointPnPPowerShellOnline%22%20folder%20and%20re-install%20the%20module%20again%3A%3CBR%20%2F%3EInstall-Module%20SharePointPnPPowerShellOnline%3C%2FLINGO-BODY%3E
Deleted
Not applicable

Good Day Everyone !!

   My client has requested for the responsive design to be applied in their project which is an On-Permise. And I tried using the Pnp Responsive package, but somehow i'm getting the below issue.

 

--> The Connect-PnpOnline was found in the module 'SharePointPnPPowershell2013', but the module could not be loaded. For more information, run 'Import-Module SharePointPnPPowershell2013'.

 

I have tried everything and still the above issue persists. Any of you have idea on how to correct this ? Or any other solutions ?

 

9 Replies
Seems an issue related with PnP PowerShell Module. Can you take a look to the path:
"C:\Program Files\WindowsPowerShell\Modules" and ensure you have the "SharePointPnPPowerShellOnline" folder and check the version folder inside?
If you're in Windows 10, I'd try to remove the "SharePointPnPPowerShellOnline" folder and re-install the module again:
Install-Module SharePointPnPPowerShellOnline

Hi Luis,

  Appreciate your response. I went through the path C:\Program Files\WindowsPowerShell\Modules and found 2 folders.

1. PackageManagement

2. PowerShellGet

 

And, the Install-Module SharePointPnPPowerShellOnline is for SharePoint O365 only right (Correct me if i'm wrong) ? I'm looking the solution for On-permise. Do you have any idea for On-Permise ? 

I'm getting the error mentioned in the image.

yeah, sorry, there's another module for SP20113 On Premises:
Install-Module SharePointPnPPowerShell2013

However, as you don't have that folder, I'm not sure if that's gonna help.
How did you install PnP PowerShell?? using the installer? I saw your error in the past, as was always related with PS modules, not PnP, and I fixed re-installing PnP PS...

After, getting the error, I used the command Install-Module SharePointPnPPowerShell2013. Installed the supporting files using PS and, i get the same problem after installing this.

The command Connect-PnPOnline seems to be mentioning the O365. Do you know the alternate keyword for On-Permise ? May be like Connect-PnpOnPermise kind of. I have also installed the SharePointPnPPowerShell2013.msi file(FYI). And then executed the .\Enable-SPResponsiveUI.ps1 -TargetSiteurl. Still the same error occurs.

Please take a look at this blog it may help you https://rencore.com/blog/using-the-officedev-pnp-powershell-cmdlets-for-both-on-prem-and-in-the-clou...

 

i could not find a different way of connecting then you descripted

Thanks much Paul... I will go through the link you provided.
Hi Paul,
i somehow installed the required files. And, i'm able to use the Connect-PnPOnline now.
Also, i have deployed the package in my local site (On-Perm). But, I'm facing another issue now which shows "Cannot make a cache safe URL for "/style library/sp.responsive.ui/sp-responsive-ui.js", file not found. Please verify that the file exists under the layouts directory."


Any idea on this ?

It seems you have a xml reference to a file locally which does not exists are you sure the path is the same and the file is there?

Yes. When i copy and paste the url "http://hvsp10/sites/mysimplesite/style library/sp.responsive.ui/sp-responsive-ui.js" im able to download the js file. Also, i have the xml file placed in the same folder. Please refer the image.