So when it makes http request, it should return some data from DW.
But i faced the problem just in the start of the creation.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. [NullReferenceException: Object reference not set to an instance of an object.] Dynamicweb.Admin.Global.Application_OnPreRequestHandlerExecute(Object sender, EventArgs e) +502 CustomModules.Global.Application_OnPreRequestHandlerExecute(Object sender, EventArgs e) in .......\Application - working\Global.asax.cs:62 System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
Any ideas why i am getting this one ?
My code is just simple testing file.
namespace CustomModules.CustomModules.CustomModuleName { /// <summary> /// Summary description for WebRequests /// </summary> public class WebRequests : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; context.Response.Write("groups"); } public bool IsReusable { get { return false; } } } }
Tried to change web.config to add http handlers and etc. Nothing helped.
Version Information: Microsoft .NET Framework Version: 2.0.50727.3625; ASP.NET Version:2.0.50727.3634
DW version : 19.2.8.0
IIS 6
Cant change framework version since solution and custom modules are with version 3.5
How this should be done and what could be the problem ?