Urgent Help: Resource Gallery Upload Server error
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > Urgent Help: Resource Gallery Upload Server error




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Urgent Help: Resource Gallery Upload Server error  
MSH


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-15-05 10:56 PM

Hello everybody,

I am using the PAPI to upload an image to a resource gallery in MCMS 2002. I
have successfully authenticated the user and changed the mode to update. Whe
n
I try to perform the upload I get the following error : "Server error.
Contact System Administrator". The error is of type
"System.Runtime.InteropServices".

Below is the code I am using:

Dim context As CmsApplicationContext = New CmsApplicationContext
context.AuthenticateAsUser("someusername", "somepassword",
PublishingMode.Update)
Dim gallery As ResourceGallery =
CType(context.Searches.GetByGuid("someguid"), ResourceGallery)
If gallery.CanCreateResources Then
gallery.CreateResource("C:\SomeFile.gif") //Crashes here: Server error.
End If
context.CommitAll()

I would appreciate any help as this is very urgent.

Thanks in advance

Regards





[ Post a follow-up to this message ]



    Re: Urgent Help: Resource Gallery Upload Server error  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-15-05 10:56 PM

Hi,

this usually happens if the server is not able to successfully upload the
item.
Common reasons:

- the file has 0 bytes in size
- the file permissions do not allow MCMS to upload the item
- other IO problems.

Please use filemon from www.sysinternals.com to monitor the file access if
you are not able to isolate the reason.

Cheers,
Stefan

--
This posting is provided "AS IS" with no warranties, and confers no rights

New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------


"MSH" <MSH@discussions.microsoft.com> wrote in message
news:1F38A0F0-7EDA-4AAB-96C9-289878A1D96E@microsoft.com...
> Hello everybody,
>
> I am using the PAPI to upload an image to a resource gallery in MCMS 2002.
> I
> have successfully authenticated the user and changed the mode to update.
> When
> I try to perform the upload I get the following error : "Server error.
> Contact System Administrator". The error is of type
> "System.Runtime.InteropServices".
>
> Below is the code I am using:
>
> Dim context As CmsApplicationContext = New CmsApplicationContext
> context.AuthenticateAsUser("someusername", "somepassword",
> PublishingMode.Update)
> Dim gallery As ResourceGallery =
> CType(context.Searches.GetByGuid("someguid"), ResourceGallery)
> If gallery.CanCreateResources Then
>      gallery.CreateResource("C:\SomeFile.gif") //Crashes here: Server
> error.
> End If
> context.CommitAll()
>
> I would appreciate any help as this is very urgent.
>
> Thanks in advance
>
> Regards







[ Post a follow-up to this message ]



    Re: Urgent Help: Resource Gallery Upload Server error  
MSH


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
11-16-05 07:48 AM

Thanks Stefan for your immediate help.
What you suggested solved the problem.

For other users who might face the problem, the Filemon utility revealed
that the mcms system account did not have permissions to access the image
file i was trying to upload.

Regards,

"Stefan [MSFT]" wrote:

> Hi,
>
> this usually happens if the server is not able to successfully upload the
> item.
> Common reasons:
>
> - the file has 0 bytes in size
> - the file permissions do not allow MCMS to upload the item
> - other IO problems.
>
> Please use filemon from www.sysinternals.com to monitor the file access if
> you are not able to isolate the reason.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44[/url...nyurl.com/8ugwj
> ----------------------
>
>
> "MSH" <MSH@discussions.microsoft.com> wrote in message
> news:1F38A0F0-7EDA-4AAB-96C9-289878A1D96E@microsoft.com... 
>
>
>





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:23 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register