|
Does the account name you're providing have the appropriate rights to the network resource? Are you sure your using the correct name and password? Things can be a bit confusing in a domain environment and different in a workgroup.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yes, the account name I'm providing is the local administrator on that machine. I'm not using any domains at this point. The weird thing is that the function returns immediatly, it seems like there isn't even enough time for the remote machine to accept or reject the call.
|
|
|
|
|
Try changing the account that your web service is running under. I get the feeling that the ASPNET account doesn't have any network resource rights to make a connection to anything.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I've already searched online for instructions on how to do this correctly and attempted it, but have been unable to do so. I've changed the ASPNET user password on both machines to the same password and given the account read/write access to the files. But even after I change the password field in the machine.config file the web server will not load the web service. The only way I get it to function properly is to run the aspnet_regiis.exe command to reset the password toa randomly generated one. Have you ever successfully change the ASPNET password ?
|
|
|
|
|
What are you changing the password for???? There's no reason to do it.
Create an account that your web service will run under and change it to that account in IIS.
On a second thought, why are you mapping a drive inside a web service? This drive mapping will disappear as soon as the current call to the web service returns.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I guess I thought that all ASP.NET web services and applications ran under the ASPNET account. Where do I change the account at ? I know where to change the anonymous access but that is using IUSR_MACHINE account. I don't see anyplace to change the ASPNET user account.
I don't neccessarily have to map a drive, I'm just triing to get access to files on a share on another machine. I have been unable to do so thus far and thought providing a login while mapping a drive would get around the security problems.
|
|
|
|
|
Hi all,
How can I mplement a update of a datagrid with datagrid.datasource = myDataSet?
Thank all
Bye
AlbePes
|
|
|
|
|
Hello all & Greetings.
I have a SQL Table execute a query and results being populated ina GridView ,gv, control. Now, I need to select multiple records from the gv. How can I do this? If this were not possible, is there any other control I can use to populate the results of the sql query which would enable me to selct multiple records from such a control. [for. eg, a listBox control , etc.
Any suggestion would be much appreciated.
thanks,
kishan
cansciences@gmail.com
|
|
|
|
|
|
Hello, I need to design a weekly planner report the report needs to look something like this-->
========================================================================
Monday Tuesday Wednesday n so forth
========================================================================
Date: 11/01/06 12/01/06
Location: ABC XyZ
Time: 10:00 AM 11:00
--------------------------------------------------------------------------
Sr. Dr. SPT Dr. SPT Dr. SPT
Can anyone come with some solution? It would be nice to manipulate the data in the sql server however its not compulsory. By the way its a windows application on C# and sql server at the backend.
I couldnt format this msg properly but basically the Date location time will fall under each day, having a Drs name, his/her speciality and the level for each day. If someone has any solution i would get the sample report scanned and send it to their email address. Also, I am toying with the idea to have an excel sheet and automate it via C# but it does not appeal me though and it would be nice to stick to CR.
Best regards,
Krunchu
|
|
|
|
|
Hi,
I have been looking around and working with the Express editions of C# and SQl Server 2005 for a few days now. Currently I am unable to create a Procedure using the new CLR. From my understanding you must create a "special" stored procedure project that you later use in SQL Server 2005 by creating an assembly and linking to it...
My problem is the Express version of C# does not include the template files for this. As a matter of fact there is no database project folder at all.
I was wondering if there is somewhere I can download the needed templates or if I have to upgrade my version of C#.
Thank you for your time,
Will
I hate users. Not all of them, just the ones who talk.CP member: Al Einstien
-- modified at 14:02 Thursday 12th January, 2006
Cant spell...
|
|
|
|
|
Also, did you enable CLR Integration[^]? For security reasons it is turned off by default.
You might also get some good information here: CLR Stored Procedures[^]
ColinMackay.net
"Man who stand on hill with mouth open will wait long time for roast duck to drop in." -- Confucius
"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell
|
|
|
|
|
thanks for reply's
Yes i have enabled the CLR in sql server 2005.
so in short I dont need a template? I can just use the code on msdn2 and it should work?
Will
I hate users. Not all of them, just the ones who talk.CP member: Al Einstien
|
|
|
|
|
Hello all!
I am new to c#.net 2.0. I am using a datagridview and would like to update the current(selected) row in it. Can anyone provide some help. I read about datatable, datarow. Yet, I found no property that returns the index that points to the current row.
Thanks All,
Tan the man
Tan the man
|
|
|
|
|
|
Hi,
How to delete rows from a DataTable completely from the memory.
Regards,
Subbu
|
|
|
|
|
Do you want to remove them from the table, or the data source ? If just the table, just delete them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I am writing an application containing a treeview.
The requirements state that the treeview should have checkboxes to help multi-selection. However, the checkboxes on the treeview do not look nice at all . The checkbox outline is thick and looks rather silly. How can I change this? Is it possible to make the outline thinner?
Any help is much appreciated
Regards
Peter
|
|
|
|
|
First, there are some free controls on Codeproject that do this already. Check them out if you haven't yet.
Secondly, you can try drawing the checkbox using either the system drawing (which is unthemed):
System.Windows.Forms.ControlPaint.DrawCheckBox
Or if you're using .NET 2.0, you can try drawing the system themed checkbox which looks a lot nicer:
using System.Windows.Forms.VisualStyles;
...
if(VisualStyleInformation.IsSupportedByOS == true)
{
VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Button.CheckBox.CheckedNormal);
renderer.DrawBackground(myGraphicsSurface, rectangleToDrawIn);
}
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango
|
|
|
|
|
Thanks for your reply
I'm using .NET 1.1 so will try the System.Windows.Forms.ControlPaint.DrawCheckBox approach. I'll also have a look for the controls you talked about too.
|
|
|
|
|
I have two simple dlls and one main application.
first dll is:
namespace baseDll{
public class baseClass{}
}
the second dll is:
using baseDll;
namespace childClass:baseClass{
public class childClass{}
}
//with a correct reference to base dll
and the main application is:
public static void Main(string[] args){
Assembly a1 = Assembly.LoadFile(@"C:\childDll.dll");
Assembly a2 = Assembly.LoadFile(@"C:\baseDll.dll");
System.Type t2 = a2.GetType("baseDll.baseClass");
System.Type t1 = a1.GetType("childDll.childClass");
if (t2 != null){
Console.WriteLine(t2.FullName);
}
if (t1 != null){
Console.WriteLine(t1.FullName);
}
}
It prints only t2, while t1 has an undifined value..
What's wrong, and what can be a workaround to this?
-- modified at 14:45 Thursday 12th January, 2006
Now I tried to run it with mono, and it works ok..
Moreover when I use Assembly.LoadFrom instead of Assembly.LoadFile it works fine...
|
|
|
|
|
Have a look at the LoadFile documentation (I only have a german link at hand but you should easily find it on MSDN). It says something like that i should only be used to load and check assemblies with same identities on different paths and that i doesn't resolve references like LoadFrom does.
The workaround is clear: Use LoadFrom
|
|
|
|
|
thanx!
Can you please elaborate though on what is "same identities"?
If I use Assembly.LoadFrom it doesn't have the same identity? (what is this identity of an assembly...)
|
|
|
|
|
Have a look here[^].
I'm not really an expert on this topic, but I think if you just copy one assembly to another path than those two assemblies have the same identity.
|
|
|
|
|
Hi,
I want to develop a web service, that has to access a local file. Can I use relative path, like ../data/filename.dat or Application.Startup + "//data//filename.dat", to navigate to the file?
Thanks a lot!
Alan Shen
MCAD for .NET Version
^~^~^~^~^~^~^~^~^~^~^
Great idea is the beginging of success!
|
|
|
|