|
Take a look at the DateTime.ToString[^] overload that allows you to specify the format.
From a quick scan of that page I think the one you want is ToString("O");
|
|
|
|
|
Have a look at this...you ca define your own datetimepattern as you wish...for examples for the DateTimePattern try searching MSDN and google
System.Globalization.DateTimeFormatInfo info = new System.Globalization.DateTimeFormatInfo();
info.FullDateTimePattern = "...";
Application.CurrentCulture.DateTimeFormat = info;
Do your best to be the best
|
|
|
|
|
Hi,
I am going to develop a C# windows application and deploy in a server. This exe file will be used by around 10 people at the same time. I think it will create new instances for each user.
What I want to know is, are there any know issues for these kind of scenarios? What the general good practices for this kind of application?
Thanks & Regards
jayasshc
|
|
|
|
|
The main issue I can see is if your app writes to local config files, they could well clash.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thanks
jayasshc
|
|
|
|
|
if the exe uses resources (most commonly files) it could be a problem.
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Thanks!
jayasshc
|
|
|
|
|
no problem, we're all trying to help
|
|
|
|
|
have you considered any of the "click once" stuff?
That way you can deploy to a server but each client gets a local instance as required
|
|
|
|
|
Thanks!
jayasshc
|
|
|
|
|
i am not able to use break point in my application. if i use break point it is showing a msg like
"The breakpoint will not currently be hit. No symbols have been loaded for this document".
what is this? how can i use break point and evaluate my application.
|
|
|
|
|
|
Run your app in debug mode
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
How to get the location of BookMark in Table of Word Document..
i.e Row And Column
plzzzzzzzzzzzzzzzz help me
venki
|
|
|
|
|
Try
object nullRef = null;
object count = null;
object gotoItem = (object)WdGoToItem.wdGoToBookmark;
object name = (object)"Sample";
Range rng = doc.GoTo(ref gotoItem, ref nullRef, ref count, ref name); where doc is your document.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi..
I have made a web application using ASP.Net 2.0 and MSSQL 2005.Well..I am really confused as to where I am wrong.I have my site running in my PC and in my LAN.But I have to send the site via FTP to some remote machine.I did it.I uploaded it unto some folder in their desktop.But it doesnt run there.It shud run when it is typed in the browser like http://remotecompterIP//sitename//aliasname//Default.aspx.
I have uploaded the precompiled files..published files that is.and another thing i have alos created a virtual directory .Does it matter?
However,I also tried doing it without the virtual directory.It shud go like http://remotecomputerIP//sitename//Default.aspx.
But this did not work either.
Should I upload the files into their wwwroot?is it necessary?
Any ideas??Plz help
Regards,
confused
confused
|
|
|
|
|
confusedme wrote: Should I upload the files into their wwwroot?is it necessary?
Depends. you can put it whereever you like, but if you don't tell IIS where it is, it plainly isn't going to work, it won't know where to look for it.
confusedme wrote: But it doesnt run there
If you gave us more meaningful info, we could perhaps tell if .NET was installed on the target machine, and IIS configured to run with it. But, it sounds more like you dropped it in a random folder and hoped it to work via magic. IIS needs to know where to look for your app. If IIS was free to read from anywhere on your PC, it would be super slow ( because it would have to search the whole file system for possible matches ) and not even remotely secure.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi...
Thanks for the prompt reply.Well..yes the IIS is installed on the machine and it is configured to work with ASP.NET.
I do not have the access to their IIS.I think you are trying to say that there must be created some virtual directory in their IIS to point to the folder that i have uploaded.If that is so then...i need not worry...coz it is their job.Is this wat u mean?I am posting you the error that it threw:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.
Source Error:
Line 41: ASP.NET to identify an incoming user.
Line 42: -->
Line 43: authentication mode="Windows"
Line 44:
|
|
|
|
|
Gee - why didn't you say ?
This error means what it says. You have a config file that has settings that can only be applied at the root. This means that when you say
confusedme wrote: If that is so then...i need not worry...coz it is their job
you have two choices.
1 - fold your hands and say it's not your fault
2 - contact them and ask them to fix it.
Unless you have this setting within subfolders within your app, then it's your fault.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do you know your virtual directory is created under root path or it's under sitename?
if the virtual directory is created under root path, you should visit http://remotecomputerIP/aliasname/Default.aspx
And don't try to think it can work without virtual directory if your application is not under root.
|
|
|
|
|
Hey ..
thanks ..but the virtual directory in my PC is inside my sitename.So i hope the path i have given is correct.
confused
|
|
|
|
|
Are you sure the hosting machine is setup the virtual directory to you correctly??
seems the error is come from virtual directory didn't create.
|
|
|
|
|
Well...in my PC i have created the virtual directory .I uploaded them the precompiles files with the virtual directory.I do not know whether they need to create another virtual directory there in their PC pointing to the file i have uploaded in their desktop or my virtual directory is sufficient.I do not know what they have been doing.But i just tried to view the site here in my PC giving the said URL.I am just worried coz it dint work..and i was wondering if there is any thing i still have to work on
Thanks!
confused
|
|
|
|
|
is that mean you just upload your virtual directory to their server? and didn't or don't know if they make the virtual directory to you?
if so, please ask them to create one to you, since you couldn't upload the virtual directory setting...
|
|
|
|