|
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...
|
|
|
|
|
hai all
i have 2 date column, receive date n due date. RD should be greater than DD. am entering the date in the form dd/mm/yyyy. and For validation am using a function validatedate. the code is given below.
string dd=Convert.ToString(fld.Month);
string dd1=Convert.ToString(fld1.Month);
string mm=Convert.ToString(fld.Day);
string mm1=Convert.ToString(fld1.Day);
string yy=Convert.ToString(fld.Year);
string yy1=Convert.ToString(fld1.Year);
string date=mm+"/"+dd+"/"+yy;
string date1=mm1+"/"+dd1+"/"+yy1;
if((String.Compare(yy,yy1)>0)||(String.Compare(mm,mm1)>0)||((String.Compare(dd,dd1)>0)&&(String.Compare(mm,mm1)==0))||((String.Compare(dd,dd1)<=0)&&(String.Compare(mm,mm1)>0)))
{
lblmsg.Text="error";
RegisterStartupScript("startup","<script>window.alert('Error:"+date.ToString()+">"+date1.ToString()+" ')</script>");
}
else
{
RegisterStartupScript("startup","<script>window.alert('correct:"+date1.ToString()+">"+date.ToString()+" ')</script>");
}
but for 1,2,3,up to 9 it is taking only one digit and not validation properly. how to include 0 also along with the date.
plz help me.
plz......
i poted a quest before. but didnt get any reply. so i tried it in this format. plz do help me
|
|
|
|
|
so what's wrong with
if (fld > fld1)
???
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 )
|
|
|
|
|
since am inserting value as dd/mm/yyyy,the system is taking this as mm/dd/yyyy. to validate that i wrote all these code. but still am finding some error.
|
|
|
|
|
P_Elza wrote: since am inserting value as dd/mm/yyyy,the system is taking this as mm/dd/yyyy
So what ? A datetime is a datetime. What you're talking about is a rendering detail. If you're getting a date as a string, parse it with DateTime.TryParse and specify the format used. Then you have a datetime object. It doesn't care what order you want the date in, it has the values individually named.
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 )
|
|
|
|
|
am getting the date as datetime format only. it is working only for small dates like below 20 and within one month. if it goes to 2 different month, it is taking only one value. and not showing the error also. if the 2 dates r 02/10/2007 n 22/10 2007 also it is not working. and i tried with what u said. the same problem is comming.
|
|
|
|
|
will it become easy to use CompareTo in your case?
two DateTime object:
DateTime dt1 = new DateTime(2007, 10, 2);
DateTime dt2 = new DateTime(2007, 10, 22);
int result = dt1.CompareTo(dt2);
if (result == 1)
{
//dt1 is after dt2
}
else if (result == -1)
{
//dt2 is after dt1
}
else if (result == 0)
{
//dt1 is equal to dt2
}
|
|
|
|
|
That's because you are comparing the values as strings. If you just compare the DateTime values, it's not a problem.
---
single minded; short sighted; long gone;
|
|
|
|
|
if(DateTime.TryParseExact(fieldtext, DATETIMEPATTERN, null, DateTimeStyles.None, out doctime)) {
}
fieldtext is the string representation of the date eg "23/04/1978", DATETIMEPATTERN is the format "dd/MM/yyyy". doctime will contain a valid DateTime object if the method returns true.
For more info, check out the MSDN website.
A general hint, work with DateTime objects as much as possible and use the DateTime's ToString method at the very last moment...
good luck.
V.
No hurries, no worries
|
|
|
|
|
Is it possible to make aliases for elements in an XML Schema for Xsd.exe tool? I want to have localized elements/attributtes names in an XML file and english names in the generated code.
It would be also nice to have <summary> blocks in the generated code. I do not want to modify it manually because I update the schema and generate a new code sometimes. Is there some kind of 'comment' attribute or sth like that?
Maybe there is some free tool which would do these tasks for me, whatever. Please help.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I have to embed multiple icons in my application so that windows can access it (i.e. Not as a managed resource). Is there any way to do it programatically/changing any prop settings of the project. Including the icons as 'embedded resource' will not help.
Now I am achieving this by opening the executable in VS IDE after building and manually adding the resource.
*jaans
|
|
|
|
|
Hello,
you can try the following C# compiler options
/win32res:<file> Specify a Win32 resource file (.res)
/win32icon:<file> Use this icon for the output
/resource:<resinfo> Embed the specified resource (Short form: /res)
/linkresource:<resinfo> Link the specified resource to this assembly
(Short form: /linkres)
Where the resinfo format is <file>[,<string
name>[,public|private]]
for more compiler options check the belwo link
http://msdn2.microsoft.com/en-us/library/2fdbz5xd(vs.80).aspx[^]
Cheers,
Suresh
|
|
|
|
|
Hi, i want to send & receive SMS in C# using USB Port , how i do this, it is good if you give me a code.
|
|
|
|
|
What makes you sure you can ? Do you mean the USB is used to connect to the phone ? If so, I don't get why you need to involve a PC at all. If not, from where do you hope to recieve SMS ? Is there an SDK for this, or are you just making it up ?
Sending SMS is possible through a number of webservice, easily found with google.
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 )
|
|
|
|
|
What exactly are you trying to do. Explain your situation, what hardware you are using, etc...
I am using a gsm modem connected through a serial connection. With this gsm modem i send and receive sms messages.
|
|
|
|
|
Dear ALL,
I AM FACING PROBLEM I AM DEVLOPING DESKTOP APPLICATION NOW I WANT TO UPLODE THE FILES TO MY SERVER HOW CAN I DO THIS THING.
REGARDS
s REHMAN
|
|
|
|
|
Using FTP, IIS... or adding a shared folder on your server and adding on client computer
Visit my blog at http://dotnetforeveryone.blogspot.com/
|
|
|
|