|
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
|
|
|
|
|
|
You can just include the merge modules in your setup kit and that would look after installing the required runtime dll's for your application. The link by kubben contains a link to get the merge modules.
|
|
|
|
|
after finsh programming software. how can i do the setup for my software so i can install it in any PC
|
|
|
|
|
You can make a Setup for your program by using Visual Studio. You can also use third party softwares like NSIS, InnoSetup and InstallShield etc.
|
|
|
|
|
how can i use Visual Studio to make the Setup...
|
|
|
|
|
|
|
Hi ,
I have written an assembly in C# which uses threads, and I want to add the reference of this assembly in both Windows Form and ASP.NET Web Form.
There is a method in a thread of my assembly which should send the current status of processing to Windows Form and Web Form .
My problem is, I first used the 'invoke and delegates' mechanism from my assembly to update WindowForm control , but this technique did't work on WebForm control as I could't find any equiavalent of 'Invoke' in WebForm .
Now I tried to use the Delegates and Events , I fire events from my assembly and try to catch those events in my WIndow Form , but getting error that "cross-thread operation is not valid" as I am trying to update GUI control frm my own thread....
Is there any way around to this ? I want to use technique through which I can update my both Win Form and Web Form controls !
Please I need help I m realy very badly struck here...
Thanks in advance.
ZINK
HELLO
|
|
|
|
|
I need to open a StreamWriter for a file, but have trouble mapping my Win32 CreateFile skills to C#, esp. the CreationDisposition. I need.
"Create file, truncate existing": That's probably what File.CreateText does
"Create File, error if it exist": ???
"Create File, Append if it exists": that's probably File.AppendText, but how di I figure out that it already did exist?
I can do the two latter ones by putting a File.Exists test in front of it - but that isn't the "atomic" operation.
Just Curious
|
|
|
|
|
If you create a FileStream first using then you can specify what you want to happen to the file.
FileStream fs = new FileStream(path, fileMode);
Where FileMode can be:
FileMode.CreateNew (exception thrown if already exists)
FileMode.Create (overwrites an existing file)
FileMode.Open (exception thrown if does not exist)
FileMode.OpenOrCreate (if exists then opens, otherwise creates)
FileMode.Truncate (opens existing file but wipes it, presumably throws exception if file doesn't exist)
FileMode.Append (appends to existing file)
Once you have opened it you can pass this to the StreamWriter's constructor.
|
|
|
|