|
cmarmr wrote:
Server cannot access application directory 'c:\inetpub\wwwroot\WebApplication2\'.
That is because IIS thinks you want to view the directory, any you haven't given permission for that. You need to tell IIS the name of the page that it should be displayed by default when a user doesn't enter one in the URL.
To do this, open up the Internet Information Services (IIS) panel in the Administrative Tools folder. Navigate to the appropriate virtual directory, right-click it and select "Properties". In the new dialog, select the Documents tab, make sure that "Enable Default Document" is checked. Add the name of the web page you want displayed when the URL is just a directory name.
Does this help?
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
ok i tryied that is it did not work it like something on the page is trying to access something useing c:\inetpub\wwwroot\webapplication2\something instead of http:\\webapplication2\something
how can i fix this
chad
|
|
|
|
|
Sorry, I misread your original post.
Is there a part of a stack trace with the error message? Do you get the same error when you run your application from within Visual Studio? (i.e. you press F5 to open it in IE with a debugger attached)
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Does anyone know where I can find a xslt file to transform xml into html or how to open a new browser window from asp.net to display the xml. I have a string that contains the xml that is generated from an object. I want to display the xml to the user in the browser. The format can change so writing a custom xsl is time consuming. I just want to display the xml as would be done if you open up an xml file in the web browser. However, must of the xsl files that exist on a windows pc for doing this are specifically designed to be run by the browser and don't use the standard schema that is required by XslTransform. I want the data to be displayed in a nicely color and formated XML format. If anyone has any help for me on this it would be greatly appreciated.
|
|
|
|
|
Each time I try to create an ASP.NET Web Application I get the "Web Access Failed" dialog box...IIS is installed and running correctly, however I keep getting the following error message:
<br />
The default Web access mode for this project is set to file share, but the project folder at 'http://localhost/WebApplication1' cannot be opened with the path 'c:\Inetpub\wwwroot\WebApplication1'.
Can anybody explain why i keep getting this? IIS is running correctly and so are the rest of my Visual Studio .NET applications...I only get this when I try to create Web Applications...
Thanks
|
|
|
|
|
To fix IIS mappings for ASP.NET, follow these steps:
Run the Aspnet_regiis.exe utility:
Click Start, and then click Run.
In the Open text box, type cmd, and then press ENTER.
At the command prompt, type the following, and then press ENTER:
"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i
In this path, version represents the version number of the .NET Framework that you installed on your server. You must replace this placeholder with the actual version number when you type the command.
Register the Aspnet_isapi.dll:
Click Start, and then click Run.
In the Open text box, type the following, and then press ENTER:
regsvr32 %windir%\Microsoft.NET\Framework\version\aspnet_isapi.dll
Regsvr32 returns the results of the registration.
Then you wont get that error
|
|
|
|
|
Each time I try to create an ASP.NET Web Application I get the "Web Access Failed" dialog box...IIS is installed and running correctly, however I keep getting the following error message:
<br />
The default Web access mode for this project is set to file share, but the project folder at 'http://localhost/WebApplication1' cannot be opened with the path 'c:\Inetpub\wwwroot\WebApplication1'.
Can anybody explain why i keep getting this? IIS is running correctly and so are the rest of my Visual Studio .NET applications...I only get this when I try to create Web Applications...
Thanks
|
|
|
|
|
are you trying to create the project at the location - c:\Inetpub\wwwroot\WebApplication1' ??
if you are try creating it with the location = 'http://localhost/WebApplication1'
|
|
|
|
|
Hi,
I have implemented the spell check feature for email module in 3 Tier Web application.
Right now when we do reply, it is checking the spell check for the whole message
that is the new message entered by the user and the previous message ( for ref. see how outlook express work ).
-----Original Message----- is the text which can be use as a seperator between new message and the old message.
But that is not a good solution to find -----Original Message----- and till that run the spell check.
I want to make the same as Outlook express, where it does not matter what you are doing in previous message.
It will check only for the new messages.
Please suggest me any solution(s).............
PS: My data is inline ( that is only text - NO RTF control can be use )
|
|
|
|
|
Hi,
When I try to open a page in Internet Explorer,the error message as follows appear:-
Server Application Error
The server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.
Before this I Had unchecked "Show friendly HTTP error messages" from IE properties.
And When this option was checked an error message as following appeared:-
The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.
--------------------------------------------------------------------------------
Please try the following:
Open the deep home page, and then look for links to the information you want.
Click the Refresh button, or try again later.
Click Search to look for information on the Internet.
You can also see a list of related sites.
HTTP 500 - Internal server error
Internet Explorer
Can anyone help me out??
Drushti
|
|
|
|
|
Hi,
I wonder if anybody has found a way to enable giving a default value in an input field that is used to upload files to a server (type="file").
I Found amny articles that is saying that this is not possible because of client security and so on. Anyway I hope that somebody has a solution.
Thanks in forwrad
Hussam
|
|
|
|
|
|
Hi,
Datagrid.Sort() doesnt seem to sort integers right.
My code is something like this, this is a part of datagrid event:
dgProductList.DataSource = catalogXml;
dgProductList.CurrentPageIndex = e.NewPageIndex;
//create a new dataview with xml data
DataView dvCatalog = new DataView(catalogXml.Tables[0]);
//provide sort expression from datagrid event
dvCatalog.Sort = e.SortExpression;
//assign data source
dgProductList.DataSource = dvCatalog;
//bind data
dgProductList.DataBind();
The code works just fine for sorting any column but for integer column.
When I click on a integer column to sort the result i get is:
23
234
2345
246
25
256
what i expect is obviously:
23
25
234
246
256
2345
Does anyone have any input on this?
Appreciate your response.
Thanks,
Sucharita.
|
|
|
|
|
The problem is it thinks that the integer column is a text column. could you give an example of how catalogXml.table[0] is populated ??
|
|
|
|
|
Thanks for your response.
I do a databind and bind the dataview to the datagrid.
DataView.Sort() with a sort expression doesn't seem to work right.
Is there a value i should be passing for sort expression to indicate the integer column?
|
|
|
|
|
no the sort is working fine but the problem is that it is sorting on string and not integer values. You can try changing the data type of the dataColumn something like -
myTable.Columns[columnName].DataType = System.Type.GetType("int32");
This might throw an error (but its worth a try) something like - cannot change the type of a column that has already been filled with data.
|
|
|
|
|
catalogXml.Tables[0].Columns["Price"].DataType = System.Type.GetType("int32");
catalogXml.ReadXml( path );
if( !catalogXml.HasErrors )
{
DataView dvCatalog = new DataView(catalogXml.Tables[0]);
lblSortExpression.Text = e.SortExpression;
dvCatalog.Sort = e.SortExpression;
dgProductList.DataSource = dvCatalog;
dgProductList.DataBind();
}
I can't change the data type after there is data in it and cannot access myTable before loading the data!
this somehow does not seem to work
|
|
|
|
|
have a look at the following link -
http://www.dotnet247.com/247reference/msgs/56/283683.aspx
Same problem as yours.
|
|
|
|
|
Thanks, it was a great pointer.
One needs to declare a Dataset and datatable.
Add columns to table and specify the data type for the columns
and then load the data set with any value.
Really appreiciate your help.
|
|
|
|
|
Hi All,
I am working on a .Net library to be used within the organization. There are lot of configuration settings for the library. Now the question is whether i put all the configuration in the web.config file and access using the configsectionhandler interface or should i put the configuration in a seperate xml file and access using XML DOM.
One of the reason i asking this bcos if we change anything in the web.config file the whole application resets which i donot want.
Can anyone please tell me which one is a better approach and why ????
Thanxs in advance.
Maharishi Bhatia
|
|
|
|
|
My personal view on this is "neither". Rather structure your library's methods and constructors so that they accept the settings as parameters. Then, it is up to the caller application to either hard-code the values or deal with the config file issue.
This approach also makes for easier unit testing your library, because your tests can easily deal with several different testing scenarios.
my blog
|
|
|
|
|
Hi Steven,
Thanxs for the prompt answer. Let me rephrase my question...
I have already made the library with librarys method and constructors that accept the settings as parameter. I am trying to make a wrapper class which will read from a settings file so that the developer doesnt have to write any code to pass setting data to the library. So actually i was looking for a solution whether to put the config settings in the web.config file or to put it in a seperate xml file. And which solution will be better...
Thanxs in advance.
Maharishi Bhatia
Nothing is Impossible. Even impossible spells "i m possible"
|
|
|
|
|
Like you say, web.config is not always the best choice, although it is certainly the easiest.
Some options:
* Use a generalized config API, like Nini
* Use an external config file
* Use your own home grown config solution
my blog
|
|
|
|
|
i made uploading tool using freeaspupload component and i customized it to store the uploaded files to a DB using ADO, i had the webserver (IIS) and the sqlserver 2000 on the same machine and it was working fine ,no problems at all , but when i moved the DB to the production server (the webserver and the DB on separate machines) the upload failed , it started to give me a syntax error msg:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'file'
(file is the field i use to store my files to) i tried to use appendChunk but still the same error
|
|
|
|
|
below is what i have apparently it is not supported on windows server 2003:
Public Sub SendEmail(ToWho, Subj, Mess)
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")
With objMail
.MailFormat = CDOMailFormatMime
.To = ToWho
.From = Application("Support_Email")
.Subject = Subj
.Body = Mess
.Send
End With
Set objMail = Nothing
End Sub
My software developer said i should replace it with:
Public Sub SendEmail(ToWho, Subj, Mess)
Dim objMail
Set objMail = Server.CreateObject("CDO.Message")
With objMail
'objMail.MailFormat = CDOMailFormatMime
objMail.To = ToWho
objMail.From = Application("Support_Email")
objMail.Subject = Subj
objMail.HTMLBody = Mess
objMail.Send()
End With
Set objMail = Nothing
End Sub
But it doesnt work either any help is appreceiated
thanks
Just learning
|
|
|
|