|
|
The message as here
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions<br />
Config File \?\D:\websites\IntranetAdminApplications\ResearchStudiesAdmin\web.config
Requested URL <a href="http://intranettools.development.sutterhealth.org:80/ResearchStudiesAdmin/Default.aspx">http:
Physical Path D:\websites\IntranetAdminApplications\ResearchStudiesAdmin\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
It is saying Config source as
-1:
0:
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
That looks like incorrect NTFS permissions on the web.config file.
On the server, open the root folder of the site in Windows Explorer. Right-click on the folder and select "Properties". On the "Security" tab, make sure that the IIS_IUSRS group has read access.
If the group already has permission, click "Advanced", tick the "Replace all child object permission entries with inheritable permission entries from this object" box at the bottom of the Advanced Security Settings dialog, and click "OK". That will reset the NTFS permission on all files and folders below the selected folder to match the permissions on the selected folder.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks man it is done
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
You learn something new every day
|
|
|
|
|
Yeah, that's life, thanks for all your help.
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Check that web.config file. You quite possibly have some broken XML in there (un-closed tags, etc).
|
|
|
|
|
The same Web Config is working on the Local machine: same thing I just copied, would it be a problem. Here is the error message.
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Module IIS Web Core
Notification BeginRequest
Handler Not yet determined
Error Code 0x80070005
Config Error Cannot read configuration file due to insufficient permissions
Config File \?\D:\websites\IntranetAdminApplications\ResearchStudiesAdmin\web.config
Requested URL <a href="http://intranettools.development.sutterhealth.org:80/ResearchStudiesAdmin/Default.aspx"><a href="http://intranettools.development.sutterhealth.org:80/ResearchStudiesAdmin/Default.aspx">http:
Physical Path D:\websites\IntranetAdminApplications\ResearchStudiesAdmin\Default.aspx
Logon Method Not yet determined
Logon User Not yet determined
It is saying Config source as
-1:
0:
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
In a comment you posted this error, "Config Error Cannot read configuration file due to insufficient permissions." That should tell you everything you need to know.
It means that the identity account running the application pool in IIS does not have sufficient permissions to get to web.config.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
How do I format number in 1St,2nd,3rd in pl sql Query
|
|
|
|
|
|
First off, it does not support it. So write a custom function to do it. Secondly, do not cross post.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi everybody,
Who knows how to specify a static port for a web service?
In VS 2010 it was so esay to do but now I am on VS 2015 and I don't know where I can do so.
Important point : It's not a web api but a web service (with .asmx files).
I know I will have to upgrade my site but for now, the emergency is to make it works in VS 2015 with a static port.
Thanks a lot to anyone who could give me the solution!
|
|
|
|
|
Okay, right-click the project and select Properties.
Select Web
In the Servers section find the Project URL. Change the port number.
Click "Create Virtual Directory"
Rebuild and enjoy your day.
|
|
|
|
|
Hi Nathan.
Thanks for your answer.
Unfortunatelly this can't be done as it is not a Web project but a Web service so there is no "Web" or "Servers" section, as I specified "Important point : It's not a web api but a web service (with .asmx files)."
Thanks.
|
|
|
|
|
|
No problem.
The link you posted is kinda the same of your first answer.
It does not match with my type of project, it's about a "Web application project", mine is a "ASP.NET Web Service".
|
|
|
|
|
No, it's not.
The second answer, which I referenced, involves modifying the ApplicationHost.config file. That's relevant for Web Site projects which do not have the Web tab like Web Application projects do.
|
|
|
|
|
I can change the port by modifying the ApplicationHost.config file with the notepad but it is a slow solution (I have about 30 web services to modify).
In Visual Studio 2010 it was easy just two properties to edit, properties that have disapeared on visual studio 2015.
In this link c# - How can i change IIS Express port for a site - Stack Overflow[^], I don't have a "Web tab" as specified so I can't do anything.
Browsing google I see many people have this issue on visual studio 2013/2015 and no "easy" answer has been set.
|
|
|
|
|
I don't get it. I have this JQuery Script that loads states when the country changes. So I did a bind to the Country Select List.
It calls a $.ajax request to get the Json list of states.
In the view, I added this
@Url.Action("Action", "Controller");
So it works if I just use a straight address,
var url = "/Customer/load_StateCodes/";
But I don't understand how to use @Url.Action with the controller. This is my first time doing this in MVC.
Is this the preferred method?
On a side note, I really didn't want to bind the select list, and I was trying to add child script to the select list, like in Web Forms, but could not find anything on the web. Is this just not possible?
$("#CountryCode").change(function () {
var procemessage = "<option value='0'> Please wait...</option>";
$("#StateCode").html(procemessage).show();
$.ajax({
type: "POST",
url: '@Url.Action("load_StateCodes", "Customer")',
data: { stateId: $("#CountryCode > option:selected").attr("value") },
cache: true,
type: "POST",
dataType: "json",
error: function (data) {
alert(data);
},
success: function (data) {
var items = [];
items.push("<option>--Choose Your State--</option>");
$.each(data, function () {
items.push("<option value=" + this.Value + ">" + this.Text + "</option>");
});
$("#StateCode").html(items.join(' '));
}
})
});
|
|
|
|
|
Is your javascript code in a separate js file?
|
|
|
|
|
Yes it is.
I bundled it and loaded the bundle in the view.
I think you can't use Url.Action in a Razor View, and that you have to just use the path /Customers/RegistionForm instead.
Then I found out you can't use dictionary for return Json(fdssdf), and have to use List.
|
|
|
|
|
jkirkerx wrote: Yes it is
And you didn't think that was worth mentioning?
js files are flat text files that are served straight up to the browser, no different from jpg or gif files, they are not "processed" by .net so you can't use razor markup in them or server-side processing. What you'll need to do is define a variable in your razor view like
<script>
var action = '@Url.Action("Action", "Controller")';
</script>
Then in your js file just us the "action" variable;
url: action,
|
|
|
|
|
So I would replace the word Action with Load_States and Controller with Customer
Oh I see, By using your example, I can change the location of the controller and action in 1 place,
So in my script located in a seperate file, I can use action as the Url, and set the Action in the Razor View.
I didn't know that mentioning I have separate JS files made a difference honestly.
Thanks for clearing that up. This post changed my thinking on it, or made it clear for me to understand.
|
|
|
|
|
hi.
how do you automatically display date in a textbox on your webpage?
|
|
|
|