I am trying to change text in the div tags of my page with values from an object obtained from a server side script but the object is not accessable to the client script. I get an object required error but I know the object exists and is correct becuase I can write the query string value and properties of the object with a server script. I also tried to access the div tags from the server script but this also resulted in an object required error.
I am currently facing some difficulties in accessing my web page. I am creating my company intranet website. Currently, I am developing my webpages in my local machine with IIS activated. When i run the website from my local machine's IE by typing //<computer name> my webpage displayed.
However when I do the same thing from another machine in the network, I got the error "The page cannot be displayed".
In IIS, when I try to browse an aspx, I get a popup message asking me if I want to open or to save the file instead of actually browsing to the page. Any idea of what could cause this issue?
I have a folder on webserverwwwroot, called staticContent. The folder has several message of the day text files, such as RepMotd.text. I have an admin page, AdminMotd.aspx, that allows a user to view and edit the contents of the files.
Webserver is running Win Server 2003 64-bit and IIS 6.0. The development machine is Win XP, using Visual Studio 2005 (thus ASP.Net 2.0.)
In IIS, staticContent folder has Write checked and execute permission is set to Script Only . In NTSF, the folder grants full permissions to Network System.
When I try to overwrite an existing file in staticContent, or try to create a new file, I get a System.UnauthorizedAccessException. The Application error log on webserver notes that the error is on the page I am trying to run, that my user name is what I logged in as, that I am authenticated, and that the thread account name is NT AUTHORITYNETWORK SYSTEM. Elsewhere, I am able to read these same files and insert them dynamically into the web page.
This is the code that I am trying to run in AdminMotd.aspx, cut down to the basics. If it makes any difference, the code is run "in page" and not as part of a separate code-behind file.
****************** <script runat="server"> Protected Sub MotdChange(ByVal ThisFile As String, ByVal ThisText As String) Dim sw As StreamWriter = New StreamWriter(StaticRoot + ThisFile, False) sw.Write(ThisText) sw.Close() End Sub
Protected Sub RepMotdChange_Click(Byval sender As Object, ByVal e As System.EventArgs) MotdChange("RepMotd.text", RepMotdText.Text) End Sub </script>
I have traced that the error occurs when New StreamWriter is called, rather than when actually trying to write to the file. Obviously I'm missing something, but danged if I can find it.
I am using file system object to read an xls file in the webserver , the file is located in the webserver I: ( which is map drive of the webserver ) , when i have tested the script in my local pc , where i kept the file in D: ( local drive in my pc ) it wokred fine , but when i tried in webserver it says path not found ( the web server is Windwos NT based )
this is the path which i am using in a script "I:" & "" & 123456 & "my folder"
what i found that if i use only I:123456 it is able to reach to that folder , but after that its unable but if i rename "my folder" to "myfolder" it reaches that means not able to read the spaces in folder name
Prob is after setting up the IIS on XP Pro, I'm unable to run asp.net applications. I get the message: " The web server is not running ASP.NET 1.1" each time i try to create asp.net application using .net 2003. I know the prob is due to config on IIS. but don't know how.
I am unable to download zip files from IE browser. Everytime I click on the download button, instead of prompting me to save the file, Internet Explorer opens the zip folder instead.
I think this is because I have previously instructed IE to open zip files without prompting (there was a check box to do this). Is there any way I can revert to the original settings?
I have tried resetting my Web settings, as well as setting the Security level in the Internet Options, but to no avail. I am totally unable to download zip files using IE now.
How to set the default value so that IE prompts me to download the files than opening it in some location.
I've published my database using Frontpage and inserted a result query on a ASP page and I get the following error.
Database Results Error [Microsoft][ODBC Microsoft Access Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x3cc Thread 0x4f8 DBC 0x13d50024 Jet'.
I have a file in a top level directory called inc_protect.asp. I'm trying to include that file in a page called tree.asp. The code to include the file is
The server returns an error saying that the file is not found. Anyone have any suggestions on this? All files are asp script. The tree.asp is in a folder called SupServ directly below inc_protect.asp... Can these not go backwards?
I get this following error while inserting recoed in ms-acces db :
Error Type: Microsoft OLE DB Provider for ODBC Drivers (0x80004005) [Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only. /mis/add_iteminfo.asp, line 35
This thing is making me go crazy as i'm running windows platform & running the app on localhost. The have several times but the db isn't read-only, not even in the iis. Don't know what to do .
When I try run the project, I get an error as "unable to start debugging on the web server. the project is not configured to be debugged. " . I'm running it on Windows 2000. I've made sure that debug=true in the web.config file and the authentication mode = "Windows".
I also get an error when I try it on IE5 as :"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 " .
I am having difficulty retrieving a field from a record. I do the Recordset and open and populate the resultset. I can access every value from the record and all of the data is correct except for one field. I am allowed to try and return a value from this field, but it always returns back empty (when it is not empty).
I cannot understand why it returns empty because I am using the correct field name rsSearchResults("rational"). What makes this even more complicated is that when I cut and paste the store procedure into SQL and run the query, it returns the correct values for all fields, including the "rational" field that will not return in the ASP page.
i try to debug a simple ASP.NET project on a windows server2003 and i receive a msg that saya's i dont have permissions and to check if i am in a debugger group.
I following the IIS (version 6.0) with the "Manage your server" from the administrative tools. i did the following:
1. make sure that the machine debug manager service running 2. the digest authentication is unCheck 3. add the IUSR_ to the debugger group in the AD (the computer is a domain controller) 4. i gave the user a full control over the wwwroot library
in my second line i wannted to display new page in fram3 that is exists in same page. i have divided the full page into 3 frames. one top frame contains info. second frame will capture the data fo all teams from database as shown above code. the third frames is blanks.
I'm now doing a project about handphone making a call and sending sms or mms by using vb.net.
But i need to make the button invisible inorber to see the buttons of my phone.when i switch the visible to false.
The button become inactive and i can't even click it. How to make the button active and it is invisible at the same time. Need to figure out the codes fast,running out of time to do the project.
I am really having a problem with trying to get my datagrid to update my data base.
I have tried 2 different sets of codes, but when ever I enter the new data to be updated and click update, the datagrid will just return to the orginal datas. There is no updating done. I really am very new to this. Please advice what are the problems in my code that I must change. Code:
IIS cannot read files in a directory reporting that :
Microsoft VBScript runtime (0x800A01B6) Object doesn't support this property or method: 'Fso.GetFolder'
This has to do with Scripting.FileSystemObject. I make sure the scrrun.dll is properly registered with regsvr32. Still the problem persists.
Previously I do not know what I did right once in permission setting and managed to display the said files but it went away after tweaking the permission for make other functions available.
I scoured the web and this problem is a perrenial one. Many many suggestions have been made even in expertsexchange site but no real solution. I don't understand why it is so difficult to have this file system service up and running.
My background images are not appearing on the page. I am unsure why. I can see them on my on pc, but nobody else with the same computer configurations can see these background images. We are using XP, so I thought there may be a problem caused from this.
I am facing very weired problem that i am not able to solve so finally i give up. i use mailing application to send mails to my website members this script working fine with all e-mail services except yahoo.i cant figure out why its not working on yahoo only what probably i have done wrong Above is the script i am using....
if someone can help me on VB/ASP.Net project. The project was developed by another developer on another machine. I need to load it and make some changes to this project. I get error message "Unable to read project file (name of the file). The Project file has been renamed or is no longer in the solution.