|
thks alot ,u solve my prblem
i m really thnkfull to u?
|
|
|
|
|
Best Regards,
Apurva Kaushal
|
|
|
|
|
Hi all,
I am developing website using 2005.when I run my webpage it works fine.BUt when I tried to find my .dll file I could not find it out.
Normally in .net 2003 .dll present in working folder,But this is not true for .net 2005.
Now when I uploading website My web.config file shows error,I think this is due to absence of .dll file.
Error IS
Server Error in '/' Application.
--------------------------------------------------------------------------------
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".
<configuration>
<system.web>
<customerrors mode="Off">
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.
<configuration>
<system.web>
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm">
Any help is really appreciated.
Regards,
-- modified at 3:41 Friday 23rd June, 2006
|
|
|
|
|
Hi there,
I don't think it's because the absence of the dll file as by default the VS 2005 does not generate the output assembly in the bin folder like you see in the VS 2003 with the ASP.NET 1.1. So you may need to turn off the custom error setting to see the error details which can help figure out the root cause.
Also, if you want to generate the output assemblies for the web site, you can either puslish the web site from the Build menu or use the ASP.NET compile tool aspnet_compiler.exe . Another option is to use the Web Project 2005[^] , for more information you can see Publishing Web Sites[^]
|
|
|
|
|
Hi,
Thanks for help.
Its Really nice to meet such technical savvy and kind people.
I hope we will meet soon with new matter.
Best Regards,
Nagraj
Let's Teach Life To Laugh........
|
|
|
|
|
Hi
i am calling excel sheet macro from web application but it is giving me Exception that
Message "Programmatic access to Visual Basic Project is not trusted"
Please help me
|
|
|
|
|
heh, I remember this one, I spent few hours to find this dirty MS trick
Run Excel.exe application, go to Tools/Macro/Security, click 'Trusted publishers' tab, check 'Trust access to Visual Basic Project'.
Unfortunately, this can not be set programaticaly, AFAIK.
I'm using MS Office 2003, but should works similary with others versions as well.
|
|
|
|
|
i have got an application which is meant to be truely hacakable and in that i have got aspx pages. the html view of the pages when validated by W3C html validator generates a lot of errors in the tags .how can i remove these errors.
Irshad Ahmad
|
|
|
|
|
W3C validator gives you error description along with some suggestion.Follow those suggestions,If suggetions are not available Understand error try to solve it one by one.In many cases solving one problem can automatically solve your more than one problem,so try to solve one by one.
I hope this will help you.
Regards,
Nagaraj
Let's Teach Life To Laugh........
|
|
|
|
|
In VS.NET 2005 go to menu Tools/Options.../Text Editor/HTML/Validation and uncheck 'Show errors'
|
|
|
|
|
Can any one explain me how to coding to use AcroPdf.dll to display PDF files in asp.net application? also for windowsMediaplayer dll in ASP.Net 1.1
thanks in advance
|
|
|
|
|
If you want to work with the pdf document at the server side, you simly right click on the project and choose Add Reference. If you want to open a pdf document or play a media file, the client machine needs to have the pdf viewer/media player installed, and you might be able to host it on your web page using the object[^] element.
|
|
|
|
|
Hi All,
I have a DATE data column in dataset, which gives me date and time both values. i want only date part of that column to display in table. is there any way i can convert it to only date format?
Thanks,
Niki
|
|
|
|
|
You can quickly see the DateTime members[^] providing you with a couple of ways to get the date value only. Also when binding the Date column to the table, you can specify the formatting pattern to get the date, you can read more about this in msdn[^].
|
|
|
|
|
Hello,
I have a form with some checkboxes, I want that whenever the user check a checkbox to post a message to the server and the server will update the Session object.
I don't know how to do it. Please Help.
Thanks,
Yossi
|
|
|
|
|
You can see the sample code[^] of using an Ajax library to access the Session object.
|
|
|
|
|
Hi thanks,
For this I need to download a dll file and to use the new classes/ methods.
I don't want to use open sources for this because this should be a simple task.
Do you have any other solution.
Thanks,
Yossi
|
|
|
|
|
You can manage to write your own javascript to work with the XmlHttpRequest object to send an out-of-box request to server, you can specify a web page, custom http handler .ashx, or web service as the destination of the request, and use them to access the session object.
|
|
|
|
|
Thanks,
I tried to do it using ashx handler but it seems that I can't use the Session object there.
I use .NET 2.0 and working with Visual Studio.
Thanks,
Yossi
|
|
|
|
|
<%@ WebHandler Language="C#" Class="Handler" %>
using System;
using System.Web;
using System.Web.SessionState;
public class Handler : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest (HttpContext context) {
if (context.Session["SessionName"] == null)
context.Session["SessionName"] = 0;
int counter = (int)context.Session["SessionName"];
counter++;
context.Session["SessionName"] = counter;
context.Response.ContentType = "text/plain";
context.Response.Write("Counter: " + context.Session["SessionName"]);
}
public bool IsReusable {
get {
return false;
}
}
}
|
|
|
|
|
I am relatively new to ASP.NET and have just uploaded my first page. I have a "Save" function that writes information from a control to an XML file. Whenever I try to run this function I get this error from ASP.NET:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Access to the path 'c:\windows\system32\inetsrv\favorites.xml' is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'c:\windows\system32\inetsrv\favorites.xml' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
--------------------------------------------------------------------------------------
I'm not sure how to change the access rights because I am using a web hosting service.
It works fine on my local machine.
What should I do from here?
|
|
|
|
|
You need to contact the admin if you don't have the control to ensure that you are given a place where your application has the write permission. For more information, see ASP.NET process identity[^]
|
|
|
|
|
HI,
Can you write the code here that you are using.
Thanks,
Sushant Duggal.
|
|
|
|
|
Here is the code that I am using. I am referencing the file in the last sub-routine "Save_Click".
Sub SaveNodes(ByVal nodesCollection As TreeNodeCollection, ByVal textWriter As System.Xml.XmlTextWriter)
Dim link_node As TreeNode
For Each link_node In nodesCollection
If link_node.ChildNodes.Count Then
textWriter.WriteStartElement("Folder")
textWriter.WriteAttributeString("Name", link_node.Text)
textWriter.WriteRaw(vbCrLf)
Else
textWriter.WriteStartElement("Link")
textWriter.WriteAttributeString("Name", link_node.Text)
textWriter.WriteAttributeString("Location", link_node.NavigateUrl)
End If
If link_node.ChildNodes.Count > 0 Then
SaveNodes(link_node.ChildNodes, textWriter)
End If
textWriter.WriteEndElement()
textWriter.WriteRaw(vbCrLf)
Next
End Sub
Sub SaveTreeViewData(ByVal treeView As TreeView, ByVal path As String)
'Create a serializer and file to save TreeViewData
Dim TextWriter As New System.Xml.XmlTextWriter(path, System.Text.Encoding.UTF8)
TextWriter.WriteStartDocument()
TextWriter.WriteRaw(vbCrLf)
SaveNodes(treeView.Nodes, TextWriter)
TextWriter.Close()
End Sub
Protected Sub Save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Save.Click
SaveTreeViewData(Link_Tree, "favorites.xml")
End Sub
|
|
|
|
|
Hello,
I have an ASP.NET 2 app, recently converted from .net 1.1.
The app connects to a SQL DB.
Running the app under Windows 2000 server there were no issues. Now that I converted the app and run it under W2003 server it will "time-out" after about 15 minutes of leaving it idle. The error reported is: 4005
Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired.
I have tried these items from MS: http://support.microsoft.com/?scid=kb;en-us;918041&spid=8940&sid=global
And
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000009.asp
But none worked. The only thing that seems to work is this: http://www.cgnit.com/resources/ntauthority_networkservice_error.html
But my SQL Admin says we can't do that because of security issues.
Anyone have any ideas, comments or suggestions?
Much appreciaterd!!
Thks,
--PhB.
PhrankBooth
|
|
|
|