Stuff about SharePoint
Accessible SharePoint WebSitesDownload ARF
fpDGk2
Nice Site! http://google.com
I want to add an element inside configuration/runtime/asssemblyBinding! But the assemblyBinding element is within another xml-namespace! What is the path to this element? you can't just use configuration/runtime/asssemblyBinding since it returns nothing.
Jens, Unfortunately the class (SPWebConfigFileChanges) which performs the web.config updates does not use namespaces. This means that you cannot change any nodes which use a namespace. I would suggest creating your own SPJobDefinition which performs the update. Use Reflector to look at SPWebConfigFileChanges to see how Microsoft does it. --Vince
It is a great tool. Thanks for sharing. Have you tested your tool when you extend the web application to other zones such as inernet,custom,extranet and etc? I know that removing SPWebConfigModification won't work for extended apps so I assume that the same issue exists here. I haven't installed your tool , but by looking at the code I could see the same issue. Reza Alirezaei, Moss MVP Blog: http://blogs.devhorizon.com/reza
Hi, Nice Effort but i need to ask something, I am developing a application that needs to add some links to Share Point Central Administration site and for somereason i need to modify the web.config of Share Point Central Administration. How could I do this. ? Kind Regards, God bless You.
Maybe you should remove the require="MOSS" in your .config file because it's not required.
I installed using your installer and I'm getting this every time I try to use it. The error is in dutch so it had to translate.... cannot insert web.config-changes in file configuration/system.web/pages. cannot find node C:\Inetpub\wwwroot\wss\VirtualDirectories\portal.dev.svc.local80\web.config in het web.config-file. at Microsoft.SharePoint.Administration.SPWebConfigFileChanges.ApplyModificationsWebConfigXmlDocument(XmlDocument xdWebConfig, String filepath) at Microsoft.SharePoint.Administration.SPWebApplication.ApplyWebConfigModifications() at Microsoft.SharePoint.Administration.SPWebService.ApplyWebConfigModifications() at ASP._admin_webconfig_aspx.AddEntry(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) I mistyped the first time I used it. But now I get this error every time. Even If I use the examples included on the page. Same one every time. Any thoughts?
Hi! it looks like the links to the installer aren't working.. Do you know where I can find it??
nevermind! I opened my eyes and found the link that works! lol
Hi, Ur code is awesome.I learnt something new today. Thanks for your effort. really appreciated. Can i used this to read web config values from a site created using site collection and child sites. I mean a web page from a site can access this info right? also... Can I read it from a Timer Job Definition Class also. I am writing a Timer Job Definition and need to get the sql server connection string value in the code.
Hi, awesome codes!!! Thanks for sharing.
Hi, Thanks for code. It worked great. But when i was making changes, i made it to the site rather than the Central Admin on my top right corner drop down. Did I do that right? Do i need to do the same for all web front ends individually in that case? Thanks, Muthu
Excellent. This type of feature should be included in WSS due to how important and difficult it is to keep farms in sync. Thanks!
Very nice feature. Thank you for this great job.
Excellent feature. I want to add assembly in <assemblies> node in web.config. I am using the following values but getting the error "Invalid value: Expression must evaluate to a node-set." Modification Type : EnsureChildNode Modification Path : configuration/system.web/compilation/assemblies Modification Name : <add assembly="CrystalDecisions.CrystalReports.Engine,Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" /> Modification Value : <add assembly="CrystalDecisions.CrystalReports.Engine,Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" /> Can I add this using your solution?
It is resolved after i changed name to add[@assembly="CrystalDecisions.CrystalReports.Engine,Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"]
I am receiving the following error message; "Name is not compatible with the value" I am attempting to add a connection string to the web.config file under "configuration/appSettings". Modification Type: EnsureChildNodes Modification Owner: SolutionABC Modification Path: configuration/appSettings Modification Name: add[@key="SolutionABC"] Modification Value: Data Source=ServerOne;Initial Catalog=SolutionABC;User ID=SolutionABC;Password=SomePassword; Everything looks right. I'm thinking perhaps 1) I am dealing with a permissions issue, or 2) the path is not correct in the web.config file. Not sure. Any ideas? Thanks, Don
I installed your page but when i want to add a new key to appSettings section i always get the floowinf error Invalid value: Expression must evaluate to a node-set If I reload the webconfig.aspx page, the new key is displayed and accessible in web site Any idea ? NB : sorry, my english is awaful
I installed your page but when i want to add a new key to appSettings section i always get the following error Invalid value: Expression must evaluate to a node-set If I reload the webconfig.aspx page, the new key is displayed and accessible in web site Any idea ? NB : sorry, my english is awful
Hi, Can I get the source code of this solution package.