git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C153
This commit is contained in:
parent
1dee17733b
commit
04e8bfc91a
3 changed files with 71 additions and 53 deletions
|
|
@ -17,20 +17,21 @@ namespace AYA.SlnSinort.Controllers
|
|||
public void InitControllers()
|
||||
{
|
||||
Atesa.Utilitarios.ObtieneParametros parametros = new Atesa.Utilitarios.ObtieneParametros();
|
||||
var SinortWCF = "http://localhost/AYA.SlnSinort.WCF/Sinort.svc";
|
||||
//parametros.GetValueKeyRegedit("SinortWCF", false);
|
||||
var SinortCatalogosWCF = "http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc";
|
||||
//parametros.GetValueKeyRegedit("SinortCatalogosWCF",false);
|
||||
var FileUploadHandler = "http://localhost/AYA.SlnSinort/FileUploadHandler";
|
||||
var SinortWCF = ConfigurationManager.AppSettings["SinortWCF"].ToString();
|
||||
var SinortCatalogosWCF = ConfigurationManager.AppSettings["SinortCatalogosWCF"].ToString();
|
||||
var FileUploadHandler = ConfigurationManager.AppSettings["FileUploadHandler"].ToString();
|
||||
var RepositorioVirtual = ConfigurationManager.AppSettings["HttpRepository"].ToString();
|
||||
var RepositorioLocal = ConfigurationManager.AppSettings["FileRepository"].ToString();
|
||||
var Usuario = Session["Usuario"] != null ? Session["Usuario"].ToString() : String.Empty;
|
||||
|
||||
ViewBag.SinortWCF = SinortWCF;
|
||||
ViewBag.SinortCatalogosWCF = SinortCatalogosWCF;
|
||||
ViewBag.AtesaUser = User.Identity.GetUserName();
|
||||
ViewBag.Usuario = Usuario;
|
||||
ViewBag.FileUploadHandler = FileUploadHandler;
|
||||
ViewBag.RepositorioVirtual = RepositorioVirtual;
|
||||
ViewBag.RepositorioLocal = RepositorioLocal;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -390,8 +390,7 @@
|
|||
<input type="hidden" id="hiddenSinortWCF" value="@ViewBag.SinortWCF" />
|
||||
<input type="hidden" id="hiddenSinortCatalogosWCF" value="@ViewBag.SinortCatalogosWCF" />
|
||||
<input type="hidden" id="hiddenHref" value="@string.Concat(Url.Action("View", "Controller", null), ViewBag.QueryEncripted)">
|
||||
<input type="hidden" id="hiddenMenuCreado" value="" />
|
||||
<input type="hidden" id="hiddenUsuario" value="@ViewBag.AtesaUser" />
|
||||
<input type="hidden" id="hiddenUsuario" value="@ViewBag.Usuario" />
|
||||
<input type="hidden" id="hiddenFileUploadHandler" value="@ViewBag.FileUploadHandler" />
|
||||
<input type="hidden" id="hiddenRepositorioVirtual" value="@ViewBag.RepositorioVirtual" />
|
||||
<input type="hidden" id="hiddenRepositorioLocal" value="@ViewBag.RepositorioLocal" />
|
||||
|
|
|
|||
|
|
@ -7,10 +7,14 @@
|
|||
<configSections>
|
||||
|
||||
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --><sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
|
||||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
||||
<sectionGroup name="dotNetOpenAuth" type="DotNetOpenAuth.Configuration.DotNetOpenAuthSection, DotNetOpenAuth.Core">
|
||||
<section name="messaging" type="DotNetOpenAuth.Configuration.MessagingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
|
||||
<section name="reporting" type="DotNetOpenAuth.Configuration.ReportingElement, DotNetOpenAuth.Core" requirePermission="false" allowLocation="true" />
|
||||
<section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" /><section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" /></sectionGroup></configSections>
|
||||
<section name="openid" type="DotNetOpenAuth.Configuration.OpenIdElement, DotNetOpenAuth.OpenId" requirePermission="false" allowLocation="true" />
|
||||
<section name="oauth" type="DotNetOpenAuth.Configuration.OAuthElement, DotNetOpenAuth.OAuth" requirePermission="false" allowLocation="true" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<!--<connectionStrings>
|
||||
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-AYA.SlnSinort-20180604035805.mdf;Initial Catalog=aspnet-AYA.SlnSinort-20180604035805;Integrated Security=True" providerName="System.Data.SqlClient" />
|
||||
</connectionStrings>-->
|
||||
|
|
@ -27,8 +31,11 @@
|
|||
<add key="webpages:Enabled" value="false" />
|
||||
<add key="ClientValidationEnabled" value="true" />
|
||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||
<add key="SinortWCF" value="http://localhost/AYA.SlnSinort.WCF/Sinort.svc"/>
|
||||
<add key="SinortCatalogosWCF" value="http://localhost/AYA.SlnSinort.WCF/SinortCatalogos.svc"/>
|
||||
<add key="FileRepository" value="C:\DocumentosSINORT\" />
|
||||
<add key="HttpRepository" value="http://localhost/AYA.SlnSinort/DocumentosSINORT/" />
|
||||
<add key="FileUploadHandler" value="http://localhost/AYA.SlnSinort/FileUploadHandler"/>
|
||||
<add key="MaxSizeFileLoadKB" value="5120" />
|
||||
<add key="MaxCountFileLoad" value="3" />
|
||||
</appSettings>
|
||||
|
|
@ -77,7 +84,8 @@
|
|||
<remove name="OPTIONSVerbHandler" />
|
||||
<remove name="TRACEVerbHandler" />
|
||||
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
|
||||
</handlers></system.webServer>
|
||||
</handlers>
|
||||
</system.webServer>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
|
|
@ -133,7 +141,9 @@
|
|||
<bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
<!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). --><legacyHMACWarning enabled="0" /><!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
|
||||
<!-- This prevents the Windows Event Log from frequently logging that HMAC1 is being used (when the other party needs it). -->
|
||||
<legacyHMACWarning enabled="0" />
|
||||
<!-- When targeting ASP.NET MVC 3, this assemblyBinding makes MVC 1 and 2 references relink
|
||||
to MVC 3 so libraries such as DotNetOpenAuth that compile against MVC 1 will work with it.
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
|
|
@ -141,7 +151,8 @@
|
|||
<bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
--></runtime>
|
||||
-->
|
||||
</runtime>
|
||||
<entityFramework>
|
||||
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
||||
<parameters>
|
||||
|
|
@ -152,7 +163,7 @@
|
|||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<system.net>
|
||||
<system.net>
|
||||
<defaultProxy enabled="true" />
|
||||
<settings>
|
||||
<!-- This setting causes .NET to check certificate revocation lists (CRL)
|
||||
|
|
@ -160,7 +171,8 @@
|
|||
be allowed in shared hosting environments. -->
|
||||
<!--<servicePointManager checkCertificateRevocationList="true"/>-->
|
||||
</settings>
|
||||
</system.net><dotNetOpenAuth>
|
||||
</system.net>
|
||||
<dotNetOpenAuth>
|
||||
<messaging>
|
||||
<untrustedWebRequest>
|
||||
<whitelistHosts>
|
||||
|
|
@ -171,7 +183,9 @@
|
|||
</messaging>
|
||||
<!-- Allow DotNetOpenAuth to publish usage statistics to library authors to improve the library. -->
|
||||
<reporting enabled="true" />
|
||||
<!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. --><!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ --><openid>
|
||||
<!-- This is an optional configuration section where aspects of dotnetopenauth can be customized. -->
|
||||
<!-- For a complete set of configuration options see http://www.dotnetopenauth.net/developers/code-snippets/configuration-options/ -->
|
||||
<openid>
|
||||
<relyingParty>
|
||||
<security requireSsl="false">
|
||||
<!-- Uncomment the trustedProviders tag if your relying party should only accept positive assertions from a closed set of OpenID Providers. -->
|
||||
|
|
@ -184,10 +198,14 @@
|
|||
with OPs that use Attribute Exchange (in various formats). -->
|
||||
<add type="DotNetOpenAuth.OpenId.RelyingParty.Behaviors.AXFetchAsSregTransform, DotNetOpenAuth.OpenId.RelyingParty" />
|
||||
</behaviors>
|
||||
</relyingParty></openid></dotNetOpenAuth><uri>
|
||||
</relyingParty>
|
||||
</openid>
|
||||
</dotNetOpenAuth>
|
||||
<uri>
|
||||
<!-- The uri section is necessary to turn on .NET 3.5 support for IDN (international domain names),
|
||||
which is necessary for OpenID urls with unicode characters in the domain/host name.
|
||||
It is also required to put the Uri class into RFC 3986 escaping mode, which OpenID and OAuth require. -->
|
||||
<idn enabled="All" />
|
||||
<iriParsing enabled="true" />
|
||||
</uri></configuration>
|
||||
</uri>
|
||||
</configuration>
|
||||
Loading…
Add table
Reference in a new issue