The Requested Page Cannot Be Accessed Because The Related Configuration Data For The Page Is Invalid

0 views
Skip to first unread message
Message has been deleted

Canumil Flowers

unread,
Jul 18, 2024, 3:11:11 AM7/18/24
to chipzetscase

I followed this youtube video. How to Install osTicket v1.12 - Windows IIS It's a little out of date, but I was able to follow along up to a point. Even in the video, things don't work for this person. She shows the manual file download, unzip, copy in process, which is good. I did that.

So I followed along on the video up to the part where she clicks on the osticket Browser *80. I tried Chrome and Firefox for this in case Chrome has anything with forcing https. I get the same results on both. Mine errors out. Hers worked. I stopped at that point, trying to figure out what went wrong.

the requested page cannot be accessed because the related configuration data for the page is invalid


Descargar Zip https://jfilte.com/2yP20G



I get this 500 error, which I think might be too generic to be useful from googling. HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

I started googling and looked in the PHP/ext folder, for php_gd2.dll and php_xmlrpc.dll. It doesn't look like those are in PHP version 8. Yet, that's what's osticket is programmed in. So maybe the errors aren't from osticket trying to run.

In IIS, I have my server name and account, Sites, Default Web Site, and osticket. On Default Website, the PHP Manager loads and looks like it works fine. That's where I manually told it it was PHP 8 and where the folder is, just like the video did. But on osticket, PHP Manager and the other things in there error out. I don't know if that's a problem. PHP Manager under osticket says "There was an error while performing this operation. Details: (It's blank.) FileName: \?\C:\inetpub\wwwroot\osticket\web.config Error: (It's blank.)

I found this post, but don't know what to do with the info, if it's true. -do-i-install-gd-on-my-windows-server-version-of-php "After PHP 8.0, GD extension name changed from php_gd2.dll to php_gd.dll"

Where should I look for errors? The ones I noticed right away were on the localhost/osticket webpage and in the PHP Manager for osticket (listed above), although the default website did work for the PHP manager. The PHP and IIS logs looked essentially empty. osticket 1.17rc3 + PHP 8.0.22 + MySql workbench 8.0.3. I didn't do anything with MySQL except start the software. I thought osticket probably created databases during the initial osticket set up process.

Off this video.
_JjvEamg
I did the MySQL Workbench install, set up root and its password. I was wondering if osticket would work without the database there, but I see she's adding that at about 13min in on the video. So I can wait on that then. I need osticket to come up as a webpage still. Which means what's not working for me isn't a database issue. And then I do have the PHP and IIS log locations, but those were essentially empty.

What about the web config file in inetpub\wwwroot\osticket I swear that changed from what I saw yesterday. It looked like it was one webconfig file when I copied the upload/osticket folder over. But then I assumed IIS must have changed something in it somehow. Can IIS alter that webconfig file? And if something is wrong in that file, the localhost/osticket page won't load then, correct?

=vRf7WiRMHAk
Maybe it's something with this. This guy has the same IIS, Default Web Site, osticket set up on his left column. But he dlicked right into PHP manager under his osticket. I only get a working PHP Manager under default site. When I click into PHP Manager (or anything else) on osticket, I get
PHP Manager
There was an error while performing this operation.
Details: (blank)
Filename:\?\C:\inetpub\wwwroot\osticket\web.config
Error: (blank)

It's something with IIS and my Default Web Site having everything working but nothing under that. I copied the upload folder to inetpub/wwwroot/ with the other osticket folder and called this osticket2. That's not working the same way in IIS. Starting and stopping the Default Web Site doesn't change anything. Restarting the whole server doesn't change anything. It's like the Default Web Site options or permissions didn't filter down to the osticket folders below.

osticketnoob22 In IIS, I tried making a new site under Sites. Although with an osticket3 folder in wwwroot, that shows up under Default Web Site as a folder and I tried to connect to that as a new site.

osticketnoob22 One thing that I know about sites under IIS is that you have to create bindings to the hostname you want to use as well as DNS Entries. Thats how IIS knows which website the user is trying to access. Don't know if during the Windows install of osTicket that it does it automatically or not. That could be why it doesn't come up.

I just renamed the web.config file so it doesn't exist. Refreshed IIS. This time when I clicked the PHP Manager on the osticket folder under Default Web Site and when I click on the *80 link to view it in in a browser.... It worked, I think.

Your 500.19 issue is probably because you haven't installed/enabled URL Rewrite in IIS. If you are using Web Deploy ( -deploy) you can install it from there. There is no configuration, just install and you are done.

I have the initial osticket set up webpage showing
Gdlib Extension
PHP IMAP Extension -- Required for mail fetching
Intl Extension -- recommended for improved localization
APCu Extension -- (faster performance)
Zend OPcache Extension -- (faster performance)

So I got into the PHP Manager. It looks like Default Web Site also sets the osticket subfolder. Fine. I enabled these.
php_gd.dll
php_imap.dll
php_intl.dll
php_opcache.dll
php_zend_test.dll

Refreshed ISS. Reloaded the webpage. localhost/ostick on a new tab. Close,open the browser. Restarted the server. And then I found another web.config in the wwwroot folder, so I renamed that. That didn't return. But nothing I did got those removed on the osticket initial start up page. Yet that's what the video showed working.

osticketnoob22 My wandering last week is paying off. I got all but apcu green on the intial start up page. I had to go into the PHP program folder, edit the php .ini file and enable them. zend_extension=opcache was hanging out in a different spot. apcu she skipped in the video, so I'll pass too.

The customer moved the Symantec Management Agent (aka Altiris Agent) from the C: drive to the E: drive. After that they started seeing this error message in the Agent UI:
"Package Server is configured to publish http(s) codebases, but could not access it's own web site"

Looking at the agent logs we noticed that the agent was not able to reach out his own link for the connection test:
HTTPS://Siteserver02.example.com/Altiris/ConnectionTest.html

When we tried to open the link in his browser we got:
HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Error Code
0x80070005

Config Error
Cannot read configuration file due to insufficient permissions

I have been trying for several days to get the Angular2 project to deploy to Azure. I have read these forums and there are a couple posts with some of the pieces but nothing that is complete. For example, if I download my publish profile and publish the project the only thing that is uploaded is the web.config. I have found that you can right click on each file and publish those but oonce they are up there, then what? I tried using Kudu to do an npm install or yarn install... then npm start or yarn start... neither seem to ever finish and my web app is not running.

By default, AspNet Zero has different solutions for angular2 UI and server side (aspnet core backend). AspNet Core side will be familiar for you. For the angular2, it has own tools for publishing. We used angular cli, which has "ng build" command which deploys your application to the "dist" folder by default. If you are not familiar to angular cli, it gets some time to learn it. But it's google's official tool and you can find many documents on the web.

When it comes to today's front end World and SPA tools, unfortunately it's not very straightforward and easy to create applications. Angular 2 has it's own significiant learning curve, it has it's own tools and conventions which are not familiar to us, ASP.NET Developers. So, do not wait easiness of .net from angular :)But anyway, we will add a section to our documents that explains deployment for most cases.

You can think dist folder as if you published your web app to a local folder on your machine just like you do for an MVC project.Then you can copy/transfer files in dist folder to your website under IIS or to an azure website.If you are using azure, then you will need to add a web.config file just like the one in this link ... e-website/.

I appreciate the reply and I have been searching the web for answers and obviously I just don't get it... can anyone give me step by step instructions on how to deploy to Azure and then get the Angular2 UI to run from Azure?

A note for spte 4: If your version of Host project's Startup class contains a static address of :4200/ for CORS configuration, you need to change this to your angular2 client website address. For this example it will be anzangular2client.azurewebsites.net. We moved this value to configuration and it will be also in the next release.

Perfect this guide clears everything up. Anyone that has deployed this solution in the past will find that the Host solution is not really any different than deploying other versions of the software. The big difference is the Angular2 client which takes a different approach. It seems my biggest issues were that I did not realize the structure of the dist directory and those other configuration pieces that connect the host and client together

When I try the above step 8 and run "ng build --prod," I get an error "You have to be inside an angular-cli project in order to use the build command." What do I need to do to make this an angular-cli project?[attachment=2:1pabnmi4]angular-cli-error.png[/attachment:1pabnmi4]Also, I noticed that there is an .sln file and am wondering what it would take to be able to work within Visual Studio? I've been working with the asp.net core + angular 2 template ( ... al-studio/) for practice and was able to work in Visual Studio and even publish to Azure without any issues.

d3342ee215
Reply all
Reply to author
Forward
0 new messages