|
Yes I think it's possible that my application is running on a different account. The application is actually a c# class library that's being called from a webservice. The library writes out a file and after that's done, I just need it to copy the file to the destination where I need it to be...
This "My brain is 2 small for all the knowledge that I need" is only a signature you don't need to worry about it.
My brain is 2 small for all the knowledge that I need.
|
|
|
|
|
You need to set the security permissions so that your webservice can write to the directory you want the file moved to then. So on the directory you need to add the permissions for the account the web service is running as.
_Hacker wrote:
is only a signature you don't need to worry about it.
I realised that. It just seemed like a kind of defeatist attitude to me.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Where do I set the permissions for the webservice?
Colin Angus Mackay wrote:
It just seemed like a kind of defeatist attitude to me.
Sorry for the inconvenience.
My brain is 2 small for all the knowledge that I need.
|
|
|
|
|
_Hacker wrote:
Where do I set the permissions for the webservice?
On the folder, right-click, select properties, go to the security tab and add the account that the web serice runs in and give it the relevant permissions (I think it would be "modify" which automatically selects some other dependent permissions as well). Once this is applied it should work.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Thx
My brain is 2 small for all the knowledge that I need.
|
|
|
|
|
By default ASP.NET runs under the ASPNET account, a local machine account. This can cause a problem, especially since the password is, by default, randomly generated when the AppDomain is recycled.
If you're on a domain (and presumably you are), I (and most other developers familiar with this problem) recommend changing your machine.config file to use a domain account (like MYDOMAIN\ASPNET) and the password assigned to that user. This file is protected under strict ACLs so you shouldn't worry too much.
That'll make it easier for the web service running under ASP.NET to copy files, since you're now using a domain account instead of a local account (which you might not even be able to reference depending on your network topology). See the <httpRuntime> element documentation in the .NET Framework SDK for more information.
Alternatively, you could enable impersonation. That's a little more drawn-out, so I would refer you to the .NET Framework SDK and MSDN[^] articles about how to do that, or ask in the ASP.NET forum here.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
I need a second "drive" then - or just a damn good defragmenter. Retaining most of what I read, see, and hear (which can suck) I'm starting to get way too much thrashing. My driver might be a little bad, too, since the heavy fragmentation is leading to data corruption (mixing of fragments into incomprehensible rubbish).
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Hello,
I have a class library project which has a class supporting COM+ transactions. This class library project refers a COM interop assembly. Now i need to register the assembly after compiling this class library projects into GAC. Registrering it into GAC requires tthat the assembly should have a strong name. Now when i use [assembly: assemblykeyfile("file.snk")] attribute and compile the class library project it prompts me that the interop assembly should have a strong name too..
Now how to assign that interop assembly a strong name whehn its source is not accessible to me ?? OR how compile successfully this class library without assigning strong name to interop assembly.
Any other workarounds ??
Thanks,
Hatim Ali.
|
|
|
|
|
al.exe
also c: http://www.thecodeproject.com/vb/net/serviced_components.asp
|
|
|
|
|
I had read about al.exe but it requires .netmodule file which obviously i don't have because the source assembly is an interop assembly.
Any other workaround ??
Thanks...
|
|
|
|
|
I want to insert a RTF file to an Access DB and i tried to insert only the RTF source to a MEMO field and when the command is executed i recive an error "SQL SYNTAX something" if anyone can help me with code please do...
|
|
|
|
|
Most likely the RTF has a single quote in it, which corrupts the SQL syntax. Try creating and calling a stored procedure instead of concatenating together a string containing the SQL INSERT statement, this will allow you to pass single quote characters without messing up the SQL syntax.
Judah Himango
|
|
|
|
|
Access doesn't support stored procs. Besides, the correct resolution here is to use parameterized queries - even with stored procs. Not using parameterized queries and instead relying on string concatenation to build SQL expressions opens you up for SQL injection attacks.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
This is most likely because your SQL expression contains a quote (as Judah said) but instead of just resorting to stored procedures (especially since Access doesn't support them), use parameterized queries.
When you use string concatenation to build SQL expressions, you not only run into problems like this but face SQL inject attacks, which are extremely easy to exploit and can be the most devastating (yeah, DDoS'ing a site sucks, but stealing credit card numbers or something else of value without the site knowing is far, far worse). If you're interested, search prior discussions on this board (heck, just go back to yesterday where I had to explain this 4 times to different people).
Something like the following would solve the problem of both escaping quotes and keeping your database secure:
using (OleDbConnection conn = new OleDbConnection(connectionString))
{
OleDbCommand cmd = conn.CreateCommand();
cmd.CommandText = "insert into Whatever (RTF) values (?)";
cmd.Parameters.Add("@RTF", OleDbType.LongVarWChar).Value = richTextBox1.Rtf;
cmd.ExecuteNonQuery();
}
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles] [My Blog]
|
|
|
|
|
Apparent it is not possible to change the height of a TextBox. But I want to display two or three lines of text. Which control can I use and/or should I use?
Regards
patrick
|
|
|
|
|
Set Multiline property to True , You can enter more than one line as well as change the height.
|
|
|
|
|
Iam going to develop something like dictionary but it will be distrebuted on cd, and it will have about 100,000 record (the record about 5 fields some fileds will be 800 character)
i do not know what is the database to use with this application?
sure it will not be sql server coz of cost resons
and i think that access will be weak to this
thnx in advance
|
|
|
|
|
How about MSDE? It is basically a SQL Server Engine, but limited to about 5 or 10 concurrent connections, and you can redistribute your application with the MSDE engine at no extra cost.
Also, if you are going to create a database application you might want to consider improving your spelling ability. The following words are all misspelled: distrebuted fileds coz resons thnx
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
|
Hello,
Unfortunately, in the ".NET Compact Framework Programming with C#" is the TabControl not explained so I have five questions referring to the TabControl on Smart Device Application:
1) How can I when I go from another Form1. to the Form with the TabControl to select an initial TabPage?
2) When I want to create a special control for a TabPage which I cannot design with the VS.NET Designer in the corresponding tabPage, what do I have to quote that the Control is on the certain tab page?
3) When I click from one tabPage (JobDetails) to another tabPage (ClientDetails) the SelectedIndexChanged Event is occured. But how can I indicate in this event that I want for example to the ClientDetails tab Page?
4) How can I take over a parameter from one tabPage to another tabPage?
5) Is it difficult to give a certain tab page a background colour?
Hopefully anybody find time for these questions..:-/
Best Regards
mat
|
|
|
|
|
1) Just show the right form. Set the SelectedIndex to the tab you want.
2) Confusing question but i'll try. If you want to know what tabpage a control is on go control.Parent. If you are trying to add designer support search google.
3) After the event occurs you can check the selectedtab or selectedindex. The eventargs don't have any additional info.
4) ???
5) No. Just get the TabPage you want and change the Background like you do on everything else.
|
|
|
|
|
hi guys,
I am building a employee data base management system with lot of datagrid. Its basically a windows app. I am building the whole application in 3 tier architecture. I want to add a combo box to the datagrid. i got some sample from net. They are saying abt adding datagridTextcolumn in datagrid table styles. I tried adding that. No errors but not results i cannot see the combo box. how can i exactly put the combo box in the right cell. How can i map them i tried mapping properties but it does not work and will not work as i am filling dataset using a function in the wrapper class to get a dataset and setting this as the datasource to the grid. so how can i do that any ideas. is my question a bit confusing or vague. sorry for that. how can i do that plz tell me a neat way of doing that.
thanks in advance
anand
anand
|
|
|
|
|
|
Hi~
Can I add item to "new" of the desktop context menu?
Thanks
|
|
|
|
|
Hi,
I can't figure out how the textbox 'knows' where to draw. Can I get a handle to that rectangle and 'move' it over?
thanks,
Roland
|
|
|
|