|
|
Yes, As you already know. It's in-built in .Net 4.0, for .Net 3.5, yes you need to install.
|
|
|
|
|
i got the same error when i shifted my application to a win2008 server and was installing MSChart_VisualStudioAddOn.exe. Why this message 'The toolbox controls installer must be installed before running this installer..' is coming and what's the solution. pls help.
|
|
|
|
|
Hi Friends,
I have upload image to server. its stored both database(using conversion) and physical copy of image.
so which one is best for reduced space and security ?
Apart from this technique any new feature is there ?
Please share your valuable knowledge to all.
Yours,
Kan
-----------------------------------------------------------------
"Success is When Ur Signature Becomes An Autograph"
|
|
|
|
|
Check this[^]
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
what is best, saving images as BLOBS in db or as file on disk, depends on the situation, but I prefer to save it in db, since a)you get a clear connection between the image and data, b)makes things easier to backup,mirror and migrate c) makes it easier to search, sort, and so on, the images.
when it comes to reducing the image size when saving there is some steps you can take:
1) automatic convert the image to a lighter format (eksample: jpg or png) before saving them on the server
2) automatic resize them before saving them to the server
3) re-encode the images with poorer quality but better compression.
If you need to save the images as high quality, high res images in an heavy format like bmp or raw (maybe the spec specifies the quality and size of images or some thing), you could take a look at the System.IO.compression namespace or the zipsharp library.
|
|
|
|
|
can anybody provide me the software s which are being updated continuously(their new versions are being launched frequently)but their original documentation got outdated
|
|
|
|
|
The questionis incomprehensible.
Read the guidelines, stating something is urgent is rude, everyone here is a volunteer.
Also in the guidlines, asking for code / software, without really have a question like "How do start to write software x" or "I've tried to do x but I'm having a problem" will meet with a reply like mine, or something sarcastic.
|
|
|
|
|
Oh my goodness - I'll drop everything to help you.
So what you need is me to send you every piece of software currently out in the field and keep providing you with every update that happens for those applications when the documentation is outdated?
Q1. Would it help if I were to write an application to check all published documentation for the software against the current working version of said softyware and then create some update routine to send it to you?
Q2. Would you like me to come over and install all the updates for you so you don't have to do anything at all?
Q3. Would it be possible for you to get some spellchecking software to ensure that your posting is grammatically correct?
Q4. Do you have a boxing glove? If so, the next time you look in your mirror please hit yourself with it for being such an arse.
He took it all too far, but boy could he play guitar!
|
|
|
|
|
hi All,
I just wanted to know the following things if u can just help me.
I made a website in Visual Studio 2008 and used the database provided by the VS [I dont know which version is this].
That website runs successfully on the machine having visual studio[As in that i just attach my database through the GUI provided by VS].
Now I want to deploy that website on a LAN. I have the database in .ldf and .mdf format. But I dont know whether it is in sql 2005 or sql 2008[as i made it through Visual Studio GUI]
Now the system in which i have to deploy cannot have a licensed product. So i have to convert that database either to open source or an free version of sql server.
I chose to go for SQL Server express edition that is free. Now the prolem being whether I use SQL Server 2008 or 2005 as i dont know which database was provided by the VS.[when i made that databse]
But the problem being that on the system in which i have to deploy does not contain VS.
Supposing it provides SQL Server 2005 express edition I permormed the following test:-
Now i have installed .NET framework 3.5, MS SQL server 2005 Express Edition and the SQL Server management studio that is a GUI for handling d/b. Now when I attached that database[that i have, of which i dont have the version]. I can see the database and tbles and all the contents that was there in the d/b.[through that management studio GUI].
Now i have deployed my website on IIS also and when i browse my page i can see it on the browser but ....... I am not able to connect to the database tables as when i enter the login and password it comes to the same login page again without showing any error. Now, I cannot identify whether its due to the following reason:-
1> The database that i have is in SQL server 2008 express edition or something else.
2> I have to make some changes in the connectivity[in web.config or some other location]
NOTE: Also when i connected the d/b in management stuio it shows all the tables with dbo as a prefix.
for eg. suppose i had a table as User_Master than its showing as dbo.User_Master.
please guide me if u can. Waiting for ur reply.
modified on Wednesday, October 6, 2010 3:23 AM
|
|
|
|
|
Let me Answer your Questions
You wrote :
Now I want to deploy that website on a LAN. I have the database in .ldf and .mdf format. But I dont know whether it is in sql 2005 or sql 2008[as i made it through Visual Studio GUI]
The only way to Find out is to attach it on an SQL Instance,First try to attach it in an SQL 2005 instance, if its a SQL 2008 then it will give you an error that has something like
"bla bla bla does not belong to ...Family ...."
and if you are able to attach it then it means its 2005
You wrote :
Now the system in which i have to deploy cannot have a licensed product. So i have to convert that database either to open source or an free version of sql server.
The SQL Express is good for your requirement, i dont think you need to do some conversion, as long as you have SQL Express instance installed on your machine you can just attach your files
You wrote :
But the problem being that on the system in which i have to deploy does not contain VS.
You dont need visual Studio , you need to Install the SQL instance. That will have SQL Management studio to attach your Files
You wrote :
Now i have installed .NET framework 3.5, MS SQL server 2005 Express Edition and the SQL Server management studio that is a GUI for handling d/b. Now when I attached that database[that i have, of which i dont have the version]. I can see the database and tbles and all the contents that was there in the d/b.[through that management studio GUI].
if you could do this then its not a 2008 mdf files, you can still confirm by "Right click on your Database and go to properties and select the "Options" and check the Version from there.
You wrote :
Now i have deployed my website on IIS also and when i browse my page i can see it on the browser but ....... I am not able to connect to the database tables as when i enter the login and password it comes to the same login page again without showing any error. Now, I cannot identify whether its due to the following reason:-
How do you know that you cant connect , if you cant see the error ?
You wrote :
2> I have to make some changes in the connectivity[in web.config or some other location]
what is your Question Regarding this ?
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Hi vuyiswa,
Thanks for giving so much time i reading this and giving the reply.
You wrote :
Now i have deployed my website on IIS also and when i browse my page i can see it on the browser but ....... I am not able to connect to the database tables as when i enter the login and password it comes to the same login page again without showing any error. Now, I cannot identify whether its due to the following reason:-
How do you know that you cant connect , if you cant see the error ?
Because when i enter hte username and password that there in the database table User_Master[that has been converted to dbo.User_Master] , i cannot loog on to. Inspite it redirects me to the locgin page again.
Also I cannot debug the prog as i dont have VS 2008.
To check this whats happening , i tried one thing:-
On login page [in coding,aspx.cs page], i commented the line which checks whether the username and password is valid or not [ which fetches data from the database] and simply redirected to the Homepage.aspx. It works fine.
On one page [in coding,aspx.cs page], i commented the line which checks whether the session for userlogin is there or not[in login page if the user is authenticated i have saved his username in session and checked this session on everypage , if the session is not null then only user can see that page]. So now when i browse that page through IIS server the page is opening(ofcourse, it will) i enter all the data in the text fields. When i submit the button [which enters the data to the tables] it gives me that dirty yellow page. [as i said earlier i cannot debug the programme without VS or there is any way]
You wrote :
Now i have deployed my website on IIS also and when i browse my page i can see it on the browser but ....... I am not able to connect to the database tables as when i enter the login and password it comes to the same login page again without showing any error. Now, I cannot identify whether its due to the following reason:-
How do you know that you cant connect , if you cant see the error ?
Because if it connects then there is some problem related with database, and if there is some problem with database then i have redirected it to the Error.aspx page.
You wrote :
2> I have to make some changes in the connectivity[in web.config or some other location]
what is your Question Regarding this ?
As now i am not using the default D/B provided by the VS2008 and using SQL Server 2005 express edition, so are there any changes in the connectin strings or how to attach the database to the websie.[In visual studio we just attach the database through that wizrd and give the path to the connection string.]
Thanks
|
|
|
|
|
I don't think problem with db connections.... if u think so try to install Fx SDK and debug ur code using CLR Debugger or else write a single test page with complete diagnostic.
|
|
|
|
|
hi Murugesan,
thanks for ur response but can u just explain the points that i made in the previous quote.
also there are many Fx SDK versions available like Java win SDK....which to download and install and is it free? as for rules cannot install the licensed version.
What do you mean by
write a single test page with complete diagnostic.
Thanks.
|
|
|
|
|
.Net framework SDK, which is free and download it from SDK Link
write a single test page with complete diagnostic.
For isolating the problem write a server side page to connect database.
|
|
|
|
|
hi ,
how to connect to the database and how to provide the GUI as I said that i dont have VS.
Please cant u favour me just give me some hint for login only ...
also below please find my login coding...
login.aspx.cs
protected void btnLogin_Click(object sender, EventArgs e)<br />
{<br />
if (Session["Admin"] != null)<br />
{<br />
if (txtPassword.Text.ToUpper.Equals(Session["Admin"]))<br />
Response.Redirect("Homepage.aspx");<br />
}<br />
String except = null;<br />
<big>DataValidation dv = new DataValidation();</big> String pass = txtPassword.Text;<br />
<br />
String password = null;<br />
<br />
password = dv.loginIn(txtUserName.Text);<br />
<br />
if (password==null)<br />
{<br />
Session["SourceFile"] = Formname;<br />
Response.Redirect("Error.aspx");<br />
txtUserName.Text = "Exception";<br />
}<br />
<br />
else if (password.Equals(pass))<br />
{<br />
Session["User"] = txtUserName.Text;<br />
if (Session["User"].ToString().ToUpper().Equals("ADMIN"))<br />
Session["Admin"] = "ADMIN";<br />
Response.Redirect("Homepage.aspx");<br />
<br />
}<br />
<br />
else <br />
{<br />
lblCheck.Text="Invalid UserName or Password";<br />
}<br />
<br />
<br />
<br />
}
the DataValidation function[this is one .cs file i have maintained for data validation]
public String loginIn(String userName)<br />
{<br />
String queryBuilder;<br />
<br />
{<br />
DataBaseConnection ds = new DataBaseConnection();<br />
<br />
queryBuilder = "SELECT Password FROM User_Master WHERE UserName = @uname";<br />
<br />
String pass = ds.loginDataBase(userName, queryBuilder);<br />
<br />
return pass;<br />
}<br />
<br />
}
the DataBase connection function
SqlConnection getConnection()<br />
{<br />
SqlConnection cn = null; <br />
{<br />
cn = new SqlConnection(); <br />
cn.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();<br />
return cn; <br />
}<br />
}<br />
<br />
<br />
<br />
public String loginDataBase(String userName, String queryBuilder)<br />
{<br />
SqlConnection sqlcon = null;<br />
try<br />
{<br />
sqlcon = new SqlConnection();<br />
sqlcon.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();<br />
sqlcon.Open();<br />
<br />
SqlCommand cmd = new SqlCommand();<br />
<br />
cmd.CommandText = queryBuilder;<br />
cmd.CommandType = CommandType.Text;<br />
cmd.Connection = sqlcon;<br />
<br />
cmd.Parameters.AddWithValue("@uname", userName); <br />
<br />
SqlDataReader dr = cmd.ExecuteReader();<br />
if (dr.HasRows == true)<br />
{<br />
dr.Read();<br />
return dr[0].ToString();<br />
}<br />
else<br />
return null;<br />
<br />
}<br />
<br />
catch (Exception ex)<br />
{<br />
return null;<br />
}<br />
finally<br />
{<br />
sqlcon.Close();<br />
}<br />
}
|
|
|
|
|
Try to throw an exception and see the message... if ur not getting any exception then simply check the database table has rows or not.
catch (Exception ex)
{
throw;
}
|
|
|
|
|
hey u deleted your mail ID ,
i have to mail u that code ,
and i have used that exception, i am redirecting to Error.aspx if any error comes.
you once again give me ur mail id
thanks
|
|
|
|
|
|
Hi All,
I have a .net class library which makes call to a web service. I am trying to write unit tests (methods) for the methods of that class library. But the test methods are giving exceptions. Like the code is not ready or some thing like that. But when I call those methods from a asp.net web page all the methods are giving correct values. Means the class library is able to connect to the web service and executing it methods.
The exceptions that the test methods are saying is, "the proxy is not ready", I have added that web service by using "Add Web References". And one more thing is, I dont have "WSDL" utility in my machine so I coulnt create the proxy and I have added the web service using "Add Web References".
Can anybody help me in resolving the issue. Any help or any link or any advice is greatfull.
Thanks in advance.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
First, what you are doing isn't really unit testing, it is integration testing (as long as your architecture is good), but you can use unit tests to exercise this.
I actually don't recognise the actual error you give - is it the actual message? I'm assuming the error is with the proxy accessing the server.
First: Is your test config pointing at the server?
Second: Is your sevice running under the web server built into Visual Studio: http://stevennagy.spaces.live.com/blog/cns!B2EFDBF0964586B3!198.entry?sa=436582379[^] If so, when you run your unit tests the server isn't necessarily running - and this might cause your problem ().
As for the wsdl.exe - it should be installed alongside VS, it is part of the .Net Framework Tools[^]. That said, I've used a web reference in the past without any problems.
If you give the actual error text, you'll have more chance of getting an answer.
|
|
|
|
|
Hi,
I will explain what I am doing again
I have a class library called DataAccess, this clas library is accesing few web methods. I need to test the methods of the class library "DataAccess". If I remove the web servcie call from the "DataAccesss" class library then Unit tests are working fine. But When I keep the Web service call in the method and run the unit test its giving the following error.
"Test method HireXpress.DataAccess.Test.LawLogicDataAccessClassTest.WS_SubmitNewHireTest threw exception: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required..
at System.Net.HttpWebRequest.GetRequestStream(ref TransportContext context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at HireXpress.DataAccess.gaurdianservice.Guardian.WS_SubmitNewHire(Int32 inComKey, String inComPW, String[] inEmpData, ref String outResultMsg) in Reference.cs: line 149
at HireXpress.DataAccess.LawLogic.LawLogicDataAccessClass.WS_SubmitNewHire(ref String outResultMsg, Int32 inComKey, String inComPW, String[] inEmpData) in LawLogicDataAccessClass.cs: line 15
at HireXpress.DataAccess.Test.LawLogicDataAccessClassTest.WS_SubmitNewHireTest() in LawLogicDataAccessClassTest.cs: line 140"
Please help me in resolving it, I am struck here. Pls help me.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
OK, this is a very different error to the one in the OP. The key line in the stack trace is:
indian143 wrote: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required..
For some reason the proxy is configured in such a way that it needs web-proxy access to get to the web-service sever (effectively the web service is not logged into a web-proxy server).
1. Check the config file in your test project. Make sure it points to the correct service address, this is the likely source of the error. If the server is local, it almost certainly doesn't need a web proxy set up.
2. Ensure your hosts file maps localhost to 127.0.0.1
3. If your service sits on a different IP to the client but on the same network, make sure that you configure the proxy access in IE to bypass for the destination address
4. If you genuinely need to supply a proxy service (i.e. your security policy forbids access to the destination address without logging in to the proxy) you will need to configure proxy login.
Without knowing your network setup it is difficult to help more, not only that I'm off to bed (1am here). Hope this helps[edit] - my post helping I mean, not the fact I'm off to bed!
|
|
|
|
|
Hi Keith,
Thanks for your support, which country are you in now .
Yeah I too came to a conclusion that it is might be because of security set up. One more question I have is "Do I have to set any properties at the time of Web Referencing?". Because it is clear that they are using https means secured socket layer. Do I need to make any settings at the time of creating Web Reference. If so can you please let me know those things.
Thanks once again for the sort of support you are giving me. Thanks a lot may God bless you in all corners your of life.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
indian143 wrote: Thanks for your support, which country are you in now
No problem, people join here to do this. I'm living in Jordan right now, I'm part developer part uni lecturer.
indian143 wrote: Do I have to set any properties at the time of Web Referencing
Not at the time of referencing, but you will have to do extra work at the time you consume the service if you need to provide security information. I'm afraid it has been a long time since I've used vanilla Web Services (I moved everything to WCF as soon as I could, my last asmx work was in 2006) so my memory is very sketchy about all this, and the framework will have moved on as well. My memory seems to be faulty, I would have sworn that you set up security credentials for the client in the web/app config (this is the case with WCF), but I couldn't find this for web services anywhere.
Anyway I did a bit of digging here are two pages that might be of use:
http://geekswithblogs.net/mnf/articles/108602.aspx[^]
Connect to a web service through a Proxy Server[^]
Hope they help!
|
|
|
|
|