• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Setting up ColdFusion Server website with another user login web.config

Explorer ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

Hi,

I have a ColdFusion 2021 webserver with IIS.  

dchangfcstategau_1-1714218435856.png

 

The above setting will work.  But, since it uses my personal login and we have a policy to change personal passwords every so often, that means I will need to come here to change my password. 

 

I tried to change this to an administrative account that does not require periodic password change,  but then, I got this error. 

 

dchangfcstategau_2-1714218981509.png

 

How should I go about fixing this?  I could not identify the location of web.config.  I wonder if making the suggested change will work either. 

 

Comments/Suggestions? 

 

Thanks.

 

dchan

TOPICS
Server administration

Views

151

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 27, 2024 Apr 27, 2024

You would place that web.config file in that website folder whose name you show. And if one is there already, you'd instead carefully fold these changes into that.

 

Or you could instead use the iis ui. At this web site level, find the "error pages" feature, open that, then use the "edit feature settings" on the right, and change the value to "detailed". (Google for more details if needed.)  Now refresh the page.

 

Either way, you should now see the actual error that is happening because of your

...

Votes

Translate

Translate
Community Expert ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

You would place that web.config file in that website folder whose name you show. And if one is there already, you'd instead carefully fold these changes into that.

 

Or you could instead use the iis ui. At this web site level, find the "error pages" feature, open that, then use the "edit feature settings" on the right, and change the value to "detailed". (Google for more details if needed.)  Now refresh the page.

 

Either way, you should now see the actual error that is happening because of your password change.

 

Finally, you should NOT need to be using a personal username and password for accessing the folder in question. Your iis site runs by default under a special windows user account that incorporates the name of the app pool used by the site, and you should be able to grant that user permission to the folder in question. This, too, is something you should be able to learn more about in any of many online resources.

 

Indeed, as it's not at all a question specific to cf, you don't need to give regard to cf at all in looking into it. That should widen your search results.

 

Let us know if you solve things, or if you fail to find help. Of course, others here may offer an expansion on what I've offered, or they may well offer an entirely different answer (even one which entirely ignores what I've said, as can happen here sometimes). 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

Hi @Charlie Arehart ,

 

Thanks for the reply.  

I found the web.config file.  I can make edit to it and the changes DID take effect.

However, the error screen I posted was simply saying that something is wrong without specifying the details.  

Where may I see the details?  

 

It is probably not best practice to use personal username/password to make the website works, but it works.  I am trying to migrate away from it, but run into this issue.  

 

Thanks. 

 

dchan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

You will see the details on the page as rendered. If it's still showing the same thing as before, then your attempt to solve that by editing the file has failed to work. 

 

Please skip that and user the other approach I'd offered. 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

Hi @Charlie Arehart ,

Thanks for the tips! 

I am able to switch to an admin user/password for my ColdFusion website! 

I followed your instruction to Edit Feature of Error pages in IIS for the website to change the setting to "Details".

In Web.config, I added

<system.web>
<customErrors mode="Off"/>
</system.web>

Then, I can see the errors.  From there, I was able to trace down the errors, which were permission related issues and solve them one by one.  

Finally, my website works ! 

 

THANKS! 

dchan

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 27, 2024 Apr 27, 2024

Copy link to clipboard

Copied

LATEST

Very good to hear. Thanks for the update. If you'd please mark a reply or replies as answers, that will help other readers (and Adobe appreciates knowing especially when "community experts" answer questions). 


/Charlie (troubleshooter, carehart.org)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation