ASP.Net & MS Project 2000 COM

B

Bradford Ray

Hi,

I'm having a frustrating time - we have just moved servers and now the MS
Project application called in ASP.Net times out when calling .SaveAs(). I am
impersonating an administrator user before opening the app, and I have
logged in as that user and run Project, and saved a project. On our other
server everything worked ok.

I've tried adding permissions to the temp directory, and to the directory I
am saving to, for the IUSR_* account, NETWORK SERVICE (because the w3wp.exe
service runs under that user). Write permission is enabled on that folder in
IIS too. As I said, the user running Project is in the Administrators group.

Am I barking up the wrong tree? Comparing the configurations of the 2
machines, I can't really see any differences.

Please help me with what must be a stupid oversight on my part.........

Thanks you,
Brad.
 
J

Jake Ropar

Brad,

The problem might not be with the write permissions, but with the .SaveAs
command. Project was designed to be used with an interactive user, so if you
do a save as and the file already exists, it will throw a user prompt to
overwrite and the application will hang or fail. Make sure you check if the
file already exists before save:

If File.Exists(sFilePath & sFileName) Then
File.Delete(sFilePath & sFileName)
End If
oMSApp.FileSaveAs(sFilePath & sFileName,PjFileFormat.pjMPP)

Its worth a shot.....

Jake
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top