Ehsan Rafsanjani
دوشنبه 11 اردیبهشت 1385, 10:53 صبح
در اجرای یک httphandler با پیام خطای زیر روبرو می شم
Could not load file or assembly 'SimpleHandlerVB' or one of its dependencies. The system cannot find the file specified
اصل برنامه هم اینه:
handler.vb
Imports System.Web
Namespace Acme
Public Class SimpleHandlerVB : Implements IHttpHandler
Public Sub ProcessRequest(Context As HttpContext) Implements IHttpHandler.ProcessRequest
Context.Response.Write("Hello World!")
End Sub
Public ReadOnly Property IsReusable As Boolean Implements IHttpHandler.IsReusable
Get
Return true
End Get
End Property
End Class
End Namespace
و اینم تنظیمات web.config
<configuration> <system.web> <httpHandlers> <add verb="*" path="SimpleHandler.aspx" type="Acme.SimpleHandlerVB,SimpleHandlerVB" /> </httpHandlers> </system.web></configuration>
کسی از دوستان می تونه کمک کنه:متفکر:
Could not load file or assembly 'SimpleHandlerVB' or one of its dependencies. The system cannot find the file specified
اصل برنامه هم اینه:
handler.vb
Imports System.Web
Namespace Acme
Public Class SimpleHandlerVB : Implements IHttpHandler
Public Sub ProcessRequest(Context As HttpContext) Implements IHttpHandler.ProcessRequest
Context.Response.Write("Hello World!")
End Sub
Public ReadOnly Property IsReusable As Boolean Implements IHttpHandler.IsReusable
Get
Return true
End Get
End Property
End Class
End Namespace
و اینم تنظیمات web.config
<configuration> <system.web> <httpHandlers> <add verb="*" path="SimpleHandler.aspx" type="Acme.SimpleHandlerVB,SimpleHandlerVB" /> </httpHandlers> </system.web></configuration>
کسی از دوستان می تونه کمک کنه:متفکر: