RcBuilder@walla.com
call centre: 054-5614020

web.config remove assembly

Posted by: RcBuilder  /   Category: assemblies / compilation / configuration   /   No Comments
30
Nov
2014

web.config remove assembly <compilation> <assemblies> <remove assembly=""/> <remove assembly=""/> <remove assembly=""/> </assemblies> </compilation> USING <compilation debug="true"> <assemblies> <remove.

Read more

web.config outer files using configSource

Posted by: RcBuilder  /   Category: configSource / configuration / Mail / smtp   /   No Comments
19
Nov
2014

web.config outer files using configSource web.config <configSections> <appSettings configSource="web.keys.config"/> <connectionStrings configSource="web.connections.config"/> <system.net> <mailSettings> <smtp configSource="we.Smtp.config"/> </mailSettings> </system.net> </configuration> web.keys.config <appSettings > <add key="..." value="..."/> <add key="..." value="..."/> <add key="..." value="..."/> </appSettings> web.connections.config <connectionStrings> <add name="ConnStr" connectionString="Data Source=XXXXXX;Initial Catalog=XXX;User Id=XXX;Password=XXX;Max Pool Size=200;Min Pool Size=0;Pooling=true;" providerName="System.Data.SqlClient" /> </connectionStrings> we.Smtp.config <smtp deliveryMethod="network" from="user1@gmail.com" > <network host="smtp.gmail.com" port="587" password="XXXX" userName="XXXX".

Read more

web config mail settings – smtp tag

Posted by: RcBuilder  /   Category: configuration / Mail / MailAddress / MailMessage / Network / smtp / SmtpClient / SOURCE CODE / System.Net.Mail   /   No Comments
17
Nov
2014

web config mail settings - smtp tag we can use the smtp built-in tag to define our outgoing mail server instead of using app keys configuration <system.net> <mailSettings> <smtp from="rcbuilder@gmail.com"> <network host="smtp.gmail.com" password="XXXXX" port="587" userName="somemail@domain.com"/> </smtp> </mailSettings> </system.net> using using System.Net.Mail; MailMessage myMessage = new MailMessage(); myMessage.To.Add(new MailAddress("somemail@domain.com", "ROBY")); myMessage.Subject = "HELLO ROBY"; myMessage.Body = "TEXT TEXT TEXT TEXT TEXT TEXT TEXT"; myMessage.IsBodyHtml = true; SmtpClient mySmtp = new SmtpClient(); mySmtp.EnableSsl =.

Read more

Custom Config Section

Posted by: RcBuilder  /   Category: configuration / Custom section / SOURCE CODE / StringBuilder   /   No Comments
09
Nov
2014

Custom Config Section web.config <configuration> <configSections> <section name="MySectionConfig" type="MySectionClass" /> </configSections> <MySectionConfig> <E1>ELEMENT 1</E1> <E2>ELEMENT 2</E2> <E3 A1="ATTRIBUTE 1" A2="ATTRIBUTE 2" A3="ATTRIBUTE 3" /> <G1> <add name="Name1" value="Value1" /> <add name="Name2" value="Value2" /> <add name="Name3" value="Value3" /> </G1> </MySectionConfig> </configuration> MySectionClass using System; using System.Configuration; using System.Text; public class MySectionClass : ConfigurationSection { public E e1 { get { return (E)this; } } public E e2 { get { return (E)this; } } public E3 e3 { get { return.

Read more

web config custom section group

Posted by: RcBuilder  /   Category: configuration / Custom section / Serialize / XML   /   No Comments
05
Oct
2014

web config custom section group WEB.CONFIG  <configuration> <configSections> <section name="MTGroups" type="ConfigSections.MTGroups" /> </configSections> <MTGroups> <add name="Name1" value="Value1" /> <add name="Name2" value="Value2" /> <add name="Name3" value="Value3" /> </MTGroups> </configuration> SERIALIZATION  using System.Configuration; namespace ConfigSections { public class MTGroups : ConfigurationSection{ public Group keys { get { return (Group)this; } } } public class Group : ConfigurationElementCollection{ protected override ConfigurationElement CreateNewElement() { return new Key(); } protected override object GetElementKey(ConfigurationElement element) { return ((Key)element).name; } } public class Key : ConfigurationElement{ public string name { get {.

Read more

custom config section example

Posted by: RcBuilder  /   Category: configuration / Custom section / IEnumerable / Serialize / XML   /   No Comments
01
Oct
2014

custom config section example namespace ConfigSections // this class should define the xml structure of your custom config section in order to get the // ability to deSerialize it public class MTGroups : ConfigurationSection, IEnumerable<MTGroups.Key> { public MTGroups.Group keys { get { return (MTGroups.Group)this; } } public IEnumerator<MTGroups.Key> GetEnumerator() { foreach (MTGroups.Key k in this.keys) yield return k; } IEnumerator IEnumerable.GetEnumerator() { throw new NotImplementedException(); } public class Group : ConfigurationElementCollection { protected.

Read more

Trusted Connection String

Posted by: RcBuilder  /   Category: configuration / SQL   /   No Comments
01
Oct
2014

Trusted Connection String <connectionStrings> <add name="ConnectionString" connectionString="Data Source=.;Initial Catalog=SAR_TEST;Trusted_Connection=True;" providerName="System.Data.SqlClient"/> </connectionStrings> OR <connectionStrings> <add name="ConnectionString" connectionString="Server=.;Database=SAR_TEST;Trusted_Connection=True;".

Read more

system.serviceModel configSource

Posted by: RcBuilder  /   Category: configSource / configuration / WCF   /   No Comments
23
Sep
2014

system.serviceModel outer config extension using configSource attribute web.config <system.serviceModel> <bindings configSource="WCFBindings.config" /> <client configSource="WCFClients.config".

Read more

custom email Config Section

Posted by: RcBuilder  /   Category: configuration / XML   /   No Comments
22
Sep
2014

custom Config Section -  email .config: <?xml version="1.0"?> <configuration> <configSections> <section name="MailSection" type="ConfigSections.MailSection, WebMonitoring"/> </configSections> <MailSection> <From>info@domain.com</From> <To>Roby@domain.com</To> <Bcc>Roby@domain.com</Bcc> <DisplayName>Roby</DisplayName> <PORT>25</PORT> <SMTP>smtp.domain.com</SMTP> <UserName>userName</UserName> <UserPass>password</UserPass> <Encoding>utf-8</Encoding> </MailSection> </configuration> ConfigSections.cs: namespace ConfigSections { public class Element : ConfigurationElement { public string value { get; private set; } protected override void DeserializeElement(System.Xml.XmlReader reader, bool serializeCollectionKey) { this.value = reader.ReadElementContentAs(typeof(string), null) as string; } } public class MailSection : ConfigurationSection { public Element From { get { return (Element)this; } } public Element To { get { return (Element)this; } } public Element Bcc.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים