uploading new image to my club site causes failure  
Author Message
nigel.uk





PostPosted: ASMX Web Services and XML Serialization, uploading new image to my club site causes failure Top

whenevr I try to uplaod an image to an article on my club site, the whole site shuts down

event code 3005

an unhandled exception has occurred

event ID 4b5ea0cfad7844a9b67234c34404ca11

event sequence 23

event occurrence 2

event detail code 0

process id 4932

process name w3wp.exe

exception type invalidcastexception

exception message convrsion to string "" to type 'integer' is not valid

please help me correct this



.NET Development5  
 
 
ahmedilyas





PostPosted: ASMX Web Services and XML Serialization, uploading new image to my club site causes failure Top

please post the code. You are trying to convert string to integer at some point and its failing mainly probably because the input string does not contain all integer values and contains letters somewhere. Posting the code, and debugging it, would help

 
 
nigel.uk





PostPosted: ASMX Web Services and XML Serialization, uploading new image to my club site causes failure Top

this is what happens now:

App_Data
Copy file ASPNETDB.MDF from source to remote Web site.
Copy file aspnetdb_log.LDF from source to remote Web site.
Copy file Club.mdf from source to remote Web site.
Has error -- Unable to add 'App_Data/Club.mdf' to the Web. Unable to add file 'App_Data/Club.mdf'. The process cannot access the file because it is being used by another process.

Copy file Club_log.LDF from source to remote Web site.
Has error -- Unable to add 'App_Data/Club_log.LDF' to the Web. Unable to add file 'App_Data/Club_log.LDF'. The process cannot access the file because it is being used by another process.


 
 
Clemens Vasters - MSFT





PostPosted: ASMX Web Services and XML Serialization, uploading new image to my club site causes failure Top

This thread belongs into the forums at http://forums.asp.net

However .... To me it looks like you have two seperate problems at hand here, Nigel. The first is some exception in your application, the second is that you are trying to pave over your database file on the remote server while SQL Server is running and holding a lock on it.



 
 
nigel.uk





PostPosted: ASMX Web Services and XML Serialization, uploading new image to my club site causes failure Top

ok

 

Do you have any suggestions as to how to correct these errors

that would be most helpful -thanks

 

presumably the error would also account for no longer being able to log into the site when run on IIS while being able to log in when run in visual web developer express

 

i have tried unistalling and reinstalling both asp and IIS

 

can you tell me what permissions should be set for authentication and access control in IIS directory security - i.e. user name and authentication

 

i have tried "comptername"/iusr and also a user: aspnet and also "computername"/iwam

 

regards

Nigel