CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting
3 Months Free and Free Setup - ASP.NET Web Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.personal_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 2/18/2007 8:37:51 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 4 Views: 52 Favorited: 0 Favorite
5 Items, 1 Pages 1 |< << Go >> >|
Alhakimi
Asp.Net User
add photo error2/18/2007 8:37:51 PM

0

hi all ;

i am using jermey PSW , and  I am facing this error whenever i try to upload new picture to my website and its working fine in my local machine but not on the remote server ? 

is it related to the permission of the albums folder or some thing else .  

so i tried to change the albumid into the photoid this error stoped coming and "no photo"  picture comes inside the album .

this is the error message  

Procedure or Function 'RemovePhoto' expects parameter '@PhotoID', which was not supplied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Procedure or Function 'RemovePhoto' expects parameter '@PhotoID', which was not supplied.

Source Error:

Line 221:                    command.Parameters.Add(New SqlParameter("@AlbumID", AlbumID))
Line 222: connection.Open()
Line 223: command.ExecuteNonQuery()
Line 224: End Using
Line 225: End Using


 Thank you

Rashed 

wlogarbo
Asp.Net User
Re: add photo error2/22/2007 9:55:37 PM

0

Hello Rashed,

It looks like you are trying to pass in the albumid instead of the photoid.  Try changing this and it should work.  I stumbled across this problem by accident.  I didn't have the correct permissions to the folder I was writing to, so the app threw an exception and went to the catch block.  And in doing so, I found I was trying to pass in the wrong parameter when it was trying to remove the photo.

Hope this helps.

 

Wayne

jwadsworth
Asp.Net User
Re: add photo error2/23/2007 2:29:04 AM

0

Alhakimi:

hi all ;

i am using jermey PSW , and  I am facing this error whenever i try to upload new picture to my website and its working fine in my local machine but not on the remote server ? 

is it related to the permission of the albums folder or some thing else .  

so i tried to change the albumid into the photoid this error stoped coming and "no photo"  picture comes inside the album .

this is the error message  

Procedure or Function 'RemovePhoto' expects parameter '@PhotoID', which was not supplied.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Procedure or Function 'RemovePhoto' expects parameter '@PhotoID', which was not supplied.

Source Error:

Line 221:                    command.Parameters.Add(New SqlParameter("@AlbumID", AlbumID))
Line 222: connection.Open()
Line 223: command.ExecuteNonQuery()
Line 224: End Using
Line 225: End Using


 Thank you

Rashed 

Rashed,

The error you're receiving is actually a bug in my kit. That error occurs when:

  • you try to import a photo from the Upload folder to an album folder
  • A reference to the photo in the album is created in the database
  • Then the application attempts to copy the photo from the Upload folder to the chosen Album folder
  • The Network Services account doesn't have sufficient rights to copy the photos from the Upload folder to the Album folder you've chosen.
  • Because it fails to copy, the RemovePhoto procedure is called to remove the reference in the database to the photo since it didn't get copied correctly.
  • The error occurs because I have a bug in that procedure.

So, the issue is insufficient rights on the Albums folder.

 


Jeremy

Extended Personal Site Starter kit
Alhakimi
Asp.Net User
Re: add photo error2/23/2007 5:15:42 PM

0

Cool man thanx alot for ur help u r so greet ...

It helps to understand the error i contacted the webhosting company and they made the right recuired and its working fine now

thanx

jwadsworth
Asp.Net User
Re: add photo error2/23/2007 5:27:19 PM

0

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Dynamics: Numerical Explorations Authors: Helena Engelina Nusse, James A. Yorke, Brian R. Hunt, Eric John Kostelich, Pages: 608, Published: 1998
Building Flickr Applications with PHP Authors: Rob Kunkle, Andrew Morton, Pages: 194, Published: 2006
Beginning SharePoint Administration: Windows SharePoint Services and SharePoint Portal Server Authors: Göran Husman, Pages: 522, Published: 2006
Ruby on Rails: Up and Running Authors: Bruce Tate, Curt Hibbs, Pages: 167, Published: 2006
Office X for Macintosh: The Missing Manual Authors: Nan Barber, Tonya Engst, David Reynolds, Safari Tech Books Online, Pages: 714, Published: 2002
Web Database Development Step by Step: step by step Authors: Jim Buyens, Pages: 490, Published: 2000
Flickr Mashups Authors: David Wilkinson, Pages: 419, Published: 2007
The Art of Digital Video Authors: John Watkinson, Pages: 774, Published: 2000
Broadcast Engineer's Reference Book Authors: Edwin Paul J. Tozer, Pages: 1034, Published: 2004

Web:
Invalid Picture error when adding icon to form in VB6 : Visual Basic 6 I am trying to add an icon to a form in VB6 and I keep getting an Invalid Picture error. The file is an icon file (.ico extension).
add photo error - ASP.NET Forums add photo error. Last post 05-06-2008 2:38 PM by labrador_007. 5 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
Panzers In France, January 2008 Photo Error » Armchair General Photo Credit: ULLSTEIN BILD/THE GRANGER COLLECTION, N.Y.. Help Armchair General by bookmarking to Add 'Panzers In France, January 2008 Photo Error' to ...
Flickr: The Help Forum: [fixed] Organize Photos Error im also getting javascript errors when i try to add photos to my groups on IE and firefox along with the organizr error Posted 40 months ago. ( permalink ) ...
Microsoft Expression Expression Web Error Message while attempting ... Error Message while attempting to add picture. Hi Sabean, To put it simply, browsers don't support very many image types. All browsers will support JPG/JPEG ...
Add Photo's from ZIP File - Error > Support > Biz Modules Solutions Hi,I'm trying to add a zip file of photo's using the "Add Photo" link ad i'm getting an error. Here are the steps;1 - Select an album from ...
"add photos" via URL causes fatal error | Gallery ******Adding photoname.jpg*****. Fatal error: Call to a member function on a non -object in /home/pitcher/www/www/public/photos/util.php on ...
Error in adding profile photo - Photos, Videos and Feeds | Google ... when i click on add photo and select browse button and select the photo ..it says please wait ... Subject: Re: Error in adding profile photo ...
Windows Photo Gallery - Adding Folder Error » senab Mar 12, 2008 ... After starting to get to grips with Windows Photo Gallery since installing Vista , I've come across an error which is really frustrating.
"Fatal Error" when "Batch Adding" photos Oct 26, 2008 ... "Fatal Error" when "Batch Adding" photos. ... Author, Topic: "Fatal Error" when "Batch Adding" photos (Read 13 times) ...

Videos:
CNN reporting error on fatal Clinton motorcade accident Excerpt of CNN's erred report on the fatal Clinton motorcade accident in Dallas on February 22. The reporter says, "...the death of a motocycle polic...
Naruto Online Chat 11 Naruto Online Chats Season-3 Episode-1 Well here it is folks finally after all this time Noc #11 this season is very promising and also error spotin...
Igor Roman - Logging For Fun And Proffit Perl Programming Talks at YAPC::Braga When debugging a problem in an application, people generally resort to scattered print's throughout the code. ...
LabVIEW Mastery Tip Jar Video Blog - March 13, 2008 In keeping with the theme from last week, I thought I'd add another confession to the pile. This time, I'm referring to using the OpenG Library. Than...
Neji:Mugen Move your body Credit to Inari Hatake for the Picture Sorry about the need to add more pictures stupid video error when I was trying to do something eles
1939 New York World's Fair - Part 2 - A Home Movie Spectacular Part 2 of my Grandfather's historic home movie, the 1939 New York World's Fair. We begin with a moment of relaxation in the Gardens on Parade (the b...
Poledancefan's First Invert Attempt More than a few of the polers have left comments asking me when I would try an invert. I wont lie: the prospect of inverting fills me with fear and d...
Extra Heart Container in Majora's Mask! This is probably one of the best glitches we will ever find in a Gamecube game. To do this: Preliminary steps: Give your Gamecube a nice, long rest....
Learn Visual Basics Tutorial Project3 Part3 Screen Blocker Ok the next thing we want to do is make an escape button,,, this will close down our program in case something goes wrong so we don't have to ctr alt...
Distributed continuous quality assurance Google London Test Automation Conference (LTAC) Google Tech Talks September 8th, 2006 Presenter: Adam Porter












theme not applied on "production server"

caption in albums

problems uploading personal website starter kit to remote server

personal starter kit with sql 2005 for developer

which provider do you use to succefully publish the personal web kit?

could not load type 'system.web.security.accessroleprovider'.?????

add user information to a nother table???

error: timeout expired. the timeout period elapsed prior to completion of the operation or the server is not responding.

setfocus to username in control of createuserwizard

asp.netwebadminfiles' application:how can i fix this problem in setup the smtp

default make this album public checked

personal starter kit simple error but need help

show off your personal site

cannot login from host

problem running aspnet_regsql

can't create account with sql2000

starter kit on vwdhosting.net, default admin password

navigation menu

c# guestbook

cannot start website after deploying

.vsi-files

adding another page to the sitemap

iis5 and sql express

the moving problem of control position.

problem using the extending the personal web site starter kit article

sidebar problem

make the "download photo" button on details.aspx to dl the photo instead of redirecting to download.aspx and having to 'right-click'

conversion failed when converting from a character string to uniqueidentifier

uploading files - size exceeding 4 mb in asp.net 2.0

error on extended version of psk v2.8 when logging in as administrator role

   
  Privacy | Contact Us
All Times Are GMT