|
Please let know Whether u aree getting problem for both asp.net 1.1 version and also for 2.0 version application or for only 2.0 Version
If U are Getting Problem only with 2.0 Version and working fine 1.1 Version .First add Both these sub Directories as Virtual DIrectories inside Main Application add assign Configuration setting as 1.1.414.. for 1.1 Version in iis and for 2.0 2.0.57057 in IIs ..... If u Get Again any problem only in
asp.net 2.0 Application then change
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
to< configuration>
I Hope this Work .... I have not tested because i dont have both version on my system ....Just Try as Above
And If u have any Problem Plz Submit Stack Information
Just Share Words
|
|
|
|
|
Website www.web1.com is running under 1.1.Under the same website need to create two subdirectory like subdir1 and subdir2.
Subdir1 is using --- version 1.1 -- www.web1.com/subdir1
Subdir2 is using --- version 2.0 -- www.web1.com/subdir2
if i use http://www.web1.com/subdir2,all websites under the webserver,stopped automatically.
Why it is like that.Is it possible to run version 1.1 and version 2.0 under the same website .
radsgr
|
|
|
|
|
I doubt it. I don't thnk the web server can even run 2 different apps with different ASP.NET versions.
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 )
|
|
|
|
|
RADSGR wrote: Is it possible to run version 1.1 and version 2.0 under the same website
Nope. IIRC, you'd have to create an entirely seperate website under IIS and tell it which ASP.NET version to use.
|
|
|
|
|
I need to create both applications (one is 1.1 and another one is 2.0) under the same website(which is also 1.1)
Website --> 1.1 -- one appln
-->Subdir1 --> 1.1 -- One appln
-->subdir2 --> 2.0 -- One appln
But I already assigned the version of each appln in IIS.
radsgh.net
|
|
|
|
|
I doubt this is not possible. As Dave suggested, you can create two sepearete websites and assign ASP.NET version
|
|
|
|
|
Asking the same question again won't change the answer.
You can't do what you want. You MUST create two seperate ASP.NET applications in two seperate websites under IIS.
|
|
|
|
|
Sorry not possible dude till this time. U need to deploy them as seperate applications on IIS instead.
Do not forget to tune the Performance
Sudhir Yadav
|
|
|
|
|
Each application can only use one version of the framework.
If you turn the subdirectory into a separate application, you can run it using a different version of the framework. You also have to set up a minimum of one application pool for each version of the framework you are using, as all applications in one pool have to use the same version.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi All,
I've made some enhancements to an application that was built using the User Interface Process Application Block. Some of the enhancements required changing the app pool to run under a service account (previously it was running Network Services).
Since making this change, one of the old pages (untouched by my code, and previously working), now generates the following error:
Requested registry access is not allowed.
mscorlib
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable) at System.Diagnostics.EventLog.CreateEventSource(String source, String logName, String machineName, Boolean useMutex) at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category, Byte[] rawData) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID, Int16 category) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type, Int32 eventID) at System.Diagnostics.EventLog.WriteEntry(String source, String message, EventLogEntryType type) at System.Diagnostics.EventLog.WriteEntry(String source, String message) at Microsoft.ApplicationBlocks.UIProcess.WebFormViewManager.GetViewNameForCurrentRequest(IView currentView) at Microsoft.ApplicationBlocks.UIProcess.Navigator.ActivateViewInStateIfNecessary(IView view) at Microsoft.ApplicationBlocks.UIProcess.WebFormView.WebFormView_Load(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
I have updated the registry key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Eventlog\Application\CustomSD
To include the following give all users access to update the application event log: (A;;0x2;;;AU)
But to no avail. I was wondering what other access the Network Services acount might have, that needs to be granted to the new service account? Or does anyone know the name of the eventlog that the UIPAB is trying to create, so that I can manually create it instead?
Thank you,
Alex
|
|
|
|
|
Often when a new user is having problems writing to the event log I add them to the admin group run the app once and then remove them. There is something about the event log that after you have written to it once it works after that. Your user that you are running the app pool will need to do this and will need rights to write to the registry. I think if you add this service user to admin run the app, you won't get the error any more. Then stop the app pool take the user out of the admin group and try it again. It should work.
Hope that helps.
Ben
|
|
|
|
|
Thanks Ben, that worked a treat.
The first time I tried it, it didn't work... Then I realised we're running the application in a cluster, so I had to give the service account admin access on all the servers / nodes before it worked.
For other people out there experiencing the same problem, it looks like the UIPAB is trying to create it's own event log in the regsitry - which it normally doesn't have access to do. Giving it temporary admin access allowed it to create the new log, after which you can remove admin access and the new log will still be there for it to use as normal.
|
|
|
|
|
Glad that worked for you. There is a manual way to do it, but it is much easier to just give the user admin access and then remove it again after it is working.
Ben
|
|
|
|
|
I am learning ASP .NET and am going though an ASP .NET book. I am wondering if you could hopefully help me out. I have a very simple page with text boxes, prompting for a name, age, social security #, and number of children. I have a required field validator but only for the name text box. The name text box is the control to validate. However, for my submit buttons code, my else statement will not run and in the book it does so I'm flabbergasted.
If Page.IsValid then
results.text = "Input is valid..."
Else
results.text = "Input is not valid..."
End If
The first statement will run fine if something is in the text box. Thank you for your help.
|
|
|
|
|
sounds like your aspx page differs from the example. Is your validator doing client side validation ? If so, this server code will never fail.
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 )
|
|
|
|
|
It's set to runat="server" per the html markup. I have read this section of this tutorial 2 times and it does not differ. I have found I am not the only person to encounter this.
|
|
|
|
|
OK, then the book is wrong. Basically, runat="server" is mandatory, I was talking about other fields. The default behaviour for a validator is for you to give it text messages to display and it will do so, without posting back. You check Page.IsValid to protect against people attacking your page, not for run of the mill operation
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 )
|
|
|
|
|
Let me start by saying that past basic dreamweaver I haven’t done much. What I need help with is this… I have a feedback page http://www.talligewi62.org/burning_issues.htm where I need to add a Captcha Image using ASP.NET 2.0. I have looked through this site and I guess that I just not getting something because everything I’ve tried failed. Any help you could provide me would be great.
Thanks for what ever you can do for me;
Nick
|
|
|
|
|
I thought there was at least one article on this ?
The tricky part is the image processing code to obsfucate the text in the bitmap you end up sending to the client. The rest seems straightforward to me. What have you tried ?
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 )
|
|
|
|
|
I want to create a MessageBox, that I want to
use on many of my web pages.
The MessageBox is a System.Web.UI.UserControl and is an .ascx file.
It contains a table with som labels in it.
Now on my UserEdit.aspx site I've added an asp:PlaceHolder with ID="plhMessage".
At the code behind I want to add a messagebox, something like:
<br />
plhMessage.Visible = true;<br />
MyMessageBox mb = new MyMessageBox();<br />
mb.Type = global::My.Web.Controls.MyMessageBox.EnumMessageType.Ok;<br />
mb.MessageText = "Data was saved.";<br />
plhMessage.Controls.Add(mb);<br />
Now at the command plhMessage.Controls.Add(mb); it goes
in to the protected void Page_Load(object sender, EventArgs e) of
the MyMessageBox control. But when I look at any of the Label properies it is NULL.
The result is of course that there is no message to view.
What am I doing wrong?
Or is there a better way of doing this in VisualStudio 2005?
(maybe somthing like an asp:Content, asp:ContentPlaceHolder witch I'm using on my masterpage)
I've easely done this with controls of type "WebControl", but then I've had to
create all the items with codelines, and I want the flexability an System.Web.UI.UserControl
gives with reference to design layout.
Thank you.
Thomas
|
|
|
|
|
You can always use javascript it is a little easier.
(.net 2.0)
private void ShowDialog(string p_msg)
{
Type cstype = this.GetType();
StringBuilder tmpSB = new StringBuilder();
tmpSB.Append("<script type=text/javascript>");
tmpSB.Append("alert('" + p_msg + "')");
tmpSB.Append("</script>");
ClientScript.RegisterClientScriptBlock(cstype, "Save", tmpSB.ToString());
}
Ben
|
|
|
|
|
You can't use MessageBox in ASP.NET applications. You'll have to resort to javascript alert or confirm or create your own popup.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
I am developing Asp.net 2.0 website. All the linkbuttons in my website does not defaultly change the color after visiting. Even I tried to use this common CSS property
a:visited
{
color: #800080;
}
a:link
{
color: #0000FF;
}
a:active
{
color: #0000FF;
}
It is not working. Please help me.
Thanks
Mohamed
|
|
|
|
|
Put the pseudo classes for links in this order:
:link<br />
:visited<br />
:hover<br />
:active
---
single minded; short sighted; long gone;
|
|
|
|
|
Howdy All:
I have a ASP.NET 2.0 "content" page derived from a custom "Base Page" class based on the System.Web.UI.Page class.
The "Content" page has a placeholder control that I want to get a reference to in the "Base Page" class.
I have tried FindControl() but it doesn't seem to find it.
Any ideas?
Thanks for any help.
- The Trooper
|
|
|
|