Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > "Invalid Function" reading files on Win2003 Server from IIS

Reply
Thread Tools

"Invalid Function" reading files on Win2003 Server from IIS

 
 
mtanq
Guest
Posts: n/a
 
      09-29-2006
My project is an ASP-based web page, with C# as the language of choice.

I have written a simple tree view that displays the structure of a file
system mounted as 'MVFS' (On my system, it's W:/). This is a clearcase file
system that is version-aware.

The code populates the tree as folders and files very much like Explorer and
when a user clicks on a node that refers to a file, it will send the file to
the user to open or save as any normal web page would do.

This all works fine on my local XP workstation. However, the problem I have
run into is when I copy the web project onto a Windows 2003 Server. I can
load the web page and the tree populates with no issue. Folder and file names
are as expected. However, when I click on a file node, and exception "Invalid
Function" is thrown.

Now, I have noticed that if I get on the server and open a file in Notepad,
and then go back to the Web Page and click the file node, it will be
available for download as expected.

I have tried various things such as running the DOS "type" commanding from
C# on the file as the link is clicked to make it available. However, no file
action from within the ASP code seems to be effective until some external
application does an operation on it.

Another test I have done is to write a simple C# File.Copy() function to
copy a file from W:/ to C:/temp in the ASP code. This function throws
"Invalid Function". Then, I used the same File.Copy() in a tiny C#
application (non-ASP) and it works fine. After running that tiny app, the ASP
will copy the file with no problem.

It seems to be isolated to IIS on Windows2003. I would very much like to
hear any ideas regarding what I can do to get around the "Invalid Function"
exception.

Thanks in advance for any time you spend considering this puzzle.

 
Reply With Quote
 
 
 
 
Mike Brind
Guest
Posts: n/a
 
      09-29-2006

mtanq wrote:
> My project is an ASP-based web page, with C# as the language of choice.
>


This newsgroup covers classic asp. Dotnet is a different technology
and has its own group. Try microsoft.public.dotnet.framework.aspnet.

--
Mike Brind

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Promote Win2003 R2 in infraestructure Win2003 SP1 =?Utf-8?B?SWdvciBSb2RyaWd1ZXM=?= MCSE 3 06-20-2007 03:50 AM
Win2003 IIS and webforms =?Utf-8?B?TWFyZWsgRw==?= ASP .Net 1 01-26-2006 09:06 AM
Thread was being aborted in win2003 server. Back ground thread reading MS access database, no redirects or transfers. Johanna ASP .Net 0 10-13-2004 01:32 PM
IIS 6.0 win2003, IIS users moe_rodrigue MCSE 1 04-01-2004 07:37 AM
Free win2003 server guide and free smtp server software! JP Mc Books MCSE 0 09-06-2003 01:18 AM



Advertisments