|
The below error is coming when I load my .net page
Could not load file or assembly 'Microsoft.ReportViewer.WinForms' or one of its dependencies. Access is denied
We've removed the assembly reference for ReportViewer from web.config file.
We've checked there is no files in the name of "Microsoft.ReportViewer.XXXX.dll" in that my web server.
If anybody have an idea to solve this issue, pls share with us..
Thanks & Regards,
Rishi
WinCrs
|
|
|
|
|
Apperrently your application DOES require the dll, and since you did not provide it, the exception occurs.
|
|
|
|
|
Can u give the list of dll files for "Report Viewer"?. Is it available for download?..
Rishi
WinCrs
|
|
|
|
|
Add the one u removed because it requires that dll...
Regards,
Tash
|
|
|
|
|
WinCrs wrote: 'Microsoft.ReportViewer.WinForms'
is for windows applications. For web apps: 'Microsoft.ReportViewer.WebForms'
|
|
|
|
|
You should be using WebForms not WinForms for an asp.net web app.
<edit>didn't mean to post twice - connection error on my end
|
|
|
|
|
Hi friends,
i am fine and hope u so...
I am having commom.js file which contains all the validations.... i like to call one of the function from ascx page while i am clicking the button in ascx page....for validation....
i have tried with Page.RegisterClientScriptBlock,but i couldn;t..can anyone explain the way to do it??
thanks in advance...
sarala.s
|
|
|
|
|
When you add a user control to a aspx page the client id of the normal ASP.NET controls that you have used in the user control are different from the normal ones. Your javascript function need to find the control by its new control name and then validate it.
You can do it by either passing the control's client id to the javascript when you register the javascript call, or view the source to get the client id and then hard code it in the javascript function.
The first method is better and allows you to use the same validation function across all pages with multiple instances of the user control.
|
|
|
|
|
Hi guys.. I have a web application and in one of my aspx page i have a button to synchronise the users(user details) from the Active directory to my database table.. since the active directory has almost 4900 users the synchronisation process takes around 3hours now here comes the issue, on clicking the synchronise button the process goes on fine no issues wit it but the page with the status bar running remains idle only for about an hour or more (with the status bar showing half completed) after which the page shows "This page cannot be displayed" but the process of synchronisation goes on perfectly.. i dont want the page to display this way because after the synchronisation is over i have designed an alert box which displays "Synchronisation done successfully" but this alert box doesnt get displayed because the page is showing "Page cannot be displayed" before the end of Synchronisation process.. but on debugging, the code behind runs perfectly calling all methods and finally calling my alert box also.. but the alert box doesnt get displayed on the page except for "page cannot be displayed"... hope u guys can figure out what i really meant.. i really wanna solve this issue.. please be free to ask me if ur not clear with my question...
Ur help and advice is really appreciated...
Thanx in advance...
Tash
|
|
|
|
|
If the browser establishes a connection to a web server and the request takes more then the HTTP keep alive time of browser or the web server in that case you will get this error.
Ideally for this type of operation web applications are not preferred; it should be done through a windows service or some other background service.
But still if you want to implement this using a webapplication then you can run a background thread to do this synchronization and refresh your page let say every 30 seconds using javascript to check the progress, once the synchronization is done you can stop the refresh and show your message to the user.
WWW, WCF, WWF, WPF, WFC .... WTF
modified on Tuesday, March 30, 2010 2:01 AM
|
|
|
|
|
Thanx for ur reply.. Do u have any samples or tutorials.. mean while i will try google...
Thanx in advance...
Tash
|
|
|
|
|
|
Looks like a request timeout issue... Read this of how to increase it in Web.Config:
httpRuntime Element (ASP.NET Settings Schema)[^]
Though since you say, the syncronization finishes in the background... just want to confirm that is that another thread/process in the background that continues?
|
|
|
|
|
I meant to say that even if the display shows that "The page cannot be displayed" the process of synchronisation goes on perfectly on the background... The synchronisation takes place by referring to a DLL which does the process...
|
|
|
|
|
As already been suggested, such synchronization things should be done using a service or so.
For now, it looks like its response timeout issue issue only. While you debug, probably it continously slides it so you might not get it. Try to increase the response time... but thats not advisable in general. Refer the link i provided you, it would help you.
|
|
|
|
|
On googling out i came to know that in web.config file we have to add the following tag:
<system.web>
<httpRuntime executionTimeout="5"/>
I set it 5 which means 5 seconds but after 5 seconds the synchronisation process doesnt get time out which means the executiontimeout tag is not responsible for my problem...
Im confused... plz advise...
Thanx in advance..
Tash
|
|
|
|
|
hello all,
i have made a project.In one page, After page is postback, GridView "grd1" bound with some values.
After another postback,it lost its data.
I have used EnableViewState="true" in gridview control but still it doesn't work.
could u help me ?
|
|
|
|
|
Bind your gridview on every postback
|
|
|
|
|
I think if EnableViewState="true" for the Grid and Page then its not required to bind the grid in every postback.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
I have already done that. But still problem occurs.......
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
BindQues();
}
}
#region Methods
public void BindQues()
{
try
{
if (Session["BindData"] == null)
{
ds = new DataSet();
ds = objGet.GetData(Request["JT"].ToString());
litMsg.Text = "Online Test";
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
Session["BindData"] = ds;
}
else
{
gvQA.Visible = false;
}
}
}
else
{
ds =(DataSet)Session["BindData"];
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
|
|
|
|
|
1- Check that the EnableViewState property is not false for the entire page.
2- EnableViewState is not set as false in the web.config file.
3- You are not explicitly setting the gridview Datasoure as null in your postback code.
WWW, WCF, WWF, WPF, WFC .... WTF
|
|
|
|
|
I have checked all three points you have sent.But still it doesn't work
|
|
|
|
|
Can you please show us the code ?
Cheers !
Abhijit
Codeproject MVP
|
|
|
|
|
I'm sending you the code.In this, when we refresh the page, "gvQA.Rows.Count" shows 0 rows.
Here's code:
protected void Page_Load(object sender, EventArgs e)
{
if (Page.IsPostBack == false)
{
gvQA.DataSource = null;
gvQA.DataBind();
BindQues();
}
}
#region Methods
public void BindQues()
{
try
{
if (Session["BindData"] == null)
{
ds = new DataSet();
ds = objGet.GetData(Request["JT"].ToString());
litMsg.Text = "Online Test";
if (ds != null)
{
if (ds.Tables[0].Rows.Count > 0)
{
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
Session["BindData"] = ds;
}
else
{
gvQA.Visible = false;
}
}
}
else
{
ds =(DataSet)Session["BindData"];
gvQA.Visible = true;
gvQA.DataSource = ds;
gvQA.DataBind();
}
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
|
|
|
|
|
Hi..
I am working on a web application and about to complete the project.
Now I am planning to execute error handling and logging errors to my sql server database.
I am using framework 3.5.
could you suggest me what could be the best approach to execute error handling.
or you can suggest me the best link available.
thanks,
By:
Hemant Thaker
|
|
|
|