question

MohamedRafiN-6400 avatar image
0 Votes"
MohamedRafiN-6400 asked MohamedRafiN-6400 answered

Need Error Correction on coding

184463-image.png


dotnet-aspnet-generaldotnet-aspnet-webforms
image.png (174.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LanHuang-MSFT avatar image
0 Votes"
LanHuang-MSFT answered MohamedRafiN-6400 commented

Hi @MohamedRafiN-6400,
You just need to add the following line or click where to take the screenshot.

 using System.Data.SqlClient;

184360-1.jpg
Best regards,
Lan Huang


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



1.jpg (119.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


i have already inserted but still error184483-123.png


0 Votes 0 ·
123.png (141.2 KiB)
LanHuang-MSFT avatar image LanHuang-MSFT MohamedRafiN-6400 ·

Hi @MohamedRafiN-6400,
Maybe you can try to add it according to the location marked in the screenshot, don't add it when the project is running.

https://docs.microsoft.com/en-us/dotnet/api/system.configuration.configurationmanager?view=dotnet-plat-ext-6.0
Best regards,
Lan Huang

0 Votes 0 ·

Sir, i have added using system.data.sqlclient ad saved project and run after that also it shows same error

0 Votes 0 ·
MohamedRafiN-6400 avatar image
0 Votes"
MohamedRafiN-6400 answered

184499-image.png



How to clear this error?


image.png (167.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

OlafHelper-2800 avatar image
0 Votes"
OlafHelper-2800 answered MohamedRafiN-6400 commented

A completly different error, has nothing to do with your origin question/issue.

Do you want .NET to guess the user id for SQL Server login or why did you left it empty?

184515-image.png



image.png (22.9 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

if i put my user id root it shows the same error sir

0 Votes 0 ·

if i put my userid as root it shows the same error sir, it was not showing output

0 Votes 0 ·
MohamedRafiN-6400 avatar image
0 Votes"
MohamedRafiN-6400 answered

if i put my userid as root it shows the same error sir, it was not showing output

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.