|
Thanks for your response, I do agree what you said but why microsoft or some other regulatory body didn't take the initiative to redesign the C/C++ codeing style and made it what C# offers to programmers rather than coming up with a new language. I mean, lets say in the future someone else come up with new easy language syntax and bit something different everyone gonna be moving towards that then. Why don't we focus entire on Parent language rather than producing child languages.
|
|
|
|
|
There are too many problems with that approach. If you think of this from a business perspective, a business makes more money by selling separate compilers than by selling upgrades that are not necessarily backwards compatible. Then there is the problem of forcing companies to re-write software so that the latest compiler will work with it. Customers don't like to change something that is working just because someone has a better idea or wants to implement things in a different way. There are many more technical problems, that are not business related that have to be overcome. Another perspective is from the customer point of view. As a customer, do you really want to keep re-writing working software for the latest version of the compiler? That is very costly.
If you want an example of this, just look at the year 2000 issue with time and how many banks were worried that their 30 year old COBOL code would break.
Phil
|
|
|
|
|
Hi All,
I have created web service using C#, VS2005. I can browse the web service and check whether the web methods are working fine or not (on my develoment server); so far so good.
I want to deploy this web service on other host, so I created web setup project from VS2005 and created installables. I ran these installables on other host and they got added too (I checked it through IIS manager).
Now when I browse the web service I get the following error message.
"The page cannot be found.
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. "
Could someone let me know what exactly am I missing here.
I am new to both C# and web services, so any kind of help would be much appreciated.
Thanks in advance,
JD.
PS: I have posted the same question in .Net section too as its regarding a Web Service.
|
|
|
|
|
dancelicious wrote: I want to deploy this web service on other host, so I created web setup project from VS2005 and created installables. I ran these installables on other host and they got added too (I checked it through IIS manager).
Why are you intalling the webservice on the other system. Try and set it up manually.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
I am totally new to web services, so I have no idea how to set it up manually.
In fact even the idea of making an installable was from MSDN.
Could you please tell me how to do it.
Sorry for the dumb question
Thanks,
JD.
|
|
|
|
|
Okay. I think I got how to add it manually.
This is what i did.
On the deployment host, I copied my web service code in a local folder. The through IIS manager I created a virtual directory pointing to this folder.
But again the same problem, I am NOT able to browse it and see the web methods.
Thanks in advance,
JD.
|
|
|
|
|
You might want to turn directory browsing on in the properties of your web service in the IIS manager. You also need to call the asmx file. So through a browser you need to do
www.yourwebservice.com\webservice.asmx where you need your url and the webservice.asmx file name needs to be what ever you set it up to be. If you have not set up the web service in the iis manager and given it the correct host header and made sure your DNS server know where to serve it, those are all potential issues too.
Hope that helps.
Ben
|
|
|
|
|
I already did whatever you suggested.
Like, turn the directory browsing on, called asmx, tried browsing the asmx file through IIS, tried on IE giving the address as http://localhost/tempSvc/tempSvc.asmx; nothing works.
What am I missing here?
- JD.
|
|
|
|
|
It must be on your local box if you are calling localhost. Are you sure the app pool is running along with the web service in the IIS manager? Usually if you get a page not available error it is because of that.
Ben
|
|
|
|
|
Basically I copied the files over to my deployment host and then I am try to check if its running from the host itself; that's why "localhost".
Yes, the app pool is running too and it has corresponding entry for my service too.
But still no luck
Thanks,
JD.
|
|
|
|
|
Sometimes when you use vs to deploy web services it will put them under the default web site. Is there a chance that happened. If that is the case then the url you use would be slightly different.
First you should be able to go into the IIS manager find the webservice.asmx right click on it and browse. If that works then you just need to figure out the correct url. If it is on your local maching you can alway add a web reference to a test project. Adding a web reference it will always show you the web services on your box. You should just be able to click on it and then you can see what the url was set to.
Hope that helps.
Ben
|
|
|
|
|
Hi All,
Thanks for your valuable inputs.
I got the problem.
Under IIS, under Web Service Extensions, ASP.Net was prohibited, after making it "allowed" things started work.
Thanks to all of you again.
JD.
|
|
|
|
|
Hi!
Have you checked that .NET is installed on the other machine?
Just a thought...
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Yep, its installed.
Thanks,
JD.
|
|
|
|
|
I have a treeView ... and I want to select a node from code. I did that...but the treeview is expanded.If the treeview is not expanded...and I select from code a node....how can I cake to expand the treeview... and see the node what I selected
|
|
|
|
|
Could you please explain more. The question is not quite clear to me.
|
|
|
|
|
At the time of selecting the node, you can do a
treeview1.Nodes[intSelectedNode].Expand(); or treeview1.Nodes[intSelectedNode].ExpandAll();
|
|
|
|
|
Hi
I have a VB6 COM component which uses propertybag object for reading and writing values. This object is been internally used by other VB COM components for sending message to MSMQ. The component which has been written to read the queue is also in VB6 and convert message body to the PropertyBag VB object and used to retrieve the values from that object.
I have been asked to use the same component in C# for sending message to MSMQ but whenever i try to send i get an error about serialization.
I can't write the code MSMQ code in C# for writting as there will be problem in reading from VB6 com component.
Any code is much appreciated
|
|
|
|
|
Hi!
I'm having a lot of difficulty in creating a user defined function in vs2005.
why I'm doing it in c# instead of vb or tsql is that I know C# better than the others (that and tsql won't let you make temp tables in functions
But as far as this goes, I can't seem to get this working.
I' trying to execute a simple select statement and get a datatable variable before I run it through the creative algorithm I have planned.
But I can't seem to get the data into a table.
I get this exception when I execute the function on the server:
System.InvalidOperationException: Data access is not allowed in this context. Either the context is a function or method not marked with DataAccessKind.Read or SystemDataAccessKind.Read, is a callback to obtain data from FillRow method of a Table Valued Function, or is a UDT validation method.
This is the code I use to get the data:
using(SqlConnection sqlcnct = new SqlConnection("Context Connection=true"))
{ SqlCommand sqlcmd = new SqlCommand(sqlstrng, sqlcnct);
sqlcnct.Open();
SqlDataReader sqldr = sqlcmd.ExecuteReader();
while (sqldr.Read())
{
//inserts into datatable here
}
}
But unfortunately SQL server 2005 doesn't like that.
Can anyone point me in the right direction or shoot down my hopes right here?
I'm trying to use a function to avoid having to run a sproc on every employee on the employee table and storing it in an actual field /table every time I need to run this function.
|
|
|
|
|
Lordveralix wrote: while (sqldr.Read())
{
//inserts into datatable here
}
I may not be following, but what do you mean to do here?
Have you looked doing this with a CTE?
only two letters away from being an asset
|
|
|
|
|
I plan on inserting all the data into a datatable and running over the table with code to determine a scalar value based on several rules including the type of absence, the amount of time the absence occurs, if the absence has any following or preceeding days and weather or not to split that into two absences or one via a weekend / vacation day.
As for a CTE I tried unsucessfuly to make one into a function, plus i need to be able to order the data and cte's won't let me do it.
|
|
|
|
|
Hello!!
hope you are are fine! need to know the possible way of adding/deleting users and groups, setting there permissions, in windows server 2003. the tab i am talking about is the tab named "Security" which is there in the properties(right click and select Properties) of the file!
Thanks
Adeel
--
|
|
|
|
|
If you are an admin on the box, then right click on my computer and click manage.
Click the plus on Local users and groups. There you will see groups and users. You can add local users or local groups to the box if you are an admin.
Hope that helps.
Ben
|
|
|
|
|
yes i am admin, but we are developing an application, and we want to set the security permissions for the files generated by the application programatically! and its not about creating or settingup a group or users, its about the setting of permissions of a file!
guess i confused it by using the "security tab" but it is wht we need to do, but programatically!!! !
|
|
|
|
|
I am using C# with crystal report XI in computer one, then I want to deploy my program in computer two, which it does not have crystal report. When I ran my program in computer two, it getting error cannot find some dll file. Do I have to install something. I don't want to install a whole crystal report application in computer two. Thank you
|
|
|
|