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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 8, 2010, 11:31 PM EST
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.
Rujuta133 reputationPosted Mar 10, 2010, 11:23 PM EST
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 ChoudharyRank #145 · 15.8K reputationPosted Mar 11, 2010, 3:10 AM EST
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.
Rujuta133 reputationPosted Mar 11, 2010, 7:59 PM EST
and your link isn't working....
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 11, 2010, 11:34 PM EST
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
Rujuta133 reputationPosted Mar 16, 2010, 1:12 AM EDT
any other ideas????
Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 16, 2010, 9:16 PM EDT
my email id: [email protected]
hariom26 reputationPosted Aug 30, 2010, 4:34 AM EDT
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.