Hey all,
I just deployed my site in iis and was testing it, while performing the insert operation I'm getting the following error
Failed to update database because the database is read-only.
what could i possibly do to overcome it????
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
hariomPosted Aug 30, 2010, 8:34 AM
first u have to make virtual dirctory for ur website then chek it on local
then u have to deploy the website and put proper connection string path.
Amit ChoudharyPosted Mar 17, 2010, 1:16 AM
my email id: [email protected]
RujutaPosted Mar 16, 2010, 5:12 AM
any other ideas????
Amit ChoudharyPosted Mar 12, 2010, 4:34 AM
sorry, it's because of site have changes it its structure.. you can found the article here:
http://www.c-sharpcorner.com/UploadFile/vendettamit/JQuerymessageboxes12012009234120PM/JQuerymessageboxes.aspx
RujutaPosted Mar 12, 2010, 12:59 AM
and your link isn't working....
Amit ChoudharyPosted Mar 11, 2010, 8:10 AM
well i don't wat's going on with your Sql Server 2008? what are new policies associated while creating and using new database in SS2008.
but i can solve your message boxes problem. the message box you are using are only used for development purpose
not for hosting purpose. Cause your message box are coming from server side they will appear only at server when you host the site on IIS server at another location.
you have to use client side message box. you can use javascript alert message box for messages.
RegisterClientScriptBlock("myAlert", "");
like this. But this is not much eye catching so you can user jquery message box. that is used for client side message box.
Here is my article on Jquery message box:
http://www.c-sharpcorner.com/UploadFile/vendettamit/JQuerymessageboxes12012009234120PM/JQuerymessageboxes.aspx?ArticleID=d86af8af-9cf3-42ed-af68-7de95cee5d85
Please mark as answer this post i know your half problem has been solved.
RujutaPosted Mar 11, 2010, 4:23 AM
But now I have another problem
I have a messagebox which works fine in the development environment but won't work once deployed to iis. I'm using VS2008(again an express version!).
Don't know how to get the messagebox working. Any Ideas???
Amit ChoudharyPosted Mar 9, 2010, 4:31 AM
Please give details about your database. Is it a Database file or Database connection?? and also paste your connection string here..
so that i can have more idea regarding problem.