|
|
Hi,
I have a dll which is build from VB6 program.
I have registered on my computer using regsvr32 command and working fine with my asp.net coding.
To run on the webserver (to run on internet) i have registered that dll from control panel, and its status showing "Registered" on control panel. but on running the code on a button click it showing some error (as error message appeared when dll was not registered on the local machine).
What should i have to do to run properly on the webserver.
Error is:
Server Error in '/' Application.
Retrieving the COM class factory for component with CLSID {00D7D7AC-1414-4938-A1DC-807738D0823A} failed due to the following error: 80070005.
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.
Please help me..
Thank you.
Dipak
|
|
|
|
|
Hi frns,
I have some labels, textboxes and buttons in my forms. The problem that i am facing is that whenever i click on the buttons, my label font sizes get increased and textbox size get decreased. I have used skinfile for labels, textboxes and buttons. Can anyone help me please......
scarface
|
|
|
|
|
hi,
I am using a link button as "Advance Search". When I click on this link button it show as Panel window for Advance Search.
but when I right click on a link and click on "Open in new window" it gives an error......
Page can not be displayed.....
Does anybody have solution for this?
|
|
|
|
|
Did you set a breakpoint to see what happens when you do the right click ? Does the code to generate the page get run ? Is this a general limitation of the link button control ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
sir,
I have not written any code on On click event of link button I have set properties for Panel as follows
AutoCollapse: False;
AutoExpand: false;
CollapseControlId : lnl_Advance(Link Button);
Collapsed : true;
scrollContents: false;
suppressPostback: true;
how should I go for the solution?????
modified on Friday, April 17, 2009 8:20 AM
|
|
|
|
|
LinkButton is an ASP.Net Server Control that generates an html anchor tag ( <a></a> ) with a JavaScript similiar to "javascript:__doPostBack('','')" in href attribute. So, if you try to "Open in new window", you will obviously get an error because you are trying to open an JavaScript command in a new window.
|
|
|
|
|
Hi,
In my website i have a report where i have implemented try-catch
try
{
...
...
}
catch(Exception)
{
return;
}
but even on appling try-catch on every event my report sometimes gives error like "INPUT STRING IS NOT IN CORRECT FORMAT".
I have tried my best so that data type mismatch should not occur. This problem is significant with this report only.
Help me.
|
|
|
|
|
I guess the exception is catched within the report, so that your try-catch-statement will not be executed.
|
|
|
|
|
I cant understand what you mean by this.
If i am handling the exception before any function or data conversion executes then how this error can come.
|
|
|
|
|
Is an exception thrown? If not, how is the error displayed, within the report?
|
|
|
|
|
The error appears like this -->
Server Error in '/' Application.
--------------------------------------------------------------------------------
Input string was not in a correct format.
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.FormatException: Input string was not in a correct format.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +7469351
System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +119
System.Web.UI.WebControls.ImageButton.LoadPostData(String postDataKey, NameValueCollection postCollection) +163
System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +14
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +693
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
|
|
|
|
|
What was the input string? Is there any special character on that string ?
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi Abhijit,
Even on entering special charatcers , report is working fine. I cant fnd this error on local and only once on server but my clients have reported it many times. I am not undertaking any data conversions. I have text boxes for dates and i have tested it several times they are working fine. Even I cant understand why this error is coming as on local and even on server i cant find this error except only 1 time with all types of input.
|
|
|
|
|
devesh sinha wrote: I cant fnd this error on local and only once on server but my clients have reported it many times.
Then why you are not asking client for data and tested with those data. I think there may be some script problem.
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
On this page i have only two textboxes for input that are used for entering dates. And i have tested it with every type of incorrect input. It is not giving any error.
|
|
|
|
|
Did you tried with this < >
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Have you tried steppg through the code ?
Christian Graus
Driven to the arms of OSX by Vista.
"I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )
|
|
|
|
|
What is the retuen type of your function ?? and if exception occurs then what are you returning ??
If you dont know the meaning of what I am asking you please post your function here and the line from where you have called the function !!
Thanks,
Arindam D Tewary
|
|
|
|
|
Hi,
Here is my code.
<code>
public partial class SCSFMS_Pages_VisitLog : System.Web.UI.Page
{
Common cmn = new Common();
protected void Page_Load(object sender, System.EventArgs e)
{
if (!IsPostBack)
{
SessionExpiresCheckOnButton();
try
{
hiUid.Text = Session["Usr_Id"].ToString();
hidUtype.Text = Session["UserType"].ToString();
string curdt = System.DateTime.Now.AddHours(13).ToString("dd/MM/yyyy");
string entrydt = cmn.DDMMYYtoMMDDYY(curdt);
txtDate.Text = curdt;
txtVisitDtto.Text = curdt;
if (hidUtype.Text == "A")
{
cmn.fillDDL(ddlUser, "select u.Usr_Id,u.UName from users u, userdetail ud where u.status ='Active' and ud.designationid in (2,4,12) and ud.id=u.usr_id order by UName", "Usr_Id", "UName");
}
string desigid = cmn.nDesgID(hiUid.Text).ToString();
if (hidUtype.Text == "U")
{
if (desigid == "6")
{
cmn.fillDDL(ddlUser, "select u.Usr_Id,u.UName from users u, userdetail ud where u.status ='Active' and ud.id=u.usr_id and (ud.id ="+hiUid.Text+" or ud.admintoreport="+hiUid.Text+") order by UName", "Usr_Id", "UName");
}
else
{
cmn.fillDDL(ddlUser, "select u.Usr_Id,u.UName from users u, userdetail ud where u.status ='Active' and ud.id=u.usr_id and (ud.id =" + hiUid.Text + ") order by UName", "Usr_Id", "UName");
ddlUser.SelectedIndex= 1;
ddlUser.UpdateAfterCallBack = true;
}
}
}
catch (Exception ex)
{
return;
}
}
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
try
{
fillgrid();
}
catch (Exception ex)
{
return;
}
}
public void fillgrid()
{
try
{
string usrsearch = "";
string sqlprt = "";
string desigid = cmn.nDesgID(hiUid.Text).ToString();
if (ddlUser.SelectedValue != "0")
{
usrsearch = ddlUser.SelectedValue.ToString();
sqlprt = "and ud.usr_id = "+usrsearch+" ";
}
lblResult.Visible = false;
lblResult.UpdateAfterCallBack = true;
string myentrydt = cmn.DDMMYYtoMMDDYY(txtDate.Text.ToString());
string mydtto = cmn.DDMMYYtoMMDDYY(txtVisitDtto.Text.ToString());
string sql = "";
if (hidUtype.Text == "A")
{
sql = " select ud.uname,amt= case when sum(od.prod_amt) is null then '0' else sum(od.prod_amt)end ,totalcall=count(*),visitdate=convert(varchar(12), ov.visit_date ,6) from tblSCSFMS_OrderVisit_Master ov " +
" left join users ud on ud.usr_id = ov.usr_id " +
" left join tblSCSFMS_Order_Details od on od.visit_id =ov.visit_id " +
" where CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) >= '" + myentrydt + "' and CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) <= '" + mydtto + "' " +
" " +(sqlprt)+ " group by ud.uname , ov.visit_date, ov.usr_id ";
}
else
{
if (desigid == "6" && ddlUser.SelectedValue != "0")
{
sql = " select ud.uname,amt= case when sum(od.prod_amt) is null then '0' else sum(od.prod_amt)end ,totalcall=count(*),visitdate=convert(varchar(12), ov.visit_date ,6) from tblSCSFMS_OrderVisit_Master ov " +
" left join users ud on ud.usr_id = ov.usr_id " +
" left join tblSCSFMS_Order_Details od on od.visit_id =ov.visit_id " +
" where CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) >= '" + myentrydt + "' and CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) <= '" + mydtto + "' " +
" " + (sqlprt) + " group by ud.uname , ov.visit_date, ov.usr_id ";
}
else
{
sql = " select ud.uname,amt= case when sum(od.prod_amt) is null then '0' else sum(od.prod_amt)end ,totalcall=count(*),visitdate=convert(varchar(12), ov.visit_date ,6) from tblSCSFMS_OrderVisit_Master ov " +
" left join users ud on ud.usr_id = ov.usr_id " +
" left join userdetail udtl on udtl.id = ov.usr_id " +
" left join tblSCSFMS_Order_Details od on od.visit_id =ov.visit_id " +
" where CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) >= '" + myentrydt + "' and CAST(FLOOR(CAST(ov.visit_date AS float)) AS datetime) <= '" + mydtto + "' and (ud.usr_id = " + hiUid.Text.Trim() + " or udtl.admintoreport = " + hiUid.Text.Trim() + ")" +
" group by ud.uname , ov.visit_date, ov.usr_id";
}
}
cmn.fillGridView_By_USP(gdS_AddUser, sql);
if (!gdS_AddUser.Rows.Count.Equals(0))
{
// lblResult.Text = "Search Result";
lblResult.Visible = false;
lblResult.UpdateAfterCallBack = true;
}
else
{
lblResult.Text = "No Data found for the above search criteria.";
lblResult.Visible = true;
lblResult.UpdateAfterCallBack = true;
}
}
catch (Exception ex)
{
return;
}
}
protected void gdS_AddUser_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
gdS_AddUser.PageIndex = e.NewPageIndex;
fillgrid();
}
private void SessionExpiresCheckOnButton()
{
try
{
if (Session["Usr_Id"].ToString() == "" || Session["Usr_Id"].ToString() == null)
{
Session["ExpireMsg"] = "true";
Response.Redirect("../../index.aspx?urlvalue1=SCSFMS");
return;
}
}
catch (Exception)
{
Session["ExpireMsg"] = "true";
Response.Redirect("../../index.aspx?urlvalue1=SCSFMS");
return;
}
}
The error it is giving is "Input String is not in Correct Format." to some of my clients. But i havn't received this error yet even on thorough testing of the page.
|
|
|
|
|
try to catch me if you can
some one is eating the exception. If the exception is not re-thrown then there is nothing you can do.
Yusuf
Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]
|
|
|
|
|
Hiya everybody! I need some help trying to find out why is my WS not working as I want it to. I'm newbie when it comes to WebServices.
I got one that helps me get a DataSet so I can work with disconnected data.
public DataSet WSfnGetInfo(string strQuery, string strName, string strClientUser, string strClientPassword)
{
strUser = strClientUser;
strPassword = strClientPassword;
fnCreateCS();
SqlDataAdapter dAdapter = new SqlDataAdapter(strQuery, connString );
DataSet dsInfo = new DataSet();
dAdapter.MissingSchemaAction = MissingSchemaAction.AddWithKey;
try
{
dAdapter.Fill(dsInfo, strName);
}
catch(SqlException ex)
{
System.Web.HttpContext.Current.Response.Write(ex.Message);
return null;
}
return dsInfo;
}
Then I got my client WinApp in which I use this code to show the dataset on datagridview.
myServ.Service myService = new myServ.Service();
try
{
dsMeals = myService.WSfnGetInfo("SELECT * FROM dbo.MEALS", "MEALS", f1ref.user, f1ref.password);
dataGridView1.DataSource = dsMeals;
dataGridView1.DataMember = "MEALS";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + " " + ex.HelpLink + " " + ex.Data);
}
I can't get to show the data in datset in gridview. I get an error that the "Respons/Answer is not correct XML code". I'm stuck there.
From what I've read, returning DataSet from a WS ain't the best practice due nature of XML WSs and that it is too much text.
Any help is appreciated.
I'm using this as a reference http://msdn.microsoft.com/en-us/library/s5xy331f(VS.80).aspx[^]
|
|
|
|
|
hi,
i am new to this code project.
now am developing multi users login page,
i need some code to develop.
kindly do the needfull.
Thanks in advance.
regards,
lakshmi
|
|
|
|
|
cemalakshmi wrote: i am new to this code project.
Welcome to CodeProject !
cemalakshmi wrote: now am developing multi users login page,
i need some code to develop.
kindly do the needfull.
Buy some beginners Book, start reading and try it yourself. If stuck, then ask here. you will get lots of help other wise not
You can Check Here
cheers,
Abhijit
CodeProject MVP
|
|
|
|
|
Hi All,
Do we have a inbuilt function in .Net or DotNetNuke to get the list of countries available. i need to fill it in a dropdown list and i need to avoid webservice which returns list of countries.
Thanks,
Maxy.
|
|
|
|