Login  
Search All Forums
Dart Home | PowerWEB File Upload for ASP.NET | Custom Development Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
AuthorForum: PowerWEB File Upload for ASP.NET
Topic: Bypassing FileUpload Module
pwm762

From: Overland Park, KS USA
Posts: 4
Member Since: 01/12/10
posted January 12, 2010 3:14 PM

This has to be simple, although I have not found it yet...

If I would like to use the standard .NET file upload control in the same application where I use the Dart file upload control, can I bypass the Dart FileUploadModule for that page? I am getting a NullReferenceException when trying to upload.

----
[NullReferenceException: Object reference not set to an instance of an object.]

Dart.PowerWEB.FileUpload.FileUploadModule.context_BeginRequest(Object sender, EventArgs args) +1108

System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +80

System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 13, 2010 8:44 AM

Hi,
A standard upload control will not work on the same page as the PowerWEB Upload control.

If the controls are on different pages, they should both work, unless the page with the PowerWEB control redirects to the standard control page.

What are the reasons for using both controls?

Thanks,
-ken




------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

pwm762

From: Overland Park, KS USA
Posts: 4
Member Since: 01/12/10
posted January 13, 2010 11:02 AM

I cannot make both work in the same application as of yet. The reason we need them both to work is that the forums package we have implemented allows file uploads and does all their processing from the standard control.

What I have attempted to no avail:
Created a new Web.Config file in the forum sub-directory with the following.
  <system.web>
    <httpHandlers>
      <remove verb="*" path="Dart.PowerWEB.FileUpload.GetResource.aspx"/>
    </httpHandlers>
    <httpModules>
      <remove name="FileUploadModule" />
      <remove name="CallbackManager" />
    </httpModules>
  </system.web>
  <system.webServer>
    <handlers>
      <remove name="Dart.PowerWEB.FileUpload.GetResource.aspx_*"/>
    </handlers>
    <modules>
      <remove name="FileUploadModule" />
      <remove name="CallbackManager" />
    </modules>
  </system.webServer>
pwm762

From: Overland Park, KS USA
Posts: 4
Member Since: 01/12/10
posted January 13, 2010 3:48 PM

In our environment, the controls are on different pages, and they do not redirect to each other in any way.

Do you have an environment where the standard control works within an application where the PowerWEB control/modules are installed?
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted January 14, 2010 5:55 PM

Hi,
Yes, a very simple test app - two pages, each with a different Upload control.

I do not have any problems uploading with the standard control.

Do you also see the problem in this simple scenario?

-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

pwm762

From: Overland Park, KS USA
Posts: 4
Member Since: 01/12/10
posted April 7, 2010 11:57 AM

In a simple scenario it works only if I am debugging using the ASP.NET Development Server.
(http://localhost:####/app)

If IIS is hosting the app, it still does not work.
(http://server-name/app-alias)

Identical stack trace as the original post.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 12, 2010 5:42 PM

Hi,
Thanks, this has been reproduced as issue #5254.

For updates on the status of this issue, please contact Jamie Powell (jamie.powell@dart.com).

-ken

------
-Non-current subscribers must contact sales@dart.com to update subscription and receive continued support as needed.
------

Reply | PowerWEB File Upload for ASP.NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX