web-config

RadEditor requires a HttpHandler registration in web.config

爱⌒轻易说出口 提交于 2019-12-24 07:19:46
问题 When I add this code to my aspx , <telerik:RadEditor ID="REWelcome" runat="server" AutoResizeHeight="True" Width="500px" ToolbarMode="Floating"> <Content> </Content> <TrackChangesSettings CanAcceptTrackChanges="False"></TrackChangesSettings> </telerik:RadEditor> And I got this error message , '~/Telerik.Web.UI.WebResource.axd' is missing in web.config. RadScriptManager requires a HttpHandler registration in web.config. How can I solve it ? 回答1: In your web.config - add the following to the

ASP.NET Authorization inherits rules

无人久伴 提交于 2019-12-24 07:13:04
问题 I am trying to protect a (sub)directory in my ASP.NET website that contains files (Videos, documents etc.) So I created a Web.config file: <?xml version="1.0"?> <configuration> <system.web> <authorization> <deny users="?"/> <allow roles="Administrator"/> <allow roles="Author"/> <allow roles="Report"/> </authorization> </system.web> </configuration> These roles correspond with those defined in the asp.net roles table in my database. I opened up IIS7 to check if the authorization rules were

Could not determine storage version error, EF 6 code first

给你一囗甜甜゛ 提交于 2019-12-24 06:34:10
问题 I'm using EF code first approach in MVC and my web.config's connection string looks like- <connectionStrings> <add name="SchoolContext" connectionString="XYZ-server;integrated security=True;" providerName="System.Data.SqlClient"/> </connectionStrings> And I'm getting following error- Server Error in '/' Application. Could not determine storage version; a valid storage connection or a version hint is required. I also checked duplicates but none of them worked in my case- Duplicate question1

Is there an equivelent of Microsoft.Web.Administration for IIS versions prior to 7.0?

故事扮演 提交于 2019-12-24 06:27:17
问题 Seems this namespace is limited to IIS7 and upwards. Are there any managed libraries from Microsoft or elsewhere that enable you to survey the configuration (just looking for read only config) for a given set of IIS installations? Otherwise one would have to poke through web.configs, the metabase, and try to cobble it all together. 回答1: No, there aren't any managed libraries like this for < IIS7. You can use ADSI to query the metabase, but that's the best I've been able to do. 来源: https:/

Is there an equivelent of Microsoft.Web.Administration for IIS versions prior to 7.0?

前提是你 提交于 2019-12-24 06:26:21
问题 Seems this namespace is limited to IIS7 and upwards. Are there any managed libraries from Microsoft or elsewhere that enable you to survey the configuration (just looking for read only config) for a given set of IIS installations? Otherwise one would have to poke through web.configs, the metabase, and try to cobble it all together. 回答1: No, there aren't any managed libraries like this for < IIS7. You can use ADSI to query the metabase, but that's the best I've been able to do. 来源: https:/

Is it possible to set session timeout to 1 minute in Asp.net?

帅比萌擦擦* 提交于 2019-12-24 06:01:04
问题 For testing purpose I want to set session timeout to 1 minute - is it possible? I have defined timeout as 1 minute in web.config , but it is not working (I heard default timeout is 20 minutes so minimum 20?) <sessionState mode="StateServer" cookieless="false" timeout="1"/> 回答1: Yes, you can set it to less than 20 minutes. Default 20 doesn't means minimum 20 . Also, you used <sessionState> element of Web.config, so set it as: <sessionState mode="StateServer" cookieless="false" timeout="1" />

How to override web.config values in custom section in Azure Web App?

筅森魡賤 提交于 2019-12-24 05:46:28
问题 It is possible in Azure Web App to override web.config AppSettings section easily. E.g. if I have the following web.config: <appSettings> <add key="AllowedCORSOrigin" value="http://localhost:26674"/> </appSettings> I can override it in the app settings UI in the portal like that: I have also a custom section in the web.config: <AdWordsApi> <add key="OAuth2RefreshToken" value="TOKEN" /> </AdWordsApi> Is it possible to override it somehow as well? I have tried AdWordsApi.OAuth2RefreshToken and

MVC 5 Error Handling Web.Config customErrors

不羁的心 提交于 2019-12-24 05:46:09
问题 I was exploring different types of error handling and was trying to setup some of my own error handling. My first attempt was to use customErrors section in the web.config file. I have setup two error sections. One for 404 errors and the other for 403 . In one of my controllers I set the Response.StatusCode = 404; and postman receives a status of 404. However, my page is served up and the status is never caught. Maybe I am missing something. Below is my sample. Controller: public ActionResult

MVC 5 Error Handling Web.Config customErrors

左心房为你撑大大i 提交于 2019-12-24 05:46:03
问题 I was exploring different types of error handling and was trying to setup some of my own error handling. My first attempt was to use customErrors section in the web.config file. I have setup two error sections. One for 404 errors and the other for 403 . In one of my controllers I set the Response.StatusCode = 404; and postman receives a status of 404. However, my page is served up and the status is never caught. Maybe I am missing something. Below is my sample. Controller: public ActionResult

MVC Url Request - Illegal Characters in path

江枫思渺然 提交于 2019-12-24 04:24:06
问题 Overview: 404 error page is configured in web.config and working Using Umbraco v6.2 customErrors are set to RemoteOnly The issue is when I put "%7C" in the URL, I receive this: Illegal characters in path. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Illegal characters in path. Source Error: An