|
Looks like the project location is changed. Create a blank solution, add all projects to that solution and compile.
|
|
|
|
|
Reposting your question, even with a different header, is rude.
Jon
Smith & Wesson: The original point and click interface
|
|
|
|
|
in web config file i am declaring session time out ="1444"
but it is not working, after some time session become expire
my code is as give below..
<compilation debug="true">
<assemblies>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
</compilation>
<sessionState mode="InProc" cookieless="false" timeout="1444" >
</sessionState>
any one know plz tell me
krishna veer singh
|
|
|
|
|
You are storing the session in Inproc which is well known for the session loss. If you are using IIS 6 then possible reson could be that your worker process could have been recycled.(you can change it by going to the properties of the application pool of your application).
You can store the session in StateServer to prevent such accidents
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
plz tell me how can i change it by going to the properties of the application pool
plz explain
krishna veer singh
|
|
|
|
|
Setp 1 : Go to your web application(VD) right click > properties
find out the application pool name to which it is added.
Step : Now go to that applicatio pool right click > properties > Recycling tab
There are many versions to configure the recycling by minutes/per requests/Byy schedule etc. You can reconfigure this with your values and save it.
(Note this will work only if you are using IIS 6)
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi
I am writing code in C# and I have some class parameters in some pages (parameters of a class and not of methods or pageLoad function).
I enter these parameters data every page load and the problem is that after every page load they get null, so when I push a button or something in the page, I can't get the data that I put in them.
I tried to make them statics and it works, but it's not the solution that I am looking for, because I think it would be problematic when multiple users would be in this page.
Is there any one with an idea for this issue?
Thanks
|
|
|
|
|
Why not try storing the class / parameters in the session ?
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
That's what I did finally...
I hoped to find an easier solution without casting and stuff...
Thanks a lot
|
|
|
|
|
i want convert persian dateTime to miladi how can i do this.
|
|
|
|
|
I took a project from my friend on a CD, and i tried to open it in Visual Studio but it give me this following:
"one or more project couldn't be loaded in the solution for the following reasons"
the project file or web has been moved, renamed or is not on your computer.
These projects will be labeled as unavailable in Solution explorer. expand the project node to show the reason th project could not be loaded. "
Please any help will help me.
Thanks in advance
Assaf
|
|
|
|
|
That is because the solution is looking for the project at its original location (for example C:\projects\fooproject)
How to fix it? Copy the solution the harddisk, remove the unavailable project, and re-add it, using the correct path)
|
|
|
|
|
HI ALL,
I am getting following errors on rinning the downloaded source code of Tabstrip creation in ASP.NET 2.0 from this site itself.
How to remove all these.
Error 2:
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.
D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\web.config 54
Error 3:
Element 'TabularMultiView' is not a known element. This can occur if there is a compilation error in the Web site.
D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\Default.aspx 17
Error 10: D:\NMS_screens\tabcntrl\puneet\nsa\WebSite\Default.aspx: ASP.NET runtime error: 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. (D:\NMS_screens\tabcntrl\puneet\nsa\website\web.config line 54)
Please sent me the solution if anybody can.
Its Urgent
|
|
|
|
|
puneetneema wrote: Its Urgent
I know. Check this[^] and also this[^]
|
|
|
|
|
Hi,
I am new to sharepoint development, As i need to know how webparts can be write in c#.net and how to implement this in share point 2007.
Regards,
RAM
modified on Saturday, May 24, 2008 6:02 AM
|
|
|
|
|
Hi All,
I got a problem with saving the uploaded files by client to the server.
Since the files should be uploaded only when the form is completed which is in MultipleView control with the multiple file upload in the very first view, i took the entire Httpfilecollection into Cache on the first button click and saves it from the cache at the save button click. It is working fine in local machine but not when the application is published.
The multiple file upload is working in another form where im saving the files in the first button click itself so here the problem is with the caching the HttpFile Collection.
This is my code
in first button click
---------------------------
HttpFileCollection filecollection = Request.Files;
if (filecollection.Count > 0)
{
Cache.Insert("filecollection", filecollection, null, DateTime.MaxValue, TimeSpan.Zero);
}
in the save button click
----------------------------
HttpFileCollection filecollection = (HttpFileCollection)Cache["filecollection"];
if (filecollection != null)
{
if (filecollection.Count > 0)
{
for (int i = 0; i < filecollection.Count; i++)
{
HttpPostedFile newfile = filecollection[i];
if (newfile.FileName != "")
{
\\Code to save file
}
}
}
}
Please Help me on this
|
|
|
|
|
can i search a string in the aspx pages of virtual directory which is hosted on another machine ?
Or
If i host an intranet website on a particular server , i can access all it's pages through the remote computer .This is quite clear.My question is , How can make the buffer of text contents from those pages from the remote computer ?
If you have an apple & I have an apple and we exchange our apples, then each of us will still have only one apple but if you have an idea & I have an idea and we exchange our ideas, then each of us will have two ideas!
modified on Saturday, May 24, 2008 5:13 AM
|
|
|
|
|
Pankaj Garg wrote: How can make the buffer of text contents from those pages from the remote computer ?
What do you meant by "buffer contents" ? Are you trying to access that site and to read the text ? Then use WebClient class. It has some methods to do that.
|
|
|
|
|
Hi
I create a xml file in the C# code during a button pressed event and it's created perfectly.
After creating the file, it suppose to be downloaded to the client.
The problem is that without any sensible reason, all the HTML code of that page is appended to the xml file when it's downloaded.
The command that is used to download is:
Response.WriteFile(fileName); //(fileName is a String)
I've already tried to use 'Response.Clear();' but it didn't help.
Please help me with that issue.
Thank you
|
|
|
|
|
Never mind, problem is solved.
Response.End(); was missing;
Thanks anyway
|
|
|
|
|
Hi,
I am a newbie in designing web services. In my web service, I have created a webmethod which is extracting some data from my SQL server and then show it following some queries. Now everything is running fine from my local pc.
But when I try to access my web service from a remote pc with my pc’s fixed IP (http://163.180.145.139/test1/Service.asmx) they show all the webmethods list but after clicking on any of the operations it shows: The test form is only available for requests from the local machine. You can check it too by following the above link.
1. Plz tell me how can I solve this problem so that everyone can access my webservice and sql server data through it stored in my localhost from remote pc.
2. Plz tell me why I can't access any data through the webservice by typing a line in the address bar like this: http://163.180.145.139/test1/Service.asmx/ShowSuppliers?str=1990. In some tutorials its said that it will work. But I am getting error: Request format is unrecognized for URL unexpectedly ending in '/ShowSuppliers'
For your information I'm using windows Xp, IIS 5, sql server 2005 enterprise edition, MVS 2005: C# for my work. Please let me know for any further info.
Thanks in advance
Faysal
|
|
|
|
|
in this function i validate textbox value and radio button on button click event
it work in internet explorer very well.
but not work in mozilla firefox what is the reason??
function check(cid)
{
var red=document.getElementById('rd');
var val="PH";
if(rd[0].checked==true)
{
val="KH";
}
var box1 = document.getElementById('txtsearch').value;
box1 = box1.replace(/^\s*|\s*$/g,'');
var box2 = document.getElementById('rd');
if(box2.checked==true)
{
if(box1=="")
{
alert("Please Enter a Keyword, Business or Category");
return false;
}
else
{
window.parent.location.href="../keywordsearch.aspx?kq="+document.getElementById('txtsearch').value+"&stype="+val+"&city="+cid;
}
}
else
{
if(box1.length<6 || box1.length>11 )
{
alert("Please Enter Phone Number(min:6 digit and max:10) ");
return false;
}
else
{ if(IsNumeric(box1))
window.parent.location.href="../keywordsearch.aspx?kq="+document.getElementById('txtsearch').value+"&stype="+val+"&city="+cid;
else
{
alert("Please Enter Only numeric Number ");
return false;
}
}
}
}
html code
/////////////////////////
please send me solution
thanks in advance
no knowledge in .net
|
|
|
|
|
Unknown Ajanabi wrote: if(rd[0].checked==true)
What is "rd" in above code?
I think "rd" is not an object.It must be "red"
please don't forget to vote on the post that helped you.
modified on Saturday, May 24, 2008 3:17 AM
|
|
|
|
|
if(rd[0].checked==true)
What is "rd" in above code?
I think "rd" is not an object.I must be "red"
"rd" is radio button id
no knowledge in .net
|
|
|
|
|
Have you used RadioButtonList control or just RadioButton?
Unknown Ajanabi wrote: if(rd[0].checked==true)
You can not use object ID at this way.
You have to get an object of control.
for example
if(document.getElementById('rd').checked==true)
please don't forget to vote on the post that helped you.
|
|
|
|