Questions tagged [web-config]

1

votes
0

answer
26

Views

block direct access to a folder using web.config

I want to block the direct access in url tab fora folder and allow access through the website links using web.config please advise
user9144056
1

votes
0

answer
80

Views

Certificate error on Azure web app with redirect from www to non-www https

I want to redirect any www subdomain requests to domain.co.uk, for example http://www.domain.co.uk https://www.domain.co.uk should redirect to https://domain.co.uk I have an SSL cert in Azure bound to domain.co.uk In the Azure portal, in Custom Domains I have set to HTTPS only In web.config I have...
Vinyl Warmth
1

votes
0

answer
571

Views

How to use the xdt:locator by condition in Web.config Transformation

I am trying to insert a dependentAssembly element into my config where the child assemblyIdentity element doesn't already exist. However, I'm getting the following error No element in the source document matches '/configuration/runtime/_defaultNamespace:assemblyBinding/_defaultNamespace:dependentAss...
PatrickNolan
1

votes
0

answer
47

Views

JQuery GET request returns missing CORS origin

OK, I have 3 servers that need to communicate together for a GET request. But I keep getting the origin is missing error, I can see the information that I want to receive in postman (so I know that my url's and passing on information works). Server with a public website from which the request starts...
Johan
1

votes
1

answer
65

Views

How can I create and use a config file for a java web service?

I have written a java web service and I need to add a config file to store things like Client Name that will change on a client by client basis. I am looking for something similar to the .net web.config file. I have tried the web.xml file, but I have been unable to get that to work. Most solutio...
1

votes
0

answer
27

Views

Get value from inherited web config within my project

I have a Web API project, that has 3 controller projects eg: ControllerProject1 ControllerProject2 ControllerProject3 The hierarchy is as follows: ControllerProject3 and ControllerProject2 cannot access each other but can both access ControllerProject1 each project has its own Web.config. I then add...
Alex
1

votes
2

answer
220

Views

How to add a field in my quartz configuration dynamically?

I have a quartz configuration section in my web.config, and I want to add a key value field to it. (I know I can just go to the web.config and add it manually but that defeats the purpose) I tried using this way var config = (NameValueCollection)WebConfigurationManager.GetSection('quartz'); config....
bleh10
1

votes
1

answer
387

Views

XML varaiable substitution option will be only replaces the value for single key in web.config

I am working on DevOps with VSTS. I have one web project (for example webproject1) with Web.config file as follows: I created the release definition for web project in VSTS using IIS Web App Manage and IIS Web App Deploy Deployment tasks. I want to replaces the key values with client key values in W...
Pradeep
1

votes
0

answer
45

Views

Good place to generate .json file from SQL in TFS

Short story: I'm trying to identify the most reasonable place in our TFS Build and Release cycle to generate some .json files with snapshot of data from a SQL db. They need to be generated prior to the final 'Tokenize with XPath/Regular expressions' task of the release definition, because they wil...
SvdSinner
1

votes
1

answer
95

Views

IIS disable authentication in subfolder

In my web.config in application is: In web.config in app folder is: This working, but I want to give access to my_public folder for anonymous users. In my_public folder is site about.aspx. In web.config in my_public folder is: When user go to my_public/about.aspx always is redirect to app/login.as...
Łukasz Walkowiak
1

votes
1

answer
66

Views

How does Windows Authentication really work? Web.config seems not enough

Trying to fix windows authentication. Objective: Windows Authentication. With Firefox a login dialog should appear, while with Internet Explorer the windows user name and password should go to the web server automatically. I set up a really small web application project, using the Empty template. We...
Roland
1

votes
0

answer
331

Views

Connection reset while uploading large file ? Asp.net

I have a function that need to allow users upload files. I was able to upload small files to server without any issues. But when it comes to large file, I am getting this. Chrome: FAILED to load resource: net::ERR_CONNECTION_RESET. After I went through some searching, I found that I need to change...
batwing
1

votes
0

answer
209

Views

Web.config separate customHeaders section

I'd like to separate my Web.config file, specifically the customHeaders section of system.webServer -> httpProtocol. I've tried replacing with But apparently configSource attribute is not supported here. Is there any other solution to this issue beside loading custom file via code from app start?
HardLuck
1

votes
0

answer
202

Views

What exactly do the module ProtocolSupportModule?

In the doc (https://docs.microsoft.com/en-us/iis/get-started/introduction-to-iis/iis-modules-overview) they say that ProtocolSupportModule Implements the supports which allow or turn off keep-alive support via configuration. I don't understand what it's mean exactly ? I saw that for example without...
loki
1

votes
1

answer
31

Views

Is it possible to save appSettings in database

I know straight forward how to implement with e.g. Ado.Net code first, but I couldn't find in the documentation anything about this and would ask you guys/gals. Is it possible to save appSettings in database? Just saying (and to avoid why-do-you-want-to-do-that comments), it is for a specific custom...
Mustafa Temiz
1

votes
0

answer
177

Views

1and1 windows hosting, web.config permissions

I'm trying to publish my ASP.NET 4.6 MVC website project to 1and1, but keep receiving this error page. https://i.stack.imgur.com/njzRx.png If this link doesn't work, here's the error details: 'HTTP Error 500.19 - Internal Server Error' Module - IIS Web Core Notification - Unknown Handler - Not yet d...
FullStackIntern98
1

votes
1

answer
79

Views

HTTP Error 500.19 When trying to Change Max Reqest Length

I am trying to have a basic feature for uploading audio files to my website. I ran across the max length error and used the solution found here. However, whenever I try to run the website I get HTTP Error 500.19 with error code 0x800700b7. My web I config looks like this: I have searched the inter...
White Eagle
1

votes
1

answer
326

Views

IIS Symfony 4, 404 Error

I am trying to make works symfony 4 demo application on my environemnt. I am using IIS with CGI and rewrite module. I can't have access to the home page of the demo, I think my IIS configuration is not well configured. Is there a standard web.config for symfony 4 and IIS? I didn't find anything.
Etienne
1

votes
0

answer
34

Views

web.config rewrite rule not working after adding similar match URL expression

i am trying to implement following URL rewrite rule in my web.config. The rule i have mentioned below is working fine, the problem is when i add one more valid expression let say |news/Announces-Magento-Partnership to it, site stops working and it give 500 internal server error, i tried making anoth...
Akash
1

votes
1

answer
33

Views

How to redirect URL

How to redirect url from www.example.com/file.html to www.example.com/folder/file.html using .htaccess and web.config I have been searching for hours and have found several topics but none works for us
1

votes
0

answer
85

Views

How to correctly specify proxy with System.Net.HttpClient

Can anyone answer whether or not an HttpClient should be using default proxy if specified within web.config? Whenever I use HttpClient I find myself having to implement a static HttpClientHandler private static HttpClientHandler statichandler = new HttpClientHandler() { Proxy = new WebProxy(Configur...
Jon Selby
1

votes
0

answer
152

Views

How to disable viewstate size limit in ASP.NET webconfig

For now on I've been investigating this error: The state information is invalid for this page and might be corrupted. I've come out with this: One possible reason for “The state information is invalid for this page…” exception This guy just found exactly the same issue I'm fighting for. Becau...
Arngue
1

votes
0

answer
40

Views

How to get the PublicKeyToken of a created machine-level RSA key container to use in “configProtectedData” element of Web.config?

I created an RSA key container by following command: aspnet_regiis -pc '[my container name]' -exp Now I want to use it to encrypt connectionStrings of Web.config so I use the following element in Web.config: I use the value of the PublicKeyToken same as MSDN sample (b03f5f7f11d50a3a), but I want to...
M. Afrashteh
1

votes
0

answer
168

Views

Limit IIS rewrite map for particular domain

My requirement is to need redirect url for particular domain.So i decided to use rewrite map but what ever i tried below that will apply for all domain i have. Its not apply to particular domain. Let me example more deeply. Suppose i have 3 domains on same IIS instance www.abc.com www.xyz.com www.e...
Andi AR
1

votes
0

answer
249

Views

WOFF and WOFF2 mime type support for express js

I am using express static middle ware to serve my static file to server, facing 404 error for woff2 and woff fonts. This two mime type are available in development environment, but not in production environment. I have hosted my node js app in Azure. I tried following lines in web.config in Azure se...
Kunalan Krish
1

votes
0

answer
306

Views

aspnet_regiis unable to decrypt the Web.config

I encrypt ConnectionStrings section in the web.config file successfully by the following command: aspnet_regiis -pef 'connectionStrings' '[web.config physical path]' -prov '[provider name]' But when I decrypt it by the following command: aspnet_regiis -pdf 'connectionStrings' '[web.config physical p...
M. Afrashteh
1

votes
2

answer
291

Views

set variables by webpack.DefinePlugin from outer file - issues with async read

I have a two variables defined in the webpack.config.js file that I want to populate with values from outer file called Web.config. For this outer file I have an npm package called just webconfig to parse the variables and it works. File is parsed async so the problem is with creating the module.exp...
lkurylo
1

votes
1

answer
142

Views

Custom password policy for spring boot from file after build

My scenario below: I have a web application which I am building using spring boot . I want to a create a configuration file PolicyPassword (which may be .property, .xml...) to set some policy for passwords Ex: - Max/min length - Allow special characters.. After building the war and deploying it to...
Chi.che
1

votes
0

answer
117

Views

Does Angular 5+ has similar global variable data like web.config in asp.net?

In asp.net web application, we can save some settings or key attribute in web.config like database connection string, key variable like salt, api url or ftp location which won't be exposed to outside user, while when working in Angular 5 project, where can we store these information? I noticed ther...
KevDing
1

votes
0

answer
79

Views

Make appendQueryString=“false” for a particular .aspx page when I have url rewrite enabled as following in web.config

This is the url rewrite module in web.config which appends query string to all aspx pages.But how do i make appendquerystring='false' for a particular aspx page. ``
Debayan Das
1

votes
2

answer
184

Views

How avoid *.<Environment>.config transformations being deployed on server

I'm using VSTS to deploy at several environments. And as usual, some parameters on config files need to be different depending the environment, hence I will use config transformations to deploy it at the target environment. Since I want to have the package with both the config and the transform that...
OriolBG
1

votes
1

answer
35

Views

WCF service resource cannot be found

I have a REST WCF Service that works fine on localhost but returns the below error when deploying online: The resource cannot be found. Note: My WCF service is located under the following path: https://example.com/api/v1/Service.svc I am pretty sure that the problem is a path error and I tried too m...
Rami Zebian
1

votes
1

answer
118

Views

Accessing web.config file from an external dll in C#

I am doing a product licensing application using MVC and Webservices. Here if a product(win/web application) needs to perform license validation, then it will call the web service I have implemented in my licensing application. And it works fine. If a product want to register with this licensing ap...
Anu
1

votes
1

answer
24

Views

How can I host a web.config-only server?

Context See this question: Enable CORS on Azure Service Bus Namespace Really I want to have a front-end only ReactJS app that talks to the Azure API, and renders bits of the result onto the screen. Then gets input from the users and sends that back to the Azure API. Rinse and repeat. Unfortunately C...
Brondahl
1

votes
0

answer
93

Views

configuration section not allowed to be set below application when cloning web app

I have the requirement to clone a web app hosted in iis server, so i just copy the folder and tried to set the new app in iis, but i'm getting and error: 'configuration section not allowed to be set below application' the error line is the windows authentication section.
Arthur85
1

votes
0

answer
74

Views

How to allow request invalid characters in uploaded file name?

I have the following error when a user tries to upload a file with invalid characters in the file name (e.g. 'John's Test.pdf'). A potentially dangerous Request.Files value was detected from the client (filename='John's Tests.pdf'). I tried adding ValidateInput(false) to the controller acti...
Martin D.
1

votes
1

answer
157

Views

web.config https redirect for multi-domain hosting

I've got a GoDaddy multi website hosting account and now that I've implemented SSL I want all those domains that have SSL to now redirect to https. GoDaddy says the web.config needs to be modified but they have no examples on how to do this for multiple domains. I've tried the following code which...
user10016609
1

votes
1

answer
43

Views

How to configure access by host-name using web.config

I am binding web app with 2 host names, example: abc.com xyz.com I have a page t1.html. I would like to set permission access on file abc.com/t1.html → allow xyz.com/t1.html → not allow to access I guess we can do it in web.config not in code. I did some research but most of the posts are rela...
1

votes
0

answer
136

Views

how i can hide Query string and *.aspx in url (c# , asp.net)?

please help me,i spend 1 day but yet i cant fix this i need change address from: http://localhost:61802/SHOP.aspx?Search=gg to : http://localhost:61802/SHOP/Search/gg in web.config i have:
hosein.gh
1

votes
0

answer
34

Views

ip range pattern in web.config

I want to redirect all the ip's in between 83.116.119.0 to 255.255.255.0 Please help me to write a pattern in my code(IPTOBEBLOCKED). Here is my code

View additional questions