web-config

Web.config - PayPal IPN Listener - HTTP error code 500: Internal Server Error

空扰寡人 提交于 2019-12-25 05:15:14
问题 I am trying to get my PayPal IPN Listener to work on my Live environment, it works on Staging perfectly and the issue is something to do with the web.config file: (http://pastebin.com/B8YhJEZK) I am using "https://developer.paypal.com/us/cgi-bin/devscr" and the Instant Payment Notification (IPN) simulator to test the web service however I am getting the following: "IPN delivery failed. HTTP error code 500: Internal Server Error" 回答1: You might want to read this announcment from PayPal in

Custom Role Manager / Provider

我的梦境 提交于 2019-12-25 04:59:15
问题 I am trying to implement a custom role manager in an MVC5 application using the following Custom Role Provider Tutorial. I have created my Custom Role Provider overiding the 2 required functions. namespace Models.Security { public class CustomRoleProvider : RoleProvider { /// logic public override string[] GetRolesForUser(string username) { /// logic public override bool IsUserInRole(string username, string roleName) { I then need to alter my web config to use this new provider... <system.web

Unable to access Login form in Umbraco 7.5.4 after deploying the web-application on Internet

本秂侑毒 提交于 2019-12-25 04:17:09
问题 After deploying my web application on internet, I cannot access to Login form for umbraco admin back-office [http://www.cake-and-art.de//umbraco][1] I've encountered an error. How can I solve it? Please help me. I've used Umbraco 7.5.4 and ASP.NET MVC Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security

How to encrypt .config file Asp.net

痴心易碎 提交于 2019-12-25 04:09:08
问题 I want to encrypt common.config, not the Web.config file. Common.config is in a different location than the web.config. The web.config file is connected to the common.config. web.config: <appSettings file="C:\Users\ja\Documents\common.config"> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> common.config: <appSettings> <add key=

How to encrypt .config file Asp.net

佐手、 提交于 2019-12-25 04:08:14
问题 I want to encrypt common.config, not the Web.config file. Common.config is in a different location than the web.config. The web.config file is connected to the common.config. web.config: <appSettings file="C:\Users\ja\Documents\common.config"> <add key="webpages:Version" value="3.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> common.config: <appSettings> <add key=

URL Rewrite not executed on Azure, several projects

坚强是说给别人听的谎言 提交于 2019-12-25 03:49:21
问题 I am trying to rewrite the URL on an Azure MVC application. The solution contains many projects, thus has web.config files all over the place. The URL Rewrite objective is to send all URLs based on the Project "Statistics" to the subdomain "admin", whatever subdomain was called at the origin of the request. (I created this rule independently on my laptop with IIS Manager and imported it manually in one of the projects) <configuration> <system.webServer> <!--Something here. The rule nests at

Convert htaccess file to web.config to run Php on IIS 7

五迷三道 提交于 2019-12-25 03:40:11
问题 I need to convert .htaccess to web.config in order to run php on iis 7. Any Ideas? Options +FollowSymLinks +SymLinksIfOwnerMatch RewriteEngine On RewriteBase /test RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php 回答1: The URL Rewriting module's import rules from .htaccess wizard generated the following rules: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="non-existent paths to index.php"

IIS Server and Spring.NET object instantiation failed

て烟熏妆下的殇ゞ 提交于 2019-12-25 03:36:22
问题 I am using Spring.NET in my web application. At the beginning the application was set to use Visual Studio Development Server. Everything was working fine. But when I changed it to use Local IIS Web server and created a Virtual Directory and run the application I got System.NullReferenceException . I think I need to configure my Web.config in such a way so the Spring.NET work with IIS. The Web.config file is: <configuration> <configSections> <sectionGroup name="common"> <section name="logging

IIS url rewrite rewriting all .asp to .html

半城伤御伤魂 提交于 2019-12-25 02:54:29
问题 I need to create rules for web.config that will rewrite all requests for files with extension .html to .asp and redirect all .asp requests to .html Example: file_xyz.asp rewrites to file_xyz.html directory1/file_xyz.asp rewrites to directory1/file_xyz.html and file_xyz.html redirects to file_xyz.asp directory1/file_xyz.html redirects to directory1/file_xyz.asp What is the syntax for the rule Is this too broad a rule? If I should need for what ever reason to have a physical file such as file

Keyword not supported: 'metadata' + MySQL

夙愿已清 提交于 2019-12-25 02:53:06
问题 The error When it happens I'm attempting to create a simple controller using a ViewModel as model. Connection String <connectionStrings> <add name="BoaPropostaEntities" connectionString="metadata=res://*/Models.MyApp.csdl|res://*/Models.MyApp.ssdl|res://*/Models.MyApp.msl;provider=MySql.Data.MySqlClient;provider connection string='server=localhost;user id=root;password=root;persistsecurityinfo=True;database=mydatabase'" providerName="MySql.Data.MySqlClient"/> Web.Config spotlight I also added