Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Wrong ScriptLink entry using feature activation causing every page in Sharpeoint 2010 site to throw error

$
0
0

Hi,

My requirement was to depoly a javascript file to the style library in a Site collection. To associate this js file to the custom ribbon action which would be using the javascript functions, I added the following code to the feature activated method:

Now, I am getting an error which ever site page i am trying to open on my browser: 

"/_layouts/http://webapp:port/sites/mysite/style library/InitiateworlflowFiles/CustomRibbonActionforWorkflows.js is not a valid virtual path"

I am not able to update the scriptPath, tried deactivating the feature and uninstalling it, nothing seems to work. I am able to open the site in SPDesigner, but not able to see the ScriptLinks hardcoded there. Tried to attach a different master page, but the issue is persisting. Not ale to make sure where the ScriptLink reference is coming from.

Any guidance on how an already added ScriptLink can be edited/removed will be much appreciated.

Thanks

Grigory


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>