Me topé con el problema siguiente.
Yo hice un producto (web service) que dependia de un web service previamente instalado (Creado por otro desarrollador en otro momento) que es prerequisito de mi webservice.
El chiste es que lo habia tomado de un url, pero cuando cambió al reconfigurar el web.config no tomo el cambio ya que se habia quedado hardcoded.
aparte de hacer lo de la siguiente solucion:
http://www.codeproject.com/Articles/12317/How-to-make-your-Web-Reference-proxy-URL-dynamic
lo que hice fue agregarle este codigo en Resources.cs (Codigo autogenerado).
WEB.CONFIG
<?xml version="1.0"?> <configuration> ... <appSettings> ... <add key="LLAVE" value="http://servidor/carpeta/webservice.dll/soap/IProceso"/> ... </appSettings> </configuration>
REFERENCE.CS
protected static string GetApplicationSettings(string sKey) { string sValue = null; //check if the AppSettings section has items if (System.Web.Configuration.WebConfigurationManager.AppSettings.Count > 0) { sValue = System.Web.Configuration.WebConfigurationManager.AppSettings[sKey]; } return sValue; } /// <remarks/> public IProcesosWSservice() { string TressProcesos = GetApplicationSettings("LLAVE"); this.Url = TressProcesos; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } }
Para introducir un video de youtube, manteniendo el código de la página como xhtml válido debemos modificar el código que nos presenta youtube de la forma…
<object width="425" height="350"> <param name="movie" value="http://www.youtube.com/v/7_6B6vwE83U"> </param> <embed src="http://www.youtube.com/v/7_6B6vwE83U" type="application/x-shockwave-flash" width="425" height="350"> </embed> </object>
A esta otra
<object type="application/x-shockwave-flash" style="width:425px; height:350px;" data="http://www.youtube.com/v/7_6B6vwE83U"> <param name="movie" value="http://www.youtube.com/v/7_6B6vwE83U" />< /object>
wget -krmnp http://el.sitio.web
require 'webrick' s = WEBrick::HTTPServer.new( :Port => 8000 ) s.mount_proc("/") do |request, response| response.set_redirect(WEBrick::HTTPStatus::MovedPermanently, "http://otro.servidor.com/") end trap("INT"){ s.shutdown } s.start
RewriteEngine On RewriteCond %{HTTP_HOST} ^sitio\.com$ [NC] RewriteRule ^/?(.*)$ http://www.sitio.com/$1 [R=permanent,L]