Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Thursday, March 29, 2012

Please click the back button on your browser and

Hi All,

In my one project, at many aspx pages I am getting below error.
Could anyone please give me solution of this.
================
Please click the back button on your browser and try again.Session state is
not available in this context.
================
I really tried to solve this a lot but could not get the solution.

Thanking you in advance,
RahulSeems sessions are disabled for your application and being used everywhere
inside applications...

Sudhakar Sadasivuni
http://weblogs.asp.net/ssadasivuni
MyUG : http://www.mugh.net

"Rahul Borade" wrote:

> Hi All,
> In my one project, at many aspx pages I am getting below error.
> Could anyone please give me solution of this.
> ================
> Please click the back button on your browser and try again.Session state is
> not available in this context.
> ================
> I really tried to solve this a lot but could not get the solution.
> Thanking you in advance,
> Rahul
>
Hi,

Thanks for your immediate reply!

But, if I check session on other aspx pages, the session
state is perfectly available.

What could be any other possiblity for this ... can you
please tell me ...

>--Original Message--
>Seems sessions are disabled for your application and
being used everywhere
>inside applications...
>
>Sudhakar Sadasivuni
>http://weblogs.asp.net/ssadasivuni
>MyUG : http://www.mugh.net
>
>"Rahul Borade" wrote:
>> Hi All,
>>
>> In my one project, at many aspx pages I am getting
below error.
>> Could anyone please give me solution of this.
>> ================
>> Please click the back button on your browser and try
again.Session state is
>> not available in this context.
>> ================
>> I really tried to solve this a lot but could not get
the solution.
>>
>> Thanking you in advance,
>> Rahul
>>
>>
>>
>.

Please click the back button on your browser and

Hi All,
In my one project, at many aspx pages I am getting below error.
Could anyone please give me solution of this.
================
Please click the back button on your browser and try again.Session state is
not available in this context.
================
I really tried to solve this a lot but could not get the solution.
Thanking you in advance,
RahulSeems sessions are disabled for your application and being used everywhere
inside applications...
Sudhakar Sadasivuni
[url]http://weblogs.asp.net/sasivuni[/url]
MyUG : http://www.mugh.net
"Rahul Borade" wrote:

> Hi All,
> In my one project, at many aspx pages I am getting below error.
> Could anyone please give me solution of this.
> ================
> Please click the back button on your browser and try again.Session state i
s
> not available in this context.
> ================
> I really tried to solve this a lot but could not get the solution.
> Thanking you in advance,
> Rahul
>
>
Hi,
Thanks for your immediate reply!
But, if I check session on other aspx pages, the session
state is perfectly available.
What could be any other possiblity for this ... can you
please tell me ...

>--Original Message--
>Seems sessions are disabled for your application and
being used everywhere
>inside applications...
>
>Sudhakar Sadasivuni
>[url]http://weblogs.asp.net/sasivuni[/url]
>MyUG : http://www.mugh.net
>
>"Rahul Borade" wrote:
>
below error.
again.Session state is
the solution.
>.
>

Monday, March 26, 2012

Please Help - WEB Application

Hi Everyone,

I have a VB script (.aspx) project that needs to produce nine unique,
randomly generated numbers that uses all nine of the numbers. I will greatly
appreciate either a recommendation of where to look on the web for my
answer, or your direct response.

Thanks a 1,000,000 for your ideas.
ChuckChuck Insight wrote:
> Hi Everyone,
> I have a VB script (.aspx) project that needs to produce nine unique,
> randomly generated numbers that uses all nine of the numbers. I will greatly
> appreciate either a recommendation of where to look on the web for my
> answer, or your direct response.
> Thanks a 1,000,000 for your ideas.
> Chuck

If I understand correctly, you want to generate a nine-digit
"random" code that uses all of the digits in 123456789.
(what about "0"?)

What you can do is
1) start with "123456789"
2) generate two random numbers from 0 to 8 (inclusive)
3) exchange the digits at those positions
4) repeat steps 2) and 3) a dozen times.

To generate a random number, see the System.Random class
(create *one* instance, then repeatedly get random numbers
from that class)

To generate nine of these codes, use this repeatedly
but check if you already have this particular code. If
yes, discard this code and generate again.

--
Hans Kesting

Saturday, March 24, 2012

Please Help - WEB Application

Hi Everyone,
I have a VB script (.aspx) project that needs to produce nine unique,
randomly generated numbers that uses all nine of the numbers. I will greatly
appreciate either a recommendation of where to look on the web for my
answer, or your direct response.
Thanks a 1,000,000 for your ideas.
ChuckChuck Insight wrote:
> Hi Everyone,
> I have a VB script (.aspx) project that needs to produce nine unique,
> randomly generated numbers that uses all nine of the numbers. I will great
ly
> appreciate either a recommendation of where to look on the web for my
> answer, or your direct response.
> Thanks a 1,000,000 for your ideas.
> Chuck
>
If I understand correctly, you want to generate a nine-digit
"random" code that uses all of the digits in 123456789.
(what about "0"?)
What you can do is
1) start with "123456789"
2) generate two random numbers from 0 to 8 (inclusive)
3) exchange the digits at those positions
4) repeat steps 2) and 3) a dozen times.
To generate a random number, see the System.Random class
(create *one* instance, then repeatedly get random numbers
from that class)
To generate nine of these codes, use this repeatedly
but check if you already have this particular code. If
yes, discard this code and generate again.
Hans Kesting

Please Help ????

Hi Everyone:

I am posting this second time, Plaese Help.
I am having a problem to open asp.Net project.The error which i
am getting is

Web Access Failed
the default Web access mode for this project is set to file share, but
the
project folder at http://XX.X.X.XXX/WebApplication1' cannot be opened
with
path 'http://XX.X.X.XXX/WebApplication1'. Access is denied.

One of the options that was available from the error dialog was 'Try
to open
the project with FrontPage Server Extensions'. This did not work
either
(similar type of error).

I tried couple of solution which i found from google but nothing work
and finally i FORMAT my computer and install W2000 and install
VS.Net.Guess what ?

Same Error.

I did my best(Format the M/C) and i don't know what else i can do?

My ISS setting is Correct like

1. IP address ----> (All Unassigned)
2.TCP Port ----> 80
3.Execute Permissions ---> Scripts only
4. Read / Write Permission to c:\inetpub\wwwroot Dir.
5.Integrated Windows authentication ----> Checked

6. HTTP Header ---> I add .tmp mine type Temp
7. Check Access rights on Share Folders.Every thing is Ok.

Thanks In advance.

Pargatwhat permissions groups are you in? Make sure you are in VS Developers or
possibly Administrators

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com

"pargat singh" <pargat_g@.yahoo.com> wrote in message
news:59f09594.0407070431.61dac59@.posting.google.co m...
> Hi Everyone:
> I am posting this second time, Plaese Help.
> I am having a problem to open asp.Net project.The error which i
> am getting is
> Web Access Failed
> the default Web access mode for this project is set to file share, but
> the
> project folder at http://XX.X.X.XXX/WebApplication1' cannot be opened
> with
> path 'http://XX.X.X.XXX/WebApplication1'. Access is denied.
> One of the options that was available from the error dialog was 'Try
> to open
> the project with FrontPage Server Extensions'. This did not work
> either
> (similar type of error).
> I tried couple of solution which i found from google but nothing work
> and finally i FORMAT my computer and install W2000 and install
> VS.Net.Guess what ?
> Same Error.
> I did my best(Format the M/C) and i don't know what else i can do?
> My ISS setting is Correct like
> 1. IP address ----> (All Unassigned)
> 2.TCP Port ----> 80
> 3.Execute Permissions ---> Scripts only
> 4. Read / Write Permission to c:\inetpub\wwwroot Dir.
> 5.Integrated Windows authentication ----> Checked
> 6. HTTP Header ---> I add .tmp mine type Temp
> 7. Check Access rights on Share Folders.Every thing is Ok.
> Thanks In advance.
> Pargat

Please Help ????

Hi Everyone:
I am posting this second time, Plaese Help.
I am having a problem to open asp.Net project.The error which i
am getting is
Web Access Failed
the default Web access mode for this project is set to file share, but
the
project folder at http://XX.X.X.XXX/WebApplication1' cannot be opened
with
path 'http://XX.X.X.XXX/WebApplication1'. Access is denied.
One of the options that was available from the error dialog was 'Try
to open
the project with FrontPage Server Extensions'. This did not work
either
(similar type of error).
I tried couple of solution which i found from google but nothing work
and finally i FORMAT my computer and install W2000 and install
VS.Net.Guess what ?
Same Error.
I did my best(Format the M/C) and i don't know what else i can do?
My ISS setting is Correct like
1. IP address --> (All Unassigned)
2.TCP Port --> 80
3.Execute Permissions --> Scripts only
4. Read / Write Permission to c:\inetpub\wwwroot Dir.
5.Integrated Windows authentication --> Checked
6. HTTP Header --> I add .tmp mine type Temp
7. Check Access rights on Share Folders.Every thing is Ok.
Thanks In advance.
Pargatwhat permissions groups are you in? Make sure you are in VS Developers or
possibly Administrators
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"pargat singh" <pargat_g@.yahoo.com> wrote in message
news:59f09594.0407070431.61dac59@.posting.google.com...
> Hi Everyone:
> I am posting this second time, Plaese Help.
> I am having a problem to open asp.Net project.The error which i
> am getting is
> Web Access Failed
> the default Web access mode for this project is set to file share, but
> the
> project folder at http://XX.X.X.XXX/WebApplication1' cannot be opened
> with
> path 'http://XX.X.X.XXX/WebApplication1'. Access is denied.
> One of the options that was available from the error dialog was 'Try
> to open
> the project with FrontPage Server Extensions'. This did not work
> either
> (similar type of error).
> I tried couple of solution which i found from google but nothing work
> and finally i FORMAT my computer and install W2000 and install
> VS.Net.Guess what ?
> Same Error.
> I did my best(Format the M/C) and i don't know what else i can do?
> My ISS setting is Correct like
> 1. IP address --> (All Unassigned)
> 2.TCP Port --> 80
> 3.Execute Permissions --> Scripts only
> 4. Read / Write Permission to c:\inetpub\wwwroot Dir.
> 5.Integrated Windows authentication --> Checked
> 6. HTTP Header --> I add .tmp mine type Temp
> 7. Check Access rights on Share Folders.Every thing is Ok.
> Thanks In advance.
> Pargat

Friday, March 16, 2012

please help me with my first "project"

Hello! Here is the simple code I followed the instruction on the article in msdn.net.
Now it has error msg:

Parser Error

Description:An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message:Could not load type 'WebApplication1.Global'.
Source Error:
Line 1: <%@dotnet.itags.org. Application Codebehind="Global.asax.cs" Inherits="WebApplication1.Global" %>

Source File:c:\inetpub\wwwroot\qingaspnet\WebApplication1\global.asax Line:1

Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
I use microsoft visual studio. net
I double click on the button and add one line code in function Button1_Click --it is under WebForm1.aspx.cs

rivatevoid Button1_Click(object sender, System.EventArgs e)

{

Text1.Value="Hello, Web Forms!";

}
and then right click on WebForm1.aspx--> view in browser.

I don't know how to get code into global.asax , I checked the global.asax, it is nothing in there.
-----Code Here:
/*

<%@dotnet.itags.org. Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="WebApplication1.WebForm1" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio 7.0">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<INPUT style="Z-INDEX: 101; LEFT: 85px; POSITION: absolute; TOP: 88px" type="text" id="Text1" name="Text1" runat="server">
<asp:Button id="Button1" style="Z-INDEX: 102; LEFT: 128px; POSITION: absolute; TOP: 143px" runat="server" Text="Button"></asp:Button>
<DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 59px; WIDTH: 211px; POSITION: absolute; TOP: 26px; HEIGHT: 37px" ms_positioning="FlowLayout"><STRONG><FONT size="4">Sample
Web Forms Page:</FONT></STRONG></DIV>
</form>
</body>
</HTML> */ Thanks for help!

i am not sure exactly but i saw thesame problem ... it might be the asp.net can not be read by the iis.... have you installed iis before or after the VS.NET?

Hello!
I use IIS for my PHP and MYSQL project. It run fine. I just recently installed the .net and try to learn it.
I search the internet for the problem. It seems the .dll or directory problem. It is compile problem--it didnot compile it for me.
I went to the property of the folder under IIS and don't know what I should to change.
The project WebApplication1 is under C:\Inetpub\wwwroot\qingaspnet\WebApplication1
Please tell me what to change step by step.

Thanks!
Hello!
I use F5 to rebuild it. It works and showed on the browser. But when I click on button, the text did not show on the text box.
why?
Thanks for help!

rivatevoid Button1_Click(object sender, System.EventArgs e)

{

Text1.Value="Hello, Web Forms!";

}
this is your code and as i can see if your text box ID is Text1 so your code telling me that when you click on the button the text box will be filled by this string provided in code so what is the strange !!!!! if something else please expand what you mean and what is the problem !!?? but any way how it is worknig now what have you changed?

please help me with this problem

Dear all

when i open a new project with Visual Studio.Net 2003,

and choosing to make an asp.net web application project

the following problem happend

please tell me how to overcome this problem

regards,,,

Try this...

Look for and open your IIS (Internet Information Services), in XP it is under Administraive Tools of Control Panel, go to "Default Web Site", right click it, Select "Properties", then click "ASP.Net" tab, change "ASP.Net version" back to 1.1 version.

Hope this solves your problem...Mark as answer if this solves it...Smile


Here's your solution:

Open command prompt, and type"aspnet_regiis -i"



Follow the steps as provided above and make sure that aspnet_regiis.exe you drag drop from the Version 1.1 folder on command prompy then type -i and then press enter then log off or restart you machine. You will find this under your windown direcotry->Microsoft.NET->Framework-v1.1.4322(or the version of dotnet framework)

and also make sure that ASP.NET have all permission on the "Temporary ASP.NET Files" under the version folder and on the folder where your application resides.


Dear all, den2005 when i followed the steps you have mentioned ((Default Web Site", right click it, Select "Properties", then click "ASP.Net" tab)) and right click the Default Web Site, then select Properties i do not find an "ASP.Net" tab the following window has displayed:


den2005 please tell me what to choose??

the_menace

this is the result of applying your advice:

please help me to identify where is the problem.


Using windows explorer, browse through the directory and locate your latest .NET framework version folder.

For instance:

"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe"
Mine is: (actually I got 3.0 and 3.5 also)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe
Then just go to your "Start>Run and type in the whole directory as: (with -i)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
That should work! 
 


Big thank dear the_menace

finally i can running the program will

and big thank for all of members who are partisipating in helping me

PLease help me!

hie...i'm facing a common issue which is transferring project from a pc to a different pc. i'm sure alot of the web developers would face this problem when they need to transfer their project from one pc to another.
well, the project was working well in the machine which run on win 2000 pro however does not work properly when i transfered it to another pc which run on win xp platform.
does this have anything to do with the iis setting? if it does, please advice on how i can resolve this issue. thanx

Have you tested if your web server is running on the new machine? See if you can view the localhost page.
Several things might need to be tried when you migrate your app. Web server is the first one to look at.
Does the new Server runs Windows XP Home or Windows XP Pro ?


if you are using the DB instnace for SQL server that need to be merged and tested as well

If you have Win XP home, you need to upgrade to Pro to be able to install IIS, else the problem is something else and you will need to provide us with more information on the errors you are getting to be able to track your problem.

Regards

Please help on this annoying error

whenever I open a project or create a project, it give a error messege like
"microsoft development environment has encountered a problem and needs to close. we are sorry for the inconvenience." it asks me "send error report" or "don't send". when I click "don't send", it is closed. However, it opens single file. I reinstall VS.net alreday and there is no help.
PLEASE HELP!!!Hi,

The following article may be of use to you.

http://weblogs.asp.net/cflaat/archive/2003/07/24/51598.aspx

hope it helps.

please help this one is simple

I have some code stored in a file called functions.vb I want to be able to call methods in this class from anywhere in the project, for example functions.GetCookie("member_id").

I know how to do it if i compile it, make it a dll file and make it a reference, bu I do not want to do this because i want to beable to edit the code at anytime for some reason i cannot figure out how to accompish this. Seems like it should be very simple?Make a public class named "functions" and all of the methods you want to call "Shared", then include the functions.vb file in the project you want to call them from.

This will allow you call any shared method using the class name . method name from any place in the project.
right now i have functions in a . dll file and i am able to at the top of my code write:

Imports CoreFile.functions

and be able to call methods of the functions class without typing:
CoreFile.functions.GetCookie()

I can just simpley type GetCookie() it seems to me that the Import statement at the top of the code only works with references. is there a way around this? am i doing somthing wrong?

I want to be able to import my functions.vb class

Thanks.
it IS really simple:

if you want to be able to modify your code behind at any time and not have it as a dll then all you need to do is include this at the top of your aspx page:


<%@. Page Inherits="myCodeBehind" src="http://pics.10026.com/?src=myCodeBehind.vb" %>

with this line at the top of your aspx page, you can access any of the functions in your vb file without having it in dll form. just remember to change myCodeBehind.vb to whateveer your codebind.vb page is called.
If you change GetCookie() or any other function inside your functions.vb class you have to re-compile the class and re-compile your application referencing that class (if you want it to access the newly modified functions).

I keep two copies of visual studio open at all times. One has my web application and the other has my functions. Recompile functions, recompile app and now app can access any new functions and the modified functions.

If you think about "how" it works it makes sense. My app references "functions.vb" which is compiled into a DLL and copied into my apps folder. When I re-compile "functions.vb" the newly compiled DLL is still located in it's own base folder. It's not until I re-compile my app that it brings over the new copy of the DLL.
yes that works for a .aspx page but what if i am calling the method from other classes as described above. I can write "Imports CoreFile.functions " at the top of the class
this allows me to call methods of my functions class without writing CoreFile.functions.GetCookie(). Instead I can just write GetCookie() and it recognizes it as CoreFile.functions.GetCookie() is there a way to import a file that is not in references. I want to be able to do something to the effect of "Imports functions.vb" right now it is set as "Imports CoreFile.functions " where CoreFile is a dll defined in references.