web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Debugging sandbox environment

(0) ShareShare
ReportReport
Posted on by 4,131

Hi experts,

I followed the article Debug a copy of the production database - Finance & Operations | Dynamics 365 | Microsoft Docs to debug code against a sandbox environment.

I changed the web.config file 

>>>>>>>>>>>>>>>>>>>>>>>>>>>

<add key="DataAccess.Database" value="<example_axdb_fromAzure>" />

<add key="DataAccess.DbServer" value="<example_axdb_server.database.windows.net>" />

<add key="DataAccess.SqlPwd" value="<sqlpwd_password_from_LCS>" />

<add key="DataAccess.SqlUser" value="sqluser_from_lcs" />

>>>>>>>>>>>>>>>>>>>>>>>>>>>

And system is not started, and I checked the event log - 

Login failed for user sqluser_from_lcs. But I use the same values and can access sandbox DB via SQL Server Management Studio.

Any idea?

Thanks,

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,429 on at

    Hi Yuji,

    While providing the IP address for accessing sandbox environment (using Maintain > Enable access), did you provide the IP address of the Dev environment? Were you able to access the sandbox DB using SQL server Management Studio from the Dev environment only?  

  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,803 Super User 2026 Season 1 on at

    Hi Yuji

    you must set your IP address in LCS.

    or you can restore your database in the VM

    Best regards

  • Alex VN Profile Picture
    1,994 on at

    Hi,

    It seems that you used SSMS to access in the same dev environment and can access. In case you still have the issue if the IP address of the dev VM is added to UAT whitelist for DB access, please double check the provided information for the above 4 fields and ensure no space or wrong value.

    Regards,

  • Suggested answer
    Robert Sammut Profile Picture
    456 on at

    If you can connect from SSMS but not from the debugging environment (using the web.config changes), then the issue might be that you requested read-only access to the sandbox.  "Reason for access" on the sandbox LCS page must be with write access.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 635 Super User 2026 Season 1

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 635 Super User 2026 Season 1

#3
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 547

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans