0

I have encrypted the web.config connectionString, then Tilde (~) releted paths are redirecting to 404 errors,

Ex: ~/ images/ title.png not opening, it showing 404 error,

Please suggest me any IIS settings need to change.

Error screenshot:

enter image description here

Thank you in advance

MPK
  • 1
  • 1
  • Please write it properly. your question seems unclear. – shubham bahuguna Mar 18 '19 at 02:59
  • 1
    Did you encrypt the entire Web.config or just the (database) connection string ? Are your image paths coming from the Database? if so maybe the connection isn't working? Please show the code that is failing. Also you have 'ConectioString' misspelled. – DaniDev Mar 18 '19 at 03:13
  • Encrypted URL: aspnet_regiis.exe -pef "connectionStrings" "C:\project\application" – MPK Mar 18 '19 at 03:23
  • Are your image paths coming from the Database? Ans: Most of them are static paths. if so maybe the connection isn't working? Ans: ConnectionString working fine login and all working fine. i'm suspecting IIS server settings misfired, because in another sever it was working fine after encrypted the "ConnectionString". – MPK Mar 18 '19 at 03:33
  • Make sure your project structure is correct, enable logs to look for further information... This error is common with incorrect static paths. Do upload an image of project structure with the directory info and/or how you're encrypting it – kowsikbabu Mar 18 '19 at 07:10
  • Same published code we deployed into another server. But its working fine. I suspecting IIS settings.... – MPK Mar 18 '19 at 07:42
  • @MPK How you are using these URLs? – ElasticCode Mar 18 '19 at 08:08
  • I'm using the URLusing Tlide(~) path. ex: – MPK Mar 18 '19 at 12:50
  • Actually i'm getting error: net::ERR_ABORTED 404 (Not Found) – MPK Mar 18 '19 at 12:50
  • issued fixed, i have added Bundlemoudle in web.config – MPK Mar 18 '19 at 15:01

0 Answers0