یه کد میخوام درون هاست یه تکست ایجاد کنه و درونش بنویسه مرسی البته با VB asp
وقتی اجرا رو میزنم به مسیر فایل اشکال میده
Using sw As StreamWriter = New StreamWriter("~/App_Data/1.txt")
sw.Write("Some sample text for the file")
sw.Close()
End Using
اشکال
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\IIS Express\~\App_Data\1.txt'.
App_Data ؟ آدین ادرسو داری ؟ تو پروژت ؟
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)