PDA

View Full Version : مشکل در httphandler



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>










کسی از دوستان می تونه کمک کنه:متفکر:

Behrouz_Rad
دوشنبه 11 اردیبهشت 1385, 11:15 صبح
فایل DLL ات کو؟
باید با فایل vbc.exe (کامپایلر VB.NET)، کامپایلش کنی.

موفق باشی.

Ehsan Rafsanjani
دوشنبه 11 اردیبهشت 1385, 11:57 صبح
کامپایلش کردم بازهم نشد!!

Ehsan Rafsanjani
دوشنبه 11 اردیبهشت 1385, 12:02 عصر
ولی الان یه جور دیگه حل شد حتی بدون کامپایل الیته asp.net 2005 من که نفهمیدم مشکل چی بود؟؟؟؟؟؟؟؟؟




<httpHandlers>
<add verb="*" path="*" type="Acme.SimpleHandlerVB" />
</httpHandlers>




البته من توی 2003 امتحان نکردم !!